cancel
Showing results for 
Search instead for 
Did you mean: 

How to use curl in soapUI groovy

Highlighted
Occasional Contributor

How to use curl in soapUI groovy

I saw a post for the pro version but it didn't work for me on the opensource version.

https://community.smartbear.com/t5/SoapUI-Pro/Groovy-script-for-running-curl-commands/td-p/105017

 

I'm trying to emulate a login and extract the cookie to use in test cases.

soap.png

Thanks.

3 REPLIES 3
Highlighted
Community Hero

Re: How to use curl in soapUI groovy

Hey @fardude,

Why bother with curl? Its just a command line tool to post/get data like wget. SoapUI does the same and more.
The error response you're getting appears to be cos you haven't got the curl.exe in the path you specify.

Sorry i should emphasise im not picking holes in your approach, i just dont understand why youre trying to execute a curl request within soapui....it just seems like its adding a layer of complication thst you just dont need.

Ta

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Highlighted
Occasional Contributor

Re: How to use curl in soapUI groovy

Thanks Richie,

 

The login procedure doesn't have a straight up rest API so I couldn't get it work with SoapUI like an endpoint.

I'm open to other ways.

Highlighted
Community Hero

Re: How to use curl in soapUI groovy

Erm....soapui does everything curl can do and a lot more. So whstever youre doing in curl you can definitely do it in soapui, you just need to know all the relevant details, just like if you were gonna use curl or wget, etc.

Ta

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors