Forum Discussion
Hey Rao,
I have a GET function to count all active accounts of my login webservice. I want to build a check that checks the amount of accounts after a new account has been added. So I want it to validate a +1 scenario after the POST function has been successfully completed. For now I have a contains assertion in place with RegEx \d+ so I can atleast check if I am getting a number back. The response is in JSON btw.
Another problem I am facing is with a conditional goto. I have a connection check in place to validate access to the webservice. When it returns 'true', the testrun should continue. I do not want it to hog resources running the full script when the first step fails.
As you can see I am still missing some fundamental knowledge of scripting. Any help would be greatly appreciated.
Kevin
All I can suggest is to take a look at the sample scripts available here and what is applicable to you and implement on your own.
https://github.com/nmrao/soapUIGroovyScripts/tree/master/groovy
Related Content
- 10 years agomgroen
- 2 years agoKimdongart1
Recent Discussions
- 14 days agosmilnik