Exemple #1
0
        public void TheniGoBackToThePropertyDetailsSection()
        {
            try
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.CreateTest("Add New Property -- Go back to Property Details Section");

                AddNewPropertyPage addNewProperty = new AddNewPropertyPage();
                if (addNewProperty.IsPropertyFormHeaderDisplayed())
                {
                    Base.test.Log(AventStack.ExtentReports.Status.Pass, "Test passed, go back to Property Details Section successfull");
                }
                else
                {
                    Base.test.Log(AventStack.ExtentReports.Status.Fail, "Test failed, go back to Property Details Section unsuccessfull");
                }
            }
            catch (Exception e)
            {
                Base.test.Log(AventStack.ExtentReports.Status.Fail, "Test failed, go back to Property Details Section unsuccessfull" + e.Message);
            }
        }