srishtiK
9 years agoOccasional Contributor
disable all POST test steps
Hi, I need to disable all the POST test steps from groovy under some conditions. Is there a way to list all POST test steps, or do I have to disable each test Step by name individually Thanks
- 9 years ago
Yes possible! Please use the getMethod() method of RestRequest class to filter it out.
I found the below snippet by scanning through the SoapUI's source code -
if (httpRequest.getMethod().equals("GET")) { method = new ExtendedGetMethod(); }
Thanks,
Kondasamy