changing Rest Resource path on one test case only
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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???
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi subhaD,
Use the Target column to apply an event only to specific test items. Please see the details in the Filter Events section of this article: https://support.smartbear.com/readyapi/docs/testing/handling-events.html.
Also, you should be able to change the endpoint for test steps on the Test Case Setup script: https://support.smartbear.com/readyapi/docs/soapui/scripts.html
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Richie
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm glad to hear that it helped!
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks so muchNastya_Khovrina
But I still have some compilation errors when trying to change the resource path since i have created the prohject from swagger. Will i not be able to update resource property?? kindly get back, atttatching error screen
