rest assured - Intercepting an assignment in Java -


i'm using rest-assured library testng receiving response in response object below.

response response;  @test public void sometest() {     restassured.baseuri = "some_valid_baseuri";     restassured.basepath = "some_valid_endpoint";     response =    restassured.given().contenttype(contenttype.json).when().get(); } 

i have several test methods above-mentioned method in test class. there way intercept response assignment can, somewhere else (e.g. in method annotated @aftermethod), know method being used response get method?

ps: did not find in-built way in rest-assured library this.

the answer in is possible extract method name response object? serves purpose question. sorry generic question line here though!


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -