コード例 #1
0
ファイル: DiaryUnitTest.cs プロジェクト: priya203/WebAppTest
        public void FFT47_pre_CreateRecurringBooking10AMto11AM()
        {
            LoginMainPage gg = new LoginMainPage(this.Driver);

            gg.Navigate();
            gg.Login();
            Thread.Sleep(2000);
            DiaryMainPage diary = new DiaryMainPage(this.Driver);

            diary.FFT47_selectDiaryCellForRecurBooking();
            Thread.Sleep(1000);
            diary.SelectRecurBooking_Checkbox();
            Thread.Sleep(2000);
            diary.FFTTest46_EnterFromandToDateSlot_10111();
            diary.SelectDailyRecurringBooking();
            diary.SelectDailyRecurBookingDates();
            diary.ShowTargetDate_ContinueBooking_recur();
            diary.FFTTest46_clickOncontinuewithbookingTime_1011();
            Thread.Sleep(4000);
            diary.EnterTitleForRecurringBooking();
            Thread.Sleep(2000);
            BookingSummaryMainPage bookingsummary = new BookingSummaryMainPage(this.Driver);

            bookingsummary.clickonsaveAndExit();
            Thread.Sleep(10000);
            bookingsummary.clickonGoToDIary();
        }
コード例 #2
0
        public void FFT200()
        {
            LoginMainPage logint = new LoginMainPage(this.Driver);

            logint.Navigate();
            logint.Login();
            Thread.Sleep(2000);
            DiaryMainPage dd = new DiaryMainPage(this.Driver);

            dd.FFTTest200_SelectAndContinueWithBooking();
            Thread.Sleep(1000);
            BookingSummaryMainPage    bookingsummary = new BookingSummaryMainPage(this.Driver);
            Addons_FromNewBookingPage addAddon       = new Addons_FromNewBookingPage(this.Driver);

            //  addAddon.CliCkOnAddAddon_FromBookingSummary();
            Thread.Sleep(3000);
            Thread.Sleep(2000);
            bookingsummary.clickOnAddAddon();
            Thread.Sleep(3000);
            bookingsummary.EnterTitleFFT_200();
            Thread.Sleep(5000);
            bookingsummary.clickonsaveAndExit();
            Thread.Sleep(7000);
            bookingsummary.clickonGoToDIary();
            Thread.Sleep(7000);
            dd.FFTTest200_DragandDrop_Chnageroom();
            Thread.Sleep(7000);
            dd.ClickConfirmChangeRoom();
            Thread.Sleep(3000);
            dd.ClickOnMovedBooking_Room();
            Thread.Sleep(3000);
            bookingsummary.FFT200_clickonAddAdon_Button_Verify_AddedAddon();
            Thread.Sleep(3000);
        }
コード例 #3
0
        public void FFT202()
        {
            LoginMainPage logint = new LoginMainPage(this.Driver);

            logint.Navigate();
            logint.Login();
            Thread.Sleep(3000);
            DiaryMainPage dd = new DiaryMainPage(this.Driver);

            dd.FFTTest202_SelectAndContinueWithBooking();
            Thread.Sleep(3000);
            BookingSummaryMainPage bookingsummary = new BookingSummaryMainPage(this.Driver);

            bookingsummary.EnterTitleFFT_202();
            Thread.Sleep(2000);
            bookingsummary.ENterSetUPtime();
            Thread.Sleep(2000);
            bookingsummary.ENterBreakdowntime();
            Thread.Sleep(2000);
            bookingsummary.clickonsaveAndExit();
            Thread.Sleep(7000);
            bookingsummary.clickonGoToDIary();
            Thread.Sleep(7000);
            dd.FFTTest202_DragandDrop();
            Thread.Sleep(6000);
            Driver.SwitchTo().Frame(Driver.FindElement(By.Id("frmPnlMove")));
            dd.ClickOn_confirmMoveBooking();
            Thread.Sleep(6000);
            dd.FFTTest202_ClickOnMovedBooking_Time();
            Thread.Sleep(4000);
            bookingsummary.VerifySetUpBreakdownTime_ForMovedBooking();
        }
コード例 #4
0
        public void FFT_273Cutoffs()
        {
            //Creating New Booking With Titile FFT273
            LoginMainPage logint = new LoginMainPage(this.Driver);

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

            CreateBooking.SelectTodaysDate_Time12_30PM();
            CreateBooking.searchButtonclick();
            Thread.Sleep(5000);
            CreateBooking.CreateBookingValidate().TestResourceCheckbox();
            CreateBooking.selectingtheresource();
            Thread.Sleep(3000);
            CreateBooking.GotoSummaryPage();
            Thread.Sleep(4000);
            Addons_FromNewBookingPage addAddon = new Addons_FromNewBookingPage(this.Driver);

            addAddon.CliCkOnAddAddon_FromBookingSummary();
            Thread.Sleep(3000);
            addAddon.FFT_263_Add_addon_CheeseTray();
            Thread.Sleep(2000);
            addAddon.ClickOnAddAddonButton();
            Thread.Sleep(2000);
            addAddon.clickOnGoToSummaryFromAddonPage();
            Thread.Sleep(2000);
            BookingSummaryMainPage bookingsummary = new BookingSummaryMainPage(this.Driver);

            bookingsummary.EnterTtileFor_FFT_273();
            Thread.Sleep(2000);
            bookingsummary.clickonsaveAndExit();
            Thread.Sleep(3000);
            bookingsummary.clickonGoToDIary();

            //Updating AddonSettings
            AddonMainPage addon = new AddonMainPage(this.Driver);

            addon.FFT_263_SetBookingCutOffPeriod_2Hrs();

            //update ExistingBooking
            bookingsummary.clickonGoToDIary();
            CreateBooking.CreateBookingNavigation();
            BookingSearchMainPage booksearch = new BookingSearchMainPage(this.Driver);

            booksearch.FFT_273_BookingSearch();
            Thread.Sleep(2000);
            bookingsummary.FFT256_ClickOnDateAndTimeOptionOnBookingSummaryPage();
            bookingsummary.SelectToDateTime2_30();
            Thread.Sleep(6000);
            bookingsummary.NavigateTosrviceTrackerPage();
        }
コード例 #5
0
        public void FFT46()
        {
            LoginMainPage logint = new LoginMainPage(this.Driver);

            logint.Navigate();
            logint.Login();
            DiaryMainPage dd = new DiaryMainPage(this.Driver);

            dd.FFTTest46_SelectAndContinueWithBookingFirst();
            dd.FFTTest46_EnterFromandToDateSlot_10111();
            dd.FFTTest46_clickOncontinuewithbookingTime_1011();

            BookingSummaryMainPage bookingsummary = new BookingSummaryMainPage(this.Driver);

            Thread.Sleep(3000);
            bookingsummary.EnterTitleFFT_46Case1();
            Thread.Sleep(1000);
            bookingsummary.clickonsaveAndExit();
            Thread.Sleep(9000);
            bookingsummary.clickonGoToDIary();
            Thread.Sleep(7000);
            dd.FFTTest46_SelectAndContinueWithBookingTarget();
            Thread.Sleep(5000);
            bookingsummary.EnterTitleFFT_46Case2();
            Thread.Sleep(1000);
            bookingsummary.clickonsaveAndExit();
            Thread.Sleep(7000);
            bookingsummary.clickonGoToDIary();
            Thread.Sleep(7000);
            dd.FFTTest46_DragandDrop();
            Thread.Sleep(3000);
            Driver.SwitchTo().Frame(Driver.FindElement(By.Id("frmPnlMove")));
            Thread.Sleep(1000);
            dd.ClickOn_confirmMoveBooking();
            Thread.Sleep(8000);
            bookingsummary.BookingSummaryValidate().DisplayAlternteResource();
            Thread.Sleep(5000);
        }
コード例 #6
0
        public void FFT_276Cutoffs()
        {
            LoginMainPage logint = new LoginMainPage(this.Driver);

            logint.Navigate();
            logint.Login();
            Thread.Sleep(2000);
            PropertySettingMainPage propertyset = new PropertySettingMainPage(this.Driver);

            //propertyset.Clear_AddonNotice_CutOff();
            Thread.Sleep(2000);
            AddonMainPage addon = new AddonMainPage(this.Driver);
            // addon.FFT_276_Set48HoursforWeekend_CutOffTime3PM_2HrPeriod();
            BREMainPage bre = new BREMainPage(this.Driver);
            //bre.FFT_269_48CutOffRuleForFriday();
            CreateBookingMainPage CreateBooking = new CreateBookingMainPage(this.Driver);

            Thread.Sleep(2000);
            CreateBooking.SelectTime_3AM();
            CreateBooking.searchButtonclick();
            Thread.Sleep(5000);
            CreateBooking.CreateBookingValidate().TestResourceCheckbox();
            CreateBooking.selectingtheresource();
            Thread.Sleep(3000);
            CreateBooking.GotoSummaryPage();
            Thread.Sleep(4000);
            Addons_FromNewBookingPage addAddon = new Addons_FromNewBookingPage(this.Driver);

            addAddon.CliCkOnAddAddon_FromBookingSummary();
            Thread.Sleep(3000);
            addAddon.FFT_263_Add_addon_CheeseTray();
            Thread.Sleep(2000);
            addAddon.ClickOnAddAddonButton();
            Thread.Sleep(2000);
            addAddon.clickOnGoToSummaryFromAddonPage();
            Thread.Sleep(2000);
            BookingSummaryMainPage bookingsummary = new BookingSummaryMainPage(this.Driver);

            bookingsummary.EnterTtileFor_FFT_276();
            Thread.Sleep(2000);
            bookingsummary.clickonsaveAndExit();
            Thread.Sleep(3000);
            bookingsummary.clickonGoToDIary();
            Thread.Sleep(3000);
            bookingsummary.NavigateTosrviceTrackerPage();
        }
コード例 #7
0
        public void FFT49_And_FFT86()
        {
            LoginMainPage logint = new LoginMainPage(this.Driver);

            logint.Navigate();
            logint.Login();
            Thread.Sleep(2000);
            DiaryMainPage diary = new DiaryMainPage(this.Driver);

            diary.FFTTest49_SelectAndContinueWithBooking_UDF();

            BookingSummaryMainPage bookingsummary = new BookingSummaryMainPage(this.Driver);

            bookingsummary.FFT_50_ClearParentUDFSelection();
            Thread.Sleep(5000);
            bookingsummary.FFT49and86_PopUPCLearValueFromDependentField();
            Thread.Sleep(2000);
            bookingsummary.clickonsaveAndExit();
            Thread.Sleep(3000);
        }
コード例 #8
0
        public void FFT_275Cutoffs()
        {
            LoginMainPage logint = new LoginMainPage(this.Driver);

            logint.Navigate();
            logint.Login();
            Thread.Sleep(2000);
            AddonMainPage addon = new AddonMainPage(this.Driver);

            addon.FFT_275_CutOffTime_12PM_2hours();
            CreateBookingMainPage CreateBooking = new CreateBookingMainPage(this.Driver);

            Thread.Sleep(2000);
            CreateBooking.SelectTodaysDate_Time12_30PM();
            CreateBooking.searchButtonclick();
            Thread.Sleep(5000);
            CreateBooking.CreateBookingValidate().TestResourceCheckbox();
            CreateBooking.selectingtheresource();
            Thread.Sleep(3000);
            CreateBooking.GotoSummaryPage();
            Thread.Sleep(4000);
            Addons_FromNewBookingPage addAddon = new Addons_FromNewBookingPage(this.Driver);

            addAddon.CliCkOnAddAddon_FromBookingSummary();
            Thread.Sleep(3000);
            addAddon.FFT_263_Add_addon_CheeseTray();
            Thread.Sleep(2000);
            addAddon.ClickOnAddAddonButton();
            Thread.Sleep(2000);
            addAddon.clickOnGoToSummaryFromAddonPage();
            Thread.Sleep(2000);
            BookingSummaryMainPage bookingsummary = new BookingSummaryMainPage(this.Driver);

            bookingsummary.EnterTtileFor_FFT_275();
            Thread.Sleep(2000);
            bookingsummary.clickonsaveAndExit();
            Thread.Sleep(3000);
            bookingsummary.clickonGoToDIary();
            Thread.Sleep(3000);
            bookingsummary.NavigateTosrviceTrackerPage();
        }
コード例 #9
0
ファイル: DiaryUnitTest.cs プロジェクト: priya203/WebAppTest
        public void FFT47_Main()   //UpdateRecurringBooking And Verify for updated records
        {
            LoginMainPage gg = new LoginMainPage(this.Driver);

            gg.Navigate();
            gg.Login();
            Thread.Sleep(2000);
            DiaryMainPage          diary          = new DiaryMainPage(this.Driver);
            BookingSummaryMainPage bookingsummary = new BookingSummaryMainPage(this.Driver);

            Thread.Sleep(1000);
            diary.FFT47_selectDiaryCellForRecurBooking();
            Thread.Sleep(1000);
            diary.FFT47_SwitchtorecurringBookingPanel();
            Thread.Sleep(1000);
            diary.FFT47_SelectEntireSeries();
            Thread.Sleep(3000);
            BookingSearchMainPage booksearch = new BookingSearchMainPage(this.Driver);

            booksearch.UpdateSpecialRequest_bookingStatus();
            Thread.Sleep(2000);
            diary.FFT_47_RecurBookingupdatedTitle();
            Thread.Sleep(2000);
            bookingsummary.clickonsaveAndExit();
            Thread.Sleep(5000);
            bookingsummary.clickonGoToDIary();
            Thread.Sleep(3000);
            diary.FFT47_SwitchtoDateTableOnDiary();
            diary.FFT_47_SelectNextDate();
            Thread.Sleep(3000);
            diary.FFT47_selectDiaryCellForRecurBooking();
            Thread.Sleep(5000);
            diary.FFT47_SwitchtorecurringBookingPanel();
            Thread.Sleep(5000);
            diary.FFT47_SelectEntireSeries();
            Thread.Sleep(6000);
            diary.FFT_47_ValidateUpdatedBookingTitle();
            Thread.Sleep(2000);
        }
コード例 #10
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();
        }
コード例 #11
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();
        }