コード例 #1
0
 public void ReturnToOriginalSearchPage()
 {
     try
     {
         test = extent.CreateTest("_767__Return_To_Original_Search_Result");
         OpenBrowser(Browser.Chrome);
         Navigation.GoToURL("http://ii4.dev.brandmuscle.net/");
         LoginPage.LoginToApplication("*****@*****.**", "go2web");
         HomePage.VerifyHomePage();
         HomePage.ClickOnProjects();
         MyProjectsPage.VerifyProjectsPage();
         MyProjectsPage.ClickOnPosOnDemand();
         POS_On_Demand.SelectTemplate();
         CreateDesignPage.VerifyPreviewChanges();
         CreateDesignPage.ClickOnNextStep();
         CreateDesignPage.ClickOnNoFromNextStep();
         SelectProductDetailsPage.VerifySelectProductDetailsPage();
         SelectProductDetailsPage.ClickOnBack();
         SelectProductDetailsPage.ClickYesFromBack();
         POS_On_Demand.VerifyPosOnDemand();
     }
     catch (Exception e)
     {
         test.Fail("Return To Original Search Page failed due to " + e);
     }
 }
コード例 #2
0
 public void SaveExistingDesignNameFromPos()
 {
     try
     {
         test = extent.CreateTest("_6823_SaveDesignFromPos");
         OpenBrowser(Browser.Chrome);
         Navigation.GoToURL("http://ii4.dev.brandmuscle.net/");
         LoginPage.LoginToApplication("*****@*****.**", "go2web");
         HomePage.VerifyHomePage();
         MyProjectsPage.VerifyProjectsPage();
         string designname = MyProjectsPage.GetExistingName();
         MyProjectsPage.ClickOnPosOnDemand();
         POS_On_Demand.SelectTemplate();
         CreateDesignPage.VerifyPreviewChanges();
         CreateDesignPage.ClickOnSave();
         CreateDesignPage.GiveExistingName(designname);
         CreateDesignPage.ClickOnSaveInSaveDesignPopup();
         CreateDesignPage.ClickOnYesInOverWritePopup();
         CreateDesignPage.VerifyConfirmationMsg();
         Driver.Quit();
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         test.Fail("_6823_SaveDesignFromPos" + e);
         Assert.Fail();
     }
 }