public void assertAddedNewMessage()
        {
            test        = ReportsHelper.extent.CreateTest("New Baby Test");
            this.extent = ReportsHelper.extent;

            LoginPageSteps             loginPageSteps             = new LoginPageSteps(driver, test);
            StatusPanelPageSteps       statusPanelPageSteps       = new StatusPanelPageSteps(driver, test);
            TelephonyWindowPageSteps   telephonyWindowPageSteps   = new TelephonyWindowPageSteps(driver, test);
            TransactionWindowPageSteps transactionWindowPageSteps = new TransactionWindowPageSteps(driver, test);
            FunctionMenuPageSteps      functionMenuPageSteps      = new FunctionMenuPageSteps(driver, test);
            ChildWindowsPageSteps      childWindowPageSteps       = new ChildWindowsPageSteps(driver, test);

            Commons commons = new Commons(driver, this.test);

            loginPageSteps.loginUsingSeatNo();
            statusPanelPageSteps.selectAdminWork();
            statusPanelPageSteps.selectFacility();
            telephonyWindowPageSteps.telephonyClickRejectAll();
            transactionWindowPageSteps.clickCancel();
            commons.clickYes();
            statusPanelPageSteps.selectMessage();
            statusPanelPageSteps.selectNewBabyReport();
            transactionWindowPageSteps.fillNewBabyForm();
            childWindowPageSteps.populateNewBabyOverrideReason();
            transactionWindowPageSteps.clickF12EndCall();

            functionMenuPageSteps.selectOutputQueue();

            transactionWindowPageSteps.verifyAddedNewBabyReport();
            statusPanelPageSteps.logOut();
        }
Esempio n. 2
0
        public void assertAddedNewMessage()
        {
            test        = ReportsHelper.extent.CreateTest("General Message Test");
            this.extent = ReportsHelper.extent;

            LoginPageSteps             loginPageSteps             = new LoginPageSteps(driver, test);
            StatusPanelPageSteps       statusPanelPageSteps       = new StatusPanelPageSteps(driver, test);
            TelephonyWindowPageSteps   telephonyWindowPageSteps   = new TelephonyWindowPageSteps(driver, test);
            TransactionWindowPageSteps transactionWindowPageSteps = new TransactionWindowPageSteps(driver, test);
            FunctionMenuPageSteps      functionMenuPageSteps      = new FunctionMenuPageSteps(driver, test);
            ChildWindowsPageSteps      childWindowPageSteps       = new ChildWindowsPageSteps(driver, test);

            Commons commons = new Commons(driver, this.test);

            loginPageSteps.loginUsingSeatNo();
            statusPanelPageSteps.selectAdminWork();
            statusPanelPageSteps.selectFacility();
            telephonyWindowPageSteps.telephonyClickRejectAll();
            transactionWindowPageSteps.clickCancel();
            commons.clickYes();
            statusPanelPageSteps.selectMessage();
            statusPanelPageSteps.selectGeneralMessage();
            telephonyWindowPageSteps.telephonyClickRejectAll();
            transactionWindowPageSteps.populateFields();
            transactionWindowPageSteps.clickFirstRecord();
            transactionWindowPageSteps.clickReturn();
            commons.clickOK();
            transactionWindowPageSteps.populateMoreFields();
            telephonyWindowPageSteps.telephonyClickRejectAll();
            transactionWindowPageSteps.clickSendMessageBtn();
            transactionWindowPageSteps.clickSendBtn();
            transactionWindowPageSteps.clickF12EndCall();
            functionMenuPageSteps.selectTransResearch();
            childWindowPageSteps.validateAddedRecords("General Message");
            statusPanelPageSteps.logOut();
        }