Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Same tests on different URL's?
#3
Solved: 11 Years, 6 Months, 3 Weeks ago
Hi Mukesh,

Make sure everything is same for different URLs because the "Browser" object properties are different for different URLs. The only property that can identify different Browsers is "CreationTime".

If still everything same then you can acheive this task as follows:

1. In the Global Sheet, name a column as "URLs_In" and give all the URLs you want to test under this column.

2. Change/Set the "Data Table iteration" option to "Run on all rows" (File-->Settings-->Run-->Data Table iteration)

3. Create an action and name it "Launch_URL" and write the below code inside it

Code:
SystemUtil.Run "iexplore",DataTable("URLs_In",dtGlobalSheet)

4. Then call your other actions that deal with actual test. Make sure you are identifying the "Browser" object by "CreationTime" property

5. After each iteration (at the last line of your last action) write the below code

Code:
Browser("CreationTime:=0").Close

Hope it will help you.
Reply


Messages In This Thread
RE: Same tests on different URL's? - by A.Saini - 09-28-2010, 07:02 PM
RE: Same tests on different URL's? - by PrabhatN - 09-28-2010, 07:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] Fixed web tests with dynamic parts jdd 3 2,794 04-05-2016, 02:56 PM
Last Post: vinod123
  Run Button is not available in QTP 11 - while running tests from QC 11 Kannan R 0 1,963 08-13-2013, 08:15 PM
Last Post: Kannan R
  Problems with URL as Object identifier??? jcraig26 1 3,461 02-27-2013, 05:06 PM
Last Post: anil2u
  cannot open QTP tests learnasugo 8 9,485 10-18-2012, 11:28 AM
Last Post: Ankesh
  url value sia sharma 0 2,293 07-02-2012, 12:30 PM
Last Post: sia sharma

Forum Jump:


Users browsing this thread: 1 Guest(s)