01-03-2011, 10:32 PM
In Mercury Tours web application, I want to verify the selected Service Class ( Economy,Business,First) should display in Summary of Book a Flight page.
I have Parametrized the Class. I have added standard Output checkpoint.
But as the Class changes, the Webelement also chnages which causes to fail the test.
In above line "Business" get changes to "First", also "Business_3" changes to "First_3"
Will anyone help how to solve this.
Should Standard Checkpoint should be appropriate for this along with and Regular expression ?
Below is my recorded script.
I have Parametrized the Class. I have added standard Output checkpoint.
But as the Class changes, the Webelement also chnages which causes to fail the test.
Code:
WebElement("Business").Output CheckPoint("Business_3")
Will anyone help how to solve this.
Should Standard Checkpoint should be appropriate for this along with and Regular expression ?
Below is my recorded script.
Code:
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("userName").Set "mercury"
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("password").SetSecure "4d21fea06bee0654680dc50f16afca4d1386c70f"
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").Image("Sign-In").Click 19,12
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("fromPort").Select "Frankfurt"
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("fromDay").Select "10"
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("toPort").Select "Paris"
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("toDay").Select "14"
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebRadioGroup("servClass").Select DataTable("Class", dtGlobalSheet)
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").Image("findFlights").Click 42,15
Browser("Welcome: Mercury Tours").Page("Select a Flight: Mercury").Image("reserveFlights").Click 48,14
Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").WebElement("Business").Output CheckPoint("Business_3")
Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").WebElement("Business_2").Output CheckPoint("Business_4")