Forum Discussion

subhaD's avatar
subhaD
Contributor
6 years ago

changing Rest Resource path on one test case only

I am testing error scenarios and trying to edit the Rest Resource path for one test case

I understand we can SubmitListener.beforeSubmit event handler 

log.info submit.request.getPath()
submit.request.setPath("/product/api/v4.0/foo")
log.info submit.request.getPath()

 

How to I make this execute only for one test case and not entire test suite???

4 Replies