Forum Discussion
Conditional GO TO step is good but it is limited to XML responses and also has a couple of other limitation. We have specific steps for Asynchronous calls which can actually wait until something is triggered to further validate the responses once the process is finished. Here are some links to the steps that may help you.
File Wait (waits for a file to appear in your local directory and then continues with the next steps in the testcase):
https://support.smartbear.com/readyapi/docs/soapui/steps/file-wait.html
REST VirtResponse(opens a listener on an endpoint:port and waits for a message to come through and then continues with the next steps in the testcase):
https://support.smartbear.com/readyapi/docs/soapui/steps/rest-virt-response.html
Property Wait(Waits for a property in any location of your choice and once it appears the next steps in the testCase will be executed):
https://support.smartbear.com/readyapi/docs/soapui/steps/property-wait.html
There might be couple of other ways you can deal with async calls but I hope this helps.
Regards,
Temil Sanchez
- nmrao9 years agoCommunity HeroThank you for the different available options.
Not sure if this is relevant in this context, but want to add this and looking to hear from you.
In groovy script, it is possible to (skip some steps) use "gotoStep" which actually does nothing i.e., does not execute the given step. Any comments on it?- TSanchez_19 years ago
Staff
Not sure that does anything either, try using "goToStepByName("test step name").
- nmrao9 years agoCommunity HeroYes, the same I was talking about. The mentioned method is used in a groovy script to execute the sequence of steps following the mentioned step passed as argument to that method. But it does not seem to work that way. Would you please confirm if that is the desired behavior or a defect?
- krogold9 years agoRegular Contributor
Thank you for all these possible ways but, I 'd like to know if there is an 'easy' way to do so.
currently I have this:
declare namespace ns1='http://xxxxxxxxxxxxx/'; declare namespace a='http://xxxxxxxxxxxxxxxxxxxxxx/2004/07/xxxxxxxxxxxxxx'; //ns1:GetPendingRequestResponse[1]/ns1:GetPendingRequestResult[1]/a:Status[1]="Success"
is it possible to something just like
//ns1:GetPendingRequestResponse[1]/ns1:GetPendingRequestResult[1]/a:Status[1]="Success" ||"Failed" ?
When I do this, I end up with "missing matching condition, moving on" ...