Exemple #1
0
        public void User_Can_Search_Vacation_Rental()
        {
            Home            hp = new Home(ObjectRepository.Driver);
            VacationRentals vr = hp.NavigateToVacationRentals();

            vr.SearchVacationRentals("Central Park, New York, New York", "09/19/2018", "09/23/2018", 2);
            Assert.AreEqual("Central Park Hotel Search Results | Orbitz", WindowHelper.GetPageTitle());
        }
Exemple #2
0
        public void Test_To_Be_Failed()
        {
            log.Info("Starting Test: " + TestContext.TestName);
            BaseClass.BaseClass.test = BaseClass.BaseClass.report.StartTest(TestContext.TestName);
            Home            hp = new Home(ObjectRepository.Driver);
            VacationRentals vr = hp.NavigateToVacationRentals();

            log.Info("Navigated To Vacation Rentals Page");
            BaseClass.BaseClass.test.Log(LogStatus.Info, "Navigated To Vacation Rentals Page");

            log.Info("We are intensionally making the test fail here");
            BaseClass.BaseClass.test.Log(LogStatus.Info, "We are intensionally making the test fail here");
            Assert.IsTrue(false);
        }
Exemple #3
0
        public void User_Can_Search_Vacation_Rental()
        {
            log.Info("Starting Test: " + TestContext.TestName);
            BaseClass.BaseClass.test = BaseClass.BaseClass.report.StartTest(TestContext.TestName);
            Home            hp = new Home(ObjectRepository.Driver);
            VacationRentals vr = hp.NavigateToVacationRentals();

            log.Info("Navigated To Vacation Rentals Page");
            BaseClass.BaseClass.test.Log(LogStatus.Info, "Navigated To Vacation Rentals Page");
            vr.SearchVacationRentals("Central Park, New York, New York", "09/19/2018", "09/23/2018", 2);
            log.Info("Filled Out And Sumbmitted For Searching Vacation Rentals");
            BaseClass.BaseClass.test.Log(LogStatus.Info, "Filled Out And Sumbmitted For Searching Vacation Rentals");

            log.Info("Verifying the Expected & Actual");
            BaseClass.BaseClass.test.Log(LogStatus.Info, "Verifying the Expected & Actual");
            Assert.AreEqual("Central Park Hotel Search Results | Orbitz", WindowHelper.GetPageTitle());
        }