Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run QTP scripts Different URLs
#1
Not Solved
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.

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
Now I have to run on a1.ustage.com browser URL.
Please help. Thanks,
shiran
Reply
#2
Not Solved
You can maintain one shared object repository for all your scripts.
For more info, please check QTP user guide
Reply
#3
Not Solved
Either you can create a Object Repository with the description text property as "ABC@http://.*\.com"

Steps:
Add a Object Reposrtiy Entry
Edit the Property Value
Check the Regular Exp Check Box
Now change auto-ustage to .*

Or
You can write the regular exp using

Code:
Browser("text:=ABC@http://.*\.com").Page("text:=ABC@http://.*\.com").

I am just using text as the sample property, use whatever property that is showning the object repositroy.
if you want to have more info you can send me a mail surya.penumacha@gmail.com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)