Tuesday, June 11, 2019

Json extractor and While loop



Waiting for a specific value in response of api request. using while loop.
Add a While Loop.
The api requets will be executed inside the While loop and the response will be parsed.
Because we are looking for a specific ID value in the response, and the value always contains a common string i.e., aebf
so we added this code which will execute the request inside While loop till it finds the value of Id which will get fetched inside the variable: $JWAAT-Id

Once found the next call outside the while loop will start.
                       ${__javaScript("${JWAAT-Id}".indexOf("aebf") == -1,)}














Json extractor and While loop

Waiting for a specific value in response of api request. using while loop. Add a While Loop. The api requets will be executed inside th...