public void GivenIHaveAddedANewProperty() { AddNewPropertyPage addNewProperty = new AddNewPropertyPage(); addNewProperty.AddPropertyDetails(); addNewProperty.GotoFinanceForm(); addNewProperty.AddFinanceDetails(); addNewProperty.GotoTenantForm(); addNewProperty.AddTenantDetails(); addNewProperty.SaveProperty(); }
public void GivenIMAlreadyOnTheTenantDetailsSection() { //Go to Finance Section AddNewPropertyPage addNewProperty = new AddNewPropertyPage(); addNewProperty.AddPropertyDetails(); addNewProperty.GotoFinanceForm(); //Go to Tenant Section addNewProperty.AddFinanceDetails(); addNewProperty.GotoTenantForm(); }
public void PO_SearchPropertyAfterAddingNewProperty() { // Creates a toggle for the given test, adds all log events under it test = extent.StartTest("Search property after adding a new property"); test.AssignCategory("New Add Property"); //Go to my properties page DashboardPage dashboard = new DashboardPage(); dashboard.GoToMyPropertiesPage(); //Get new property name from the excel file ExcelLib.PopulateInCollection(Base.ExcelPath, "Property Details"); String PropertyName = ExcelLib.ReadData(2, "Property Name"); //Search this property under my properties page and delete the property which has the same name as new property MyPropertiesPage myProperty = new MyPropertiesPage(); if (myProperty.SearchAPropertySuccessfully(PropertyName)) { myProperty.DeleteAProperty(PropertyName); } //Click add new property button and go to add new property page myProperty.AddNewProperty(); #region Add new property AddNewPropertyPage addNewProperty = new AddNewPropertyPage(); //Fill out property details form and go to finance details form addNewProperty.AddPropertyDetails(); addNewProperty.GotoFinanceForm(); //Fill out finance details form and go to tenant details form addNewProperty.AddFinanceDetails(); addNewProperty.GotoTenantForm(); //Fill out tenant details page and save new property addNewProperty.AddTenantDetails(); addNewProperty.SaveProperty(); #endregion //Do the validation if (myProperty.SearchAPropertySuccessfully(PropertyName)) { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Test passed, successfully search this new added property"); } else { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Test falied, fail to search this new added property"); } }
public void WhenIEnterAllTheFinanceDetails() { AddNewPropertyPage addNewProperty = new AddNewPropertyPage(); addNewProperty.AddFinanceDetails(); }