I am looking for a groovy script by which i would able to add REST type step in my test case. I am able to create an http request but unable to find a groovy code/script to add REST type step in added test cases.
I'm developing a framework that automates api testing with groovy without using the soapui box, the goal is to externalize the requests in config files
For that I tried:
def tc = suite.addNewTestCase (testCase)
tc.addTestStep (HTTPREQUEST_TYPE, url [i], method)
this script generates an http request, but I need a REST request.
The solution for this thread might be what you're looking for: