public void ThenIMNavigatedToTheFinaceDetailsSection() { try { // Creates a toggle for the given test, adds all log events under it test = extent.CreateTest("Add New Property -- fill out property details form and go to Finance Details Section "); test.AssignCategory("Add New Property Testing"); // Create an class and object to call the method AddNewPropertyPage addNewProperty = new AddNewPropertyPage(); if (addNewProperty.IsFianceFormHeaderDisplayed()) { Base.test.Log(AventStack.ExtentReports.Status.Pass, "Test passed, go to Fiance Details Section successfull"); } else { Base.test.Log(AventStack.ExtentReports.Status.Fail, "Test failed, go to Fiance Details Section unsuccessfull"); } } catch (Exception e) { Base.test.Log(AventStack.ExtentReports.Status.Fail, "Test failed, go to Fiance Details Section unsuccessfull" + e.Message); } }
public void ThenIGoBackToTheFinaceDetailsSection() { try { // Creates a toggle for the given test, adds all log events under it test = extent.CreateTest("Add New Property -- Go back to Finance Details Section"); AddNewPropertyPage addNewProperty = new AddNewPropertyPage(); if (addNewProperty.IsFianceFormHeaderDisplayed()) { Base.test.Log(AventStack.ExtentReports.Status.Pass, "Test passed, go back to Finance Details Section successfull"); } else { Base.test.Log(AventStack.ExtentReports.Status.Fail, "Test failed, go back to Finance Details Section unsuccessfull"); } } catch (Exception e) { Base.test.Log(AventStack.ExtentReports.Status.Fail, "Test failed, go back to Finance Details Section unsuccessfull" + e.Message); } }