Forum Discussion

Naveen87's avatar
Naveen87
Occasional Contributor
13 years ago

Need help on passing the URL from script

Hello SmartBear Support,

I have a URL has "https://www.t1.com./pageNo=1" in teststep "t1". Here I need to change pageNo from 1 to 2,3,4 and so on..
How to change the this pageNo in the URL? Also I need to change this pageNo in another test step say "t2"

Here is my testsuite structure
t1
t2 //here I need to write script to change the pageNo in the previous step

whether below will help? testRunner.testCase.getTestStepByName(requestName).getHttpRequest().setEndpoint(ENDPOINT)

Also remember I need to change only the pageNo
No RepliesBe the first to reply