Forum Discussion

sgsoapuser's avatar
sgsoapuser
Occasional Contributor
12 years ago

how to execute test step iteratively

Hi ,

How can I Iteratively execute a test step until some value in the test step response is set to "false"

example: here is the abc-response

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:abcResponse xmlns:ns1="http://abc.com/">
<ns:result>
<ns:done>true</ns:done>

How can I execute the abc-request (test step)iteratively until the value done is set to "false" in the above abc-response.

Appreciate your help.
Thanks
  • nmrao's avatar
    nmrao
    Icon for Champion Level 2 rankChampion Level 2
    Should be able to do using groovy script and I think you might be able find topics on this forum which might have some sample code

    Basically, the test might be defined as :

    Test case
    - test step soap request
    - groovy request

    Groovy it self will run the test step request, analyse the response, check for the condition whether the request needs to be further again.