Exemplo n.º 1
0
        public void ThenANewPropertyShouldBeCreated()
        {
            PropertyOwnerPage propertyOwnerPageSavedNewPro = new PropertyOwnerPage();

            // Verify the result
            propertyOwnerPageSavedNewPro.SearchPropertiesWhichAdded();
        }
Exemplo n.º 2
0
        public void ThenTheTenantIsAdded()
        {
            PropertyOwnerPage propertyOwnerPageAfterAddTenant = new PropertyOwnerPage();

            //verify if the tenant is added.
            propertyOwnerPageAfterAddTenant.VerifyAddTenant();
        }
Exemplo n.º 3
0
        public void WhenIFillAllTheFormsOfPropertyDetailsPageFinanceDetailsPageAndTenantDetailsPageAndClickSaveButton()
        {
            AddNewPropertyPage addNewPropertyPage = new AddNewPropertyPage();

            //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();
        }
Exemplo n.º 4
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();
            }
Exemplo n.º 5
0
        public void WhenIFillAllTheFormOfEachPageAddTenantDashboardLiabilitiesDetailsPageSummaryPageAndISubmit()
        {
            PropertyOwnerPage propertyOwnerPage = new PropertyOwnerPage();
            //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();
        }
Exemplo n.º 6
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();
            }
Exemplo n.º 7
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();
            }
Exemplo n.º 8
0
        public void GivenClickAddNewPRopertyButton()
        {
            PropertyOwnerPage propertyOwnerPage = new PropertyOwnerPage();

            AddNewPropertyPage addNewPropertyPage = propertyOwnerPage.ClickAddNewPropertyBtn();
        }