コード例 #1
0
 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();
     }
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 public void CancelCreateDesign()
 {
     try
     {
         test = extent.CreateTest("_6702_EditNegative");
         OpenBrowser(Browser.Chrome);
         Navigation.GoToURL("http://ii4.dev.brandmuscle.net/");
         LoginPage.LoginToApplication("*****@*****.**", "go2web");
         HomePage.VerifyHomePage();
         MyProjectsPage.VerifyProjectsPage();
         MyProjectsPage.ClickOnEdit();
         CreateDesignPage.VerifyCreateDesignPage();
         CreateDesignPage.ClickOnCancel();
         CreateDesignPage.ClickOnNoFromCancel();
         Driver.Quit();
     }
     catch (Exception e)
     {
         test.Fail("_6702_Edit_Negative failed" + e);
     }
 }
コード例 #4
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);
     }
 }
コード例 #5
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);
     }
 }
コード例 #6
0
 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);
     }
 }
コード例 #7
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();
     }
 }