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

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -