groovy script to add REST step in test case
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2019
06:26 AM
03-07-2019
06:26 AM
groovy script to add REST step in test case
Hello,
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.
Please help.
SF
4 REPLIES 4
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2019
09:24 PM
03-07-2019
09:24 PM
You could add a REST step using SoapUI easily.
Why do you need that? or use case please if you could not use the Out of the box SoapUI feature to do so?
Regards,
Rao.
Why do you need that? or use case please if you could not use the Out of the box SoapUI feature to do so?
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2019
01:35 AM
03-08-2019
01:35 AM
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.
thank you,
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2019
11:25 PM
03-11-2019
11:25 PM
Have you looked at the API docs?
Regards,
Rao.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2019
02:32 PM
03-13-2019
02:32 PM
The solution for this thread might be what you're looking for:
