Exemplo n.º 1
0
        public void BookingSearchPageNavigation()
        {
            LoginMainPage logint = new LoginMainPage(this.Driver);

            logint.Navigate();
            logint.Login();
            CreateBookingMainPage CreateBooking = new CreateBookingMainPage(this.Driver);

            CreateBooking.CreateBookingNavigation();
            BookingSearchMainPage booksearch = new BookingSearchMainPage(this.Driver);

            booksearch.NavigateBookingSearch();
            Thread.Sleep(2000);
        }
Exemplo n.º 2
0
        public void BookingSearch()
        {
            LoginMainPage logint = new LoginMainPage(this.Driver);

            logint.Navigate();
            logint.Login();
            CreateBookingMainPage CreateBooking = new CreateBookingMainPage(this.Driver);

            CreateBooking.CreateBookingNavigation();
            BookingSearchMainPage booksearch = new BookingSearchMainPage(this.Driver);

            booksearch.NavigateBookingSearch();
            Thread.Sleep(2000);
            booksearch.EnterSearcCriteria();
            booksearch.selectBookingTypedrop();
            booksearch.selectpropertyDroperdown();
            booksearch.SelectStatusDroperdown();
            booksearch.CLickOnBookingSearchandSelectTheRecord();
        }
Exemplo n.º 3
0
        public void FFT_259_AddOnRecurringBooking()
        {
            LoginMainPage logint = new LoginMainPage(this.Driver);

            logint.Navigate();
            logint.Login();
            Thread.Sleep(2000);
            CreateBookingMainPage CreateBooking = new CreateBookingMainPage(this.Driver);

            CreateBooking.CreateBookingNavigation();
            BookingSearchMainPage booksearch = new BookingSearchMainPage(this.Driver);

            booksearch.NavigateBookingSearch();
            Thread.Sleep(2000);
            booksearch.FFT_256_BookingSearch_SelectThirdOccurance();
            Thread.Sleep(2000);
            BookingSummaryMainPage bookingsummary = new BookingSummaryMainPage(this.Driver);

            bookingsummary.ChangeBookingStatustoCancelled();
            bookingsummary.clickonsaveAndExit();
            bookingsummary.clickonGoToDIary();
            bookingsummary.NavigateTosrviceTrackerPage();
        }
Exemplo n.º 4
0
        [TestMethod] //256 should be executed
        public void FFT_257_AddOnRecurringBooking()
        {
            LoginMainPage logint = new LoginMainPage(this.Driver);

            logint.Navigate();
            logint.Login();
            Thread.Sleep(2000);
            CreateBookingMainPage CreateBooking = new CreateBookingMainPage(this.Driver);

            CreateBooking.CreateBookingNavigation();
            BookingSearchMainPage booksearch = new BookingSearchMainPage(this.Driver);

            booksearch.NavigateBookingSearch();
            Thread.Sleep(2000);
            booksearch.FFT_256_BookingSearch_SelectThirdOccurance();
            Thread.Sleep(2000);
            BookingSummaryMainPage bookingsummary = new BookingSummaryMainPage(this.Driver);

            bookingsummary.FFT256_ClickOnDateAndTimeOptionOnBookingSummaryPage();
            bookingsummary.ClickOnTimeViewPopUP_Select3PM();
            Thread.Sleep(15000);
            bookingsummary.NavigateTosrviceTrackerPage();
        }
Exemplo n.º 5
0
        public void FFT256_AddonRecurringBooking()
        {
            LoginMainPage logint = new LoginMainPage(this.Driver);

            logint.Navigate();
            logint.Login();
            Thread.Sleep(2000);
            CreateBookingMainPage CreateBooking = new CreateBookingMainPage(this.Driver);

            //createRecurring Booking with Addons
            CreateBooking.CreateBookingNavigation();
            Thread.Sleep(2000);
            CreateBooking.searchButtonclick();
            Thread.Sleep(5000);
            CreateBooking.CreateBookingValidate().TestResourceCheckbox();
            CreateBooking.selectingtheresource();
            Thread.Sleep(3000);
            CreateBooking.GotoSummaryPage();
            Thread.Sleep(4000);
            BookingSummaryMainPage bookingsummary = new BookingSummaryMainPage(this.Driver);

            bookingsummary.ClickOnRecurBookingButton();
            DiaryMainPage diary = new DiaryMainPage(this.Driver);

            Thread.Sleep(2000);
            bookingsummary.SelectDailyRecurBooking_FromBookingSummaryPage();
            Addons_FromNewBookingPage addAddon = new Addons_FromNewBookingPage(this.Driver);

            addAddon.CliCkOnAddAddon_FromBookingSummary();
            Thread.Sleep(2000);

            //adding two addons
            addAddon.FFT256_add_addon_Milk();
            addAddon.ClickOnAddAddonButton();
            Thread.Sleep(2000);
            addAddon.FFT256_add_addon_Juice();
            addAddon.ClickOnAddAddonButton();
            addAddon.clickOnGoToSummaryFromAddonPage();
            Thread.Sleep(2000);
            bookingsummary.EnterTitleForFFT_256();
            bookingsummary.clickonsaveAndExit();
            Thread.Sleep(10000);
            bookingsummary.clickonGoToDIary();

            //BookingSearch and Update Second occurance with new Addon
            CreateBooking.CreateBookingNavigation();
            BookingSearchMainPage booksearch = new BookingSearchMainPage(this.Driver);

            booksearch.NavigateBookingSearch();
            Thread.Sleep(2000);
            booksearch.FFT_256_BookingSearch_SelectSecondOccurance();
            Thread.Sleep(2000);
            addAddon.CliCkOnAddAddon_FromBookingSummary();
            Thread.Sleep(3000);
            addAddon.EditAddon();
            Thread.Sleep(1000);
            addAddon.FFT256_add_addon_Tea();
            addAddon.ClickOnAddAddonButton();
            addAddon.clickOnGoToSummaryFromAddonPage();
            Thread.Sleep(2000);
            bookingsummary.clickonsaveAndExit();
            Thread.Sleep(10000);
            bookingsummary.clickonGoToDIary();

            //Booking search and update last occurance for time 2-3PM
            CreateBooking.CreateBookingNavigation();
            booksearch.NavigateBookingSearch();
            Thread.Sleep(2000);
            booksearch.FFT_256_BookingSearch_SelectThirdOccurance();
            Thread.Sleep(2000);
            bookingsummary.FFT256_ClickOnDateAndTimeOptionOnBookingSummaryPage();
            bookingsummary.SelectTimecalender_Time2PM();
            bookingsummary.NavigateTosrviceTrackerPage();
        }