Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to run multiple urls in QTP.
#2
Not Solved
Manju,

I guess if u go for Record and Play there u can give only one ur address.But for ur question i can give the solution in DP...Following is the code of DP which opens google url first and then closes that,then it opens yahoo url and closes

Code:
Dim br,url1,url2

br = "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
url1 = "www.google.com"
url2= "www.yahoo.com"

systemutil.Run br,url1,"","",3

Browser("name:=Google").Close

systemutil.Run br,url2,"","",3

Browser("name:=Yahoo!").Close

Regards
Raj
Reply


Messages In This Thread
How to run multiple urls in QTP. - by manju - 01-14-2008, 11:35 PM
RE: How to run multiple urls in QTP. - by Rajashekar Gouda - 01-16-2008, 06:59 PM
RE: How to run multiple urls in QTP. - by Rajesh - 01-21-2008, 03:04 PM
RE: How to run multiple urls in QTP. - by manju - 01-16-2008, 09:00 PM
RE: How to run multiple urls in QTP. - by manju - 01-16-2008, 09:15 PM
RE: How to run multiple urls in QTP. - by manju - 01-17-2008, 08:08 PM
RE: How to run multiple urls in QTP. - by Rajesh - 01-21-2008, 09:03 PM
RE: How to run multiple urls in QTP. - by sachin - 01-22-2008, 11:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Import multiple values from excel into QTP Shaik Ahmed 2 3,609 03-09-2014, 09:17 PM
Last Post: Shaik Ahmed
  Installing QTP -Freeware on Multiple Machine sangi 1 2,878 06-11-2013, 06:13 PM
Last Post: Ankur
  How to run same script for different URLs when loading time is different mansis 5 5,092 09-21-2012, 12:42 PM
Last Post: mansis
  How to use same script for multiple URLs mansis 29 22,281 09-01-2012, 05:12 PM
Last Post: mansis
  Switching between URLs sqadri 1 2,821 02-01-2012, 07:36 AM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 11 Guest(s)