Beispiel #1
0
            public void SearchAProperty()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("Search for a Property" + GetDateAndTime.GetTimeNow());
                // After Login and the goto Dashboard Page
                DashboardPage dashboardPage = new DashboardPage();
                // Create an class and object to call the method
                PropertyOwnerPage propertyOwnerPage = dashboardPage.GotoPropertyOwnersPage();

                //Search the property
                propertyOwnerPage.SearchAProperty();
            }
Beispiel #2
0
            public void ListARental()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("List A Rental and Verity it" + GetDateAndTime.GetTimeNow());
                //Now page is Dashboard, then go to PropertyOwnersPage
                PropertyOwnerPage propertyOwnerPage = new DashboardPage().GotoPropertyOwnersPage();

                //move to listRental Page
                ListRentalPage listRentalPage = propertyOwnerPage.ClickListRental();

                //Fill the detail of ListRental Page
                listRentalPage.FillTheDetails();
                //Verity ListRental Page
                listRentalPage.VerfyListRentalPage();
                //Save and Confirm list Rental
                RentalPropertiesPage rentalPropertiesPage = listRentalPage.ClickSaveAndAcceptListRental();

                //check the result
                rentalPropertiesPage.CheckRentalWhichAdded();
            }
Beispiel #3
0
            public void CreateNewProperty()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("Create new property and Verity it" + GetDateAndTime.GetTimeNow());
                //Now page is Dashboard, then go to PropertyOwnersPage
                PropertyOwnerPage propertyOwnerPage = new DashboardPage().GotoPropertyOwnersPage();

                AddNewPropertyPage addNewPropertyPage = propertyOwnerPage.ClickAddNewPropertyBtn();

                //Fill details of AddNewProperty Page.
                addNewPropertyPage.FillAllFieldsWithoutTickOwnerOccupied();
                //Verify addNewPropertyPage
                addNewPropertyPage.VerifyPropertyDetailsPage();

                //Click Next button and move to financedetailsPage
                FinancedetailsPage financedetailsPage = addNewPropertyPage.ClickNext();

                //Fill the detail
                financedetailsPage.FillFinanceDetailsPage();
                //Add repayment
                financedetailsPage.FillAddRepayment();
                //Verify Finance Detail Page
                financedetailsPage.VerifyFinanceDetailsPage();

                //Goto to Tenant Detail Page
                TenantDetailsPage tenantDetailsPage = financedetailsPage.ClickNext();

                // fill the data of tenantDetailsPage
                tenantDetailsPage.FillTheDetails();
                // verify tenantDetailsPage
                tenantDetailsPage.VerifyTenantDetailsPage();
                // Click save button
                PropertyOwnerPage propertyOwnerPageSavedNewPro = tenantDetailsPage.ClickSave();

                // Verify the result
                propertyOwnerPageSavedNewPro.SearchPropertiesWhichAdded();
            }
Beispiel #4
0
            public void AddTenant()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("Add Tenant and Verity it" + GetDateAndTime.GetTimeNow());
                //Now page is Dashboard, then go to PropertyOwnersPage
                PropertyOwnerPage propertyOwnerPage = new DashboardPage().GotoPropertyOwnersPage();
                //Click add tenant by input proerty name
                AddTenantDashboardPage addTenantDashboardPage =
                    propertyOwnerPage.ClickAddTenantAccordingToPropertyName();

                //fill AddTenantDashboard detail
                addTenantDashboardPage.FillTheDetails();
                //verity this page
                addTenantDashboardPage.VerifyTenantDetailsPage();
                //click next button and move to liabilitiesDetailsPage
                LiabilitiesDetailsPage liabilitiesDetailsPage = addTenantDashboardPage.ClickNext();
                //click next button and move to summaryPage
                SummaryPage summaryPage = liabilitiesDetailsPage.ClickNextBtn();
                //click submit button and move to PropertyOwnerPage
                PropertyOwnerPage propertyOwnerPageAfterAddTenant = summaryPage.ClickSubmit();

                //verify if the tenant is added.
                propertyOwnerPageAfterAddTenant.VerifyAddTenant();
            }
Beispiel #5
0
 public CreateNewPropertySteps()
 {
     // Creates a toggle for the given test, adds all log events under it
     Base.test =
         Base.extent.StartTest("Create new property and Verity it" + GetDateAndTime.GetTimeNow());
 }
 public void GivenGoToPropertyOwnerPage()
 {
     // Creates a toggle for the given test, adds all log events under it
     Base.test = Base.extent.StartTest("Add Tenant and Verity it" + GetDateAndTime.GetTimeNow());
 }
 public ListARentalSteps()
 {
     // Creates a toggle for the given test, adds all log events under it
     Base.test = Base.extent.StartTest("List A Rental and Verity it" + GetDateAndTime.GetTimeNow());
 }