Пример #1
0
            public void PO_AddANewProperty(string TestDataSheetName, int TestDataSetNumber)
            {
                // Create a toggle for the test to log events
                test = extent.StartTest("Add a New Property");
                //Set the excel path and sheet name for the test data for the test case
                ExcelLib.PopulateInCollection(Base.ExcelPath, TestDataSheetName);

                // Create a Property Details page object to add a new property
                PropertyDetails PropertyDetailsObj = new PropertyDetails();

                //Verify that the new listing is displayed in the "My Properties" page
                //Proceed to verification if the property was added successfully
                if (PropertyDetailsObj.AddNewProperty(TestDataSetNumber) == true)
                {
                    PropertyOwner PropertyOwnerObj = new PropertyOwner();
                    PropertyOwnerObj.VerifyNewProperty(TestDataSetNumber);
                }
            }