Ejemplo n.º 1
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();
        }
Ejemplo n.º 2
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();
            }