コード例 #1
0
 public void TC01_01_CreateNewBtnEnable()
 {
     BrowserManagement.updateReportTestName("Create New button Enable Test");
     if (customersPage.CheckCreateNewBtnEnabled())
     {
         Assert.IsTrue(true);
         BrowserManagement.passLog("Create New button is Enabled");
     }
     else
     {
         BrowserManagement.failLog("Create New Button is not enabled");
         Assert.Fail("Create New Button is not enabled");
     }
 }
コード例 #2
0
 public void TC01_03_CreateNewPageEditContactBtn()
 {
     BrowserManagement.updateReportTestName("Edit Contact button test in Create New Page");
     customersPage.clickOnCreateNewBtn();
     customersPage.inputContactDetails();
     if (BrowserManagement.driver.Title.Equals(Resources.title))
     {
         Assert.True(true);
         BrowserManagement.passLog("Able to input and save Contact details"); // coming back to the create new page
     }
     else
     {
         BrowserManagement.failLog("Unable to save the contact details");  //not returning back to the correct page
         Assert.Fail("Test failed");
     }
 }
コード例 #3
0
        public void TC01_02_CreateNewBtnPage()
        {
            BrowserManagement.updateReportTestName("Create New Page test");
            customersPage.clickOnCreateNewBtn();

            if ((BrowserManagement.driver.Title).Equals(Resources.title))
            {
                Assert.True(true);
                BrowserManagement.passLog("User navigates to the correct page");
            }
            else
            {
                BrowserManagement.failLog("Unable to navigate to correct page");
                Assert.Fail("Test failed");
            }
        }