Ejemplo n.º 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);
     }
 }
 public void SaveNewDeisgnFromEdit()
 {
     try
     {
         test = extent.CreateTest("_6822_SaveNewDesignName");
         OpenBrowser(Browser.Chrome);
         Navigation.GoToURL("http://ii4.dev.brandmuscle.net/");
         LoginPage.LoginToApplication("*****@*****.**", "go2web");
         HomePage.VerifyHomePage();
         MyProjectsPage.VerifyProjectsPage();
         MyProjectsPage.ClickOnEdit();
         CreateDesignPage.VerifyCreateDesignPage();
         CreateDesignPage.VerifyPreviewChanges();
         CreateDesignPage.ClickOnSave();
         CreateDesignPage.ClickOnSaveInSaveDesignPopup();
         CreateDesignPage.ClickOnNoInOverWritePopup();
         CreateDesignPage.ClearTextInSaveDesignPopup();
         CreateDesignPage.SaveDesignWithNewName("template");
         Driver.Quit();
     }
     catch (Exception e)
     {
         test.Fail("_6822_SaveNewDesignName" + e);
         Assert.Fail();
     }
 }
 public void VerifyPromptToSaveDesign()
 {
     try
     {
         test = extent.CreateTest("_6824_Prompt_SaveDesign");
         OpenBrowser(Browser.Chrome);
         Navigation.GoToURL("http://ii4.dev.brandmuscle.net/");
         LoginPage.LoginToApplication("*****@*****.**", "go2web");
         HomePage.VerifyHomePage();
         MyProjectsPage.VerifyProjectsPage();
         MyProjectsPage.ClickOnEdit();
         CreateDesignPage.VerifyCreateDesignPage();
         CreateDesignPage.VerifyPreviewChanges();
         CreateDesignPage.ClickOnNextStep();
         CreateDesignPage.ClickOnYes();
         CreateDesignPage.ClearTextInSaveDesignPopup();
         CreateDesignPage.SaveDesignWithNewName("template1");
         SelectProductDetailsPage.VerifySelectProductDetailsPage();
         Driver.Quit();
     }
     catch (Exception e)
     {
         test.Fail("_6824_Prompt_SaveDesign" + e);
     }
 }
Ejemplo n.º 4
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();
     }
 }
Ejemplo n.º 5
0
 public void SaveDesign()
 {
     try
     {
         test = extent.CreateTest("_6203_Save");
         OpenBrowser(Browser.Chrome);
         Navigation.GoToURL("http://ii4.dev.brandmuscle.net/");
         LoginPage.LoginToApplication("*****@*****.**", "go2web");
         HomePage.VerifyHomePage();
         MyProjectsPage.VerifyProjectsPage();
         MyProjectsPage.ClickOnEdit();
         CreateDesignPage.VerifyCreateDesignPage();
         CreateDesignPage.VerifyPreviewChanges();
         CreateDesignPage.VerifySaveDesign("template1");
         test.Pass("_6203_Save passed");
         Driver.Quit();
     }
     catch (Exception e)
     {
         test.Fail("_6203_Save failed" + e);
     }
 }
Ejemplo n.º 6
0
 public void ClickOnCancelNextStep()
 {
     try
     {
         test = extent.CreateTest("_6828_CancelFromCreateDeisgnPage");
         OpenBrowser(Browser.Chrome);
         Navigation.GoToURL("http://ii4.dev.brandmuscle.net/");
         LoginPage.LoginToApplication("*****@*****.**", "go2web");
         HomePage.VerifyHomePage();
         MyProjectsPage.VerifyProjectsPage();
         MyProjectsPage.ClickOnEdit();
         CreateDesignPage.VerifyCreateDesignPage();
         CreateDesignPage.VerifyPreviewChanges();
         CreateDesignPage.ClickOnCancel();
         CreateDesignPage.ClickOnYesFromCancel();
         CreateDesignPage.VerifyExistenceOfSaveDesignPopup();
         Driver.Quit();
     }
     catch (Exception e)
     {
         test.Fail("_6828_CancelFromCreateDeisgnPage" + e);
     }
 }
 public void ClickOnNoFromNextStep()
 {
     try
     {
         test = extent.CreateTest("_6827_NegativeCasesNextStep");
         OpenBrowser(Browser.Chrome);
         Navigation.GoToURL("http://ii4.dev.brandmuscle.net/");
         LoginPage.LoginToApplication("*****@*****.**", "go2web");
         HomePage.VerifyHomePage();
         MyProjectsPage.VerifyProjectsPage();
         MyProjectsPage.ClickOnEdit();
         CreateDesignPage.VerifyCreateDesignPage();
         CreateDesignPage.VerifyPreviewChanges();
         CreateDesignPage.ClickOnNextStep();
         CreateDesignPage.ClickOnNoFromNextStep();
         SelectProductDetailsPage.VerifySelectProductDetailsPage();
         Driver.Quit();
     }
     catch (Exception e)
     {
         test.Fail("_6827_NegativeCasesNextStep" + e);
     }
 }
Ejemplo n.º 8
0
 public void VerifyPromptToSaveDesign()
 {
     try
     {
         test = extent.CreateTest("_6829_NegativeCasesForCancel");
         OpenBrowser(Browser.Chrome);
         Navigation.GoToURL("http://ii4.dev.brandmuscle.net/");
         LoginPage.LoginToApplication("*****@*****.**", "go2web");
         HomePage.VerifyHomePage();
         MyProjectsPage.VerifyProjectsPage();
         MyProjectsPage.ClickOnEdit();
         CreateDesignPage.VerifyCreateDesignPage();
         CreateDesignPage.VerifyPreviewChanges();
         CreateDesignPage.ClickOnCancel();
         CreateDesignPage.ClickOnNoFromCancel();
         MyProjectsPage.VerifyProjectsPage();
         Driver.Quit();
     }
     catch (Exception e)
     {
         test.Fail("_6829_NegativeCasesForCancel" + e);
     }
 }
Ejemplo n.º 9
0
 public void OverWriteDesignNameFromEdit()
 {
     try
     {
         test = extent.CreateTest("_6821_OverrideSaveDesign");
         OpenBrowser(Browser.Chrome);
         Navigation.GoToURL("http://ii4.dev.brandmuscle.net/");
         LoginPage.LoginToApplication("*****@*****.**", "go2web");
         HomePage.VerifyHomePage();
         MyProjectsPage.VerifyProjectsPage();
         MyProjectsPage.ClickOnEdit();
         CreateDesignPage.VerifyCreateDesignPage();
         CreateDesignPage.VerifyPreviewChanges();
         //CreateDesignPage.ClickOnYesInOverWritePopup();
         CreateDesignPage.OverWriteExistingNameWithYes();
         CreateDesignPage.VerifyConfirmationMsg();
         Driver.Quit();
     }
     catch (Exception e)
     {
         test.Fail("_6821_OverrideSaveDesign" + e);
         Assert.Fail();
     }
 }