Forum Discussion
If you provide more details, that would be helpful.
- Kevin9028 years agoNew Contributor
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
- nmrao8 years agoChampion Level 3It does not make sense to comment without seeing a sample data or in the same structure as you have the data; need not be your exact data.
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
Recent Discussions
- 4 days agoemoya