Parametrize the name field in QTP
I am a new learner in Qtp and Practising it .This is query I have a very basic doubt,
I recorded a script in mercury website tours. I wanted to parametrize the name field.
when I did it with Global it worked . But every time it logged in and added the users from the data table . I wanted the script to login in Once and add the users.
i tried it with the local sheet it did it work.
This is the script I recorded. QTP EXPERTS answer my query. This is the recording of the
script.
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("userName").Set "sjsai70"
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("password").SetSecure "4619dd02052b5530abe5ef1ffb5c278b5d051064"
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").Image("Sign-In").Click 55,2
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").Sync
Window("Microsoft Outlook").Activate
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").Image("findFlights").Click 98,18
Browser("Welcome: Mercury Tours").Page("Select a Flight: Mercury").Image("reserveFlights").Click 52,12
Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").WebEdit("passFirst0").Set "shailaaja"
Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").WebEdit("passLast0").Set "j"
Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").WebList("pass.0.meal").Select "Bland"
Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").WebList("pass.0.meal").Select "Vegetarian"
Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").Image("buyFlights").Click 70,7
Browser("Welcome: Mercury Tours").Page("Flight Confirmation: Mercury").Image("backtoflights").Click
Questions by cindrela answers by cindrela
Showing Answers 1 - 4 of 4 Answers
Related Answered Questions
Related Open Questions
Parametrize the name field in QTP
I recorded a script in mercury website tours. I wanted to parametrize the name field.
when I did it with Global it worked . But every time it logged in and added the users from the data table . I wanted the script to login in Once and add the users.
i tried it with the local sheet it did it work.
This is the script I recorded. QTP EXPERTS answer my query. This is the recording of the
script.
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("userName").Set "sjsai70"
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("password").SetSecure "4619dd02052b5530abe5ef1ffb5c278b5d051064"
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").Image("Sign-In").Click 55,2
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").Sync
Window("Microsoft Outlook").Activate
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").Image("findFlights").Click 98,18
Browser("Welcome: Mercury Tours").Page("Select a Flight: Mercury").Image("reserveFlights").Click 52,12
Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").WebEdit("passFirst0").Set "shailaaja"
Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").WebEdit("passLast0").Set "j"
Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").WebList("pass.0.meal").Select "Bland"
Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").WebList("pass.0.meal").Select "Vegetarian"
Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").Image("buyFlights").Click 70,7
Browser("Welcome: Mercury Tours").Page("Flight Confirmation: Mercury").Image("backtoflights").Click
Profile Answers by cindrela Questions by cindrela
Questions by cindrela answers by cindrela
Related Answered Questions
Related Open Questions