Basanth,
I think you have intepreting it correctly. I am including a small example of a "login" Action and initial portion of some other Action (Say "ClientSearch"). I would like to access the similar application with dynamic URL which represents different environment (like Dev1, Dev2, QA1, QA2 and so on).
For example:
Some "x" address is used to launch the application staring with the login and going into other Action in sequence.
How can I dynamically substitute with a different address "y" if I want to run the same test in a different environment?
Will the dynamic substitution od address will dynamically take care the Browser and Page info as highligted below?
Thanks in advance.
Subha
Login Action:
ClientSearch Action:
I think you have intepreting it correctly. I am including a small example of a "login" Action and initial portion of some other Action (Say "ClientSearch"). I would like to access the similar application with dynamic URL which represents different environment (like Dev1, Dev2, QA1, QA2 and so on).
For example:
Some "x" address is used to launch the application staring with the login and going into other Action in sequence.
How can I dynamically substitute with a different address "y" if I want to run the same test in a different environment?
Will the dynamic substitution od address will dynamically take care the Browser and Page info as highligted below?
Thanks in advance.
Subha
Login Action:
Code:
Browser("[b]ent_b_6_0_markdevlan_ent_b_6_0[/b]").Page("[b]ent_b_6_0_markdevlan_ent_b_6_0[/b]").WebEdit("LoginUsername").Set "Someone"
Browser("ent_b_6_0_markdevlan_ent_b_6_0").Page("ent_b_6_0_markdevlan_ent_b_6_0").WebEdit("LoginPassword").SetSecure "Something"
Browser("ent_b_6_0_markdevlan_ent_b_6_0").Page("ent_b_6_0_markdevlan_ent_b_6_0").WebElement("Login").Click
Browser("ent_b_6_0_markdevlan_ent_b_6_0").Page("ent_b_6_0_markdevlan_ent_b_6_0").Image("Minimize / Maximize").Click
Browser("ent_b_6_0_markdevlan_ent_b_6_0").Page("ent_b_6_0_markdevlan_ent_b_6_0").WebElement("Help Module").Click
Browser("ent_b_6_0_markdevlan_ent_b_6_0").Page("ent_b_6_0_markdevlan_ent_b_6_0").WebElement("WebElement").ClickClientSearch Action:
Code:
Browser("ent_b_6_0_markdevlan_ent_b_6_0").Page("ent_b_6_0_markdevlan_ent_b_6_0").WebElement("Clients & Policies").Click
Browser("ent_b_6_0_markdevlan_ent_b_6_0").Page("ent_b_6_0_markdevlan_ent_b_6_0").WebRadioGroup("searchtype").Select "#0"
Browser("ent_b_6_0_markdevlan_ent_b_6_0").Page("ent_b_6_0_markdevlan_ent_b_6_0").WebEdit("companyname_2").Click
Browser("ent_b_6_0_markdevlan_ent_b_6_0").Page("ent_b_6_0_markdevlan_ent_b_6_0").WebEdit("companyname_2").Set DataTable("p_CoName", dtLocalSheet)
Browser("ent_b_6_0_markdevlan_ent_b_6_0").Page("ent_b_6_0_markdevlan_ent_b_6_0").Link("Search").Click
Browser("ent_b_6_0_markdevlan_ent_b_6_0").Page("ent_b_6_0_markdevlan_ent_b_6_0").Link("30000927").Click
Browser("ent_b_6_0_markdevlan_ent_b_6_0").Page("ent_b_6_0_markdevlan_ent_b_6_0").WebElement("30000924: SB Test8 Corp.").Click
Browser("ent_b_6_0_markdevlan_ent_b_6_0").Page("ent_b_6_0_markdevlan_ent_b_6_0").WebElement("Policies & Quotes (0)").Click
