public void ThenUserSearchResultsForPropertyAreSuccessfull()
        {
            // Creates a toggle for the given test, adds all log events under it
            test = extent.StartTest("Search for a Property");

            // Create an class and object to call the method
            PropertyOwner obj = new PropertyOwner();

            obj.SearchAProperty();


            // Screenshot
            String img = SaveScreenShotClass.SaveScreenshot(Driver.driver, "Searc Properties");

            test.Log(LogStatus.Info, "Image example: " + img);

            // end test. (Reports)
            extent.EndTest(test);

            // calling Flush writes everything to the log file (Reports)
            extent.Flush();

            //Close the broswer
            Global.Driver.driver.Close();
        }
        // Common methods to navigate into the "Tenants In Property" page
        public void NavigateToPage(string PropertyName)
        {
            //Calling the common methods to navigate into the ''My Properties' page
            PropertyOwner PropertyOwnerObj = new PropertyOwner();

            //Click on the 'Add Tenant' button to navigate to the 'Add Tenant' Page
            PropertyOwnerObj.ClickManageTenant(PropertyName);
        }
Example #3
0
        public void WhenUserHaveSentANewInspectionRequest()
        {
            // Creates a toggle for the given test, adds all log events under it
            test = extent.StartTest("Send a new inspection request");

            PropertyOwner obj = new PropertyOwner();

            obj.Inspections();
        }
Example #4
0
        public void WhenUserHaveListedANewRentalProperty()
        {
            // Creates a toggle for the given test, adds all log events under it
            test = extent.StartTest("Add a rental property");

            PropertyOwner obj = new PropertyOwner();

            obj.ListAsRental();
        }
Example #5
0
        public void WhenUserHaveListedANewTenant()
        {
            // Creates a toggle for the given test, adds all log events under it
            test = extent.StartTest("Add a Tenant");

            PropertyOwner obj = new PropertyOwner();

            obj.AddTenant();
        }
Example #6
0
        // Common methods to navigate into the "Add Tenant" page
        public void NavigateToPage(int TestDataSetNumber)
        {
            //Calling the common methods to navigate into the ''My Properties' page
            PropertyOwner PropertyOwnerObj = new PropertyOwner();

            PropertyOwnerObj.Common_methods();

            //Click on the 'Add Tenant' button to navigate to the 'Add Tenant' Page
            PropertyOwnerObj.ClickAddTenant(ExcelLib.ReadData(TestDataSetNumber, "PropertyName"));
        }
        // Common methods to navigate into the "Property Details" page
        public void NavigateToPage()
        {
            //Calling the common methods to navigate into the properties page
            PropertyOwner PropertyOwnerObj = new PropertyOwner();

            PropertyOwnerObj.Common_methods();

            //Click on the Add New Property button to navigate to the Property Details Page
            PropertyOwnerObj.ClickAddNewProperty();
        }
Example #8
0
        // Common methods to navigate into the "List Rental Property" page
        public void NavigateToPage()
        {
            //Calling the common methods to navigate into the my properties page
            PropertyOwner PropertyOwnerObj = new PropertyOwner();

            PropertyOwnerObj.Common_methods();

            //Click on the List A Rental button to navigate to the 'List Rental Property' Page
            PropertyOwnerObj.ClickListARental();
        }
Example #9
0
        public void ThenUserSearchResultsForPropertyAreSuccessfull()
        {
            // Creates a toggle for the given test, adds all log events under it
            test = extent.StartTest("Search for a Property");

            // Create an class and object to call the method
            PropertyOwner obj = new PropertyOwner();

            obj.SearchAProperty();

            //Close the broswer
            Global.Driver.driver.Close();
        }