Question for QTP Practitioners: Please advise
I created 2 tests. First called FlightNesTestDiscreteActions in which I
created 5 Actions namely Login, FindAFlight, SelectAFlight, BookAFlight and
ConfirmFlight. I created these actions before starting the recording. Once
I had Actions with me I started recording starting from Login Action. Once
I entered User name, password and clicked Sign-In image button. I clicked
BookAFlight Action (since I am done with Login Action steps) and recorded
steps only for Book A Flight Page. In All, the moment I leave a page by
Submit operation, I chose new action in my list to record the steps for my
further screen. This way I had Local repositories for all 5 Actions. When I
looked at repository, it gave me different Brower names i.e.
For Login Action - Browser("Welcome: Mercury Tours").Page("Welcome: Mercury
Tours")
For FindAFlight Action - Browser("Find a Flight: Mercury").Page("Find a
Flight: Mercury")
For SelectAFlight Action - Browser("Select a Flight: Mercury").Page("Select
a Flight: Mercury")
For BookFlight - Browser("Book a Flight: Mercury").Page("Book a Flight:
Mercury")
For ConfimFlight - ("Flight Confirmation: Mercury").Page("Flight
Confirmation: Mercury")
I saved the test, re run it and all went fine.
Then I created second test in one go for Action1 only and recorded steps in
this single action from Login to Confirmation page. When I look at my
reorded steps, I found that all steps are recorded under
Browser("Welcome: Mercury Tours") but with different pages i.e.
Page("Flight Confirmation: Mercury") , Page("Book a Flight: Mercury")
Then I splitted my Action1 into 5 different actions so that it can take
shape like my prior test and I exported the Local Repository for Action1 to
a Shared Repository, so that running multiple actions later didn't fail the
sript.
Now i run the test2 and it also went fine
My Question is why is there a difference in Browser Identification property
when using these two different approaches?
Please Advise. Looks like I am missing something very fundamental in QTP or
anything...
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en