コード例 #1
0
        public void ThenIMNavigatedToTheTenantDetailsSection()
        {
            try
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.CreateTest("Add New Property -- fill out finance details form and go to Tenant Details Section");

                AddNewPropertyPage addNewProperty = new AddNewPropertyPage();

                if (addNewProperty.IsTenantFormHeaderDisplayed())
                {
                    Base.test.Log(AventStack.ExtentReports.Status.Pass, "Test passed, go to Tenant Details Section successfully");
                }

                else
                {
                    Base.test.Log(AventStack.ExtentReports.Status.Fail, "Test failed, go to Tenant Details Section unsuccessfull");
                }
            }
            catch (Exception e)
            {
                Base.test.Log(AventStack.ExtentReports.Status.Fail, "Test failed, go to Tenant Details Section unsuccessfull" + e.Message);
            }
        }