//this is the test code generated by selenium //****Paste test script here***** public override void RunTest() { selenium.Open(base.baseURL); quality.AreEqual("Garmin Product Updates for Kenwood", quality.GetTitle()); quality.Click("link=Sign In"); quality.WaitForPageToLoad("30000"); ken.SignInPage(); ken.Login(username, password, fullname, false); // comment: Check the My Account menu quality.Click("link=My Account"); quality.WaitForPageToLoad("30000"); ken.MyAccountPage(false); // comment: Click on the "View All Orders" button quality.Click("//div[@id='bd']/div[6]/a[2]/span"); quality.WaitForPageToLoad("30000"); ken.OrderSummary(false); // comment: Click on a "Details" button quality.Click("css=#view > a.button > span"); quality.WaitForPageToLoad("30000"); quality.AreEqual("Order Summary", quality.GetTitle()); // comment: go to "Order History" web page quality.Click("link=Order History"); quality.WaitForPageToLoad("30000"); quality.AreEqual("My Orders", quality.GetTitle()); // comment: Go back to My Account quality.Click("link=« Back"); quality.WaitForPageToLoad("30000"); quality.AreEqual("Account Settings", quality.GetTitle()); // comment: Sign Out ken.Logout(); }
//this is the test code generated by selenium //****Paste test script here***** public override void RunTest() { selenium.Open(base.baseURL); quality.AreEqual("Garmin Product Updates for Kenwood", quality.GetTitle()); quality.Click("link=Sign In"); quality.WaitForPageToLoad("30000"); quality.AreEqual("Sign In", quality.GetTitle()); ken.Login("newtestuser5", "password", "my name", false); // comment: Check the My Account menu quality.Click("link=My Account"); quality.WaitForPageToLoad("30000"); ken.MyAccountPage(true); // comment: Click on the "Edit Account" button quality.Click("css=a.button > span"); quality.WaitForPageToLoad("30000"); quality.AreEqual("Edit Account", quality.GetTitle()); ken.EditAccountPage(); // comment: Go back to My Account quality.Click("link=My Account"); quality.WaitForPageToLoad("30000"); quality.AreEqual("Account Settings", quality.GetTitle()); // comment: Click on the "Change Password" button quality.Click("//div[@id='bd']/div[4]/a[2]/span"); quality.WaitForPageToLoad("30000"); ken.ChangePasswordPage(); // comment: Go back to My Account quality.Click("link=My Account"); quality.WaitForPageToLoad("30000"); quality.AreEqual("Account Settings", quality.GetTitle()); // comment: Click on the "View Subscription" button quality.Click("//div[@id='bd']/div[6]/a/span"); quality.WaitForPageToLoad("30000"); ken.ViewSubscriptionsPage(true, false); // comment: Press "Back" button to switch to My Account quality.Click("css=a.button > span"); quality.WaitForPageToLoad("30000"); quality.AreEqual("Account Settings", quality.GetTitle()); // comment: Click on the "View All Orders" button quality.Click("//div[@id='bd']/div[6]/a[2]/span"); quality.WaitForPageToLoad("30000"); ken.OrderSummary(true); // comment: Press "Back" button to switch to My Account quality.Click("css=a.button > span"); quality.WaitForPageToLoad("30000"); quality.AreEqual("Account Settings", quality.GetTitle()); // comment: Click on the "View Downloads" button quality.Click("//div[@id='bd']/div[6]/a[3]/span"); quality.WaitForPageToLoad("30000"); ken.ViewDownloadsPage(true); // comment: Press "Back" button to switch to My Account quality.Click("css=a.button > span"); quality.WaitForPageToLoad("30000"); quality.AreEqual("Account Settings", quality.GetTitle()); // comment: Sign Out ken.Logout(); }