07-15-2008, 11:14 PM
Hi,
I am new to QTP
I have recorded QTP scripts on one URL.ex : auto-ustage.com. Now I have to execute the same scripts on different URL ex: a1.ustage.com. Since there are so many scripts and it is difficult to change the Object repository for each and every script. Looks like if I use Descriptive I have to change line by line,. Please suggest me any other way.
Now I have to run on a1.ustage.com browser URL.
Please help. Thanks,
shiran
I am new to QTP
I have recorded QTP scripts on one URL.ex : auto-ustage.com. Now I have to execute the same scripts on different URL ex: a1.ustage.com. Since there are so many scripts and it is difficult to change the Object repository for each and every script. Looks like if I use Descriptive I have to change line by line,. Please suggest me any other way.
Code:
Browser("ABC@http://auto-ustage.com").Page("ABC@http://auto-ustage.com").WebEdit("username").Set adminlogon
Browser("ABC@http://auto-ustage.com").Page("ABC@http://auto-ustage.com").WebEdit("password").SetSecure 123123
Browser("ABC@http://auto-ustage.com").Page("ABC@http://auto-ustage.com").WebButton("Login").Click
Please help. Thanks,
shiran