Following is the load test scenario for which I want to pick a dynamic value:-
A user login to an application, do a search and a list gets displayed. following is the list example for this:-
"ID" is a link field. So when I record my sciript i click on the first ID file (123), and a new page got displayed.
Now what I want is that the "ID" field should be picked dynamically for every user. Like first user click on "123" and next user click on "456" and so on.
Please let me know if this is possible in OATS.
In the code you should see a http.solveXPath() or similar that extract the value you clicked on, e.g. 123
http.solveXpath(varName, xpath, lastValue, resultIndex)
The resultIndex arg will probably be 0 (i.e. the first match) but you can adjust this to match further down the list so for 456 you would replace with 1. You should be able to do this automatically pretty easily.