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
Post a Comment