Пример #1
0
        public void GROUP()
        {
            Console.WriteLine("GROUP");

            UserInputs.PressKey((int)VirtualKeys.F2);
            Thread.Sleep(5000);
            ViPrClass.SetDocNumberAndSN(NunitSettings.DocumentNumber, NunitSettings.SN);

            //Hot keys
            UserInputs.HotKey(KeyboardInput.SpecialKeys.ALT, "A");
            Thread.Sleep(5000);

            ViPrClass.SwitchToSession2();
            Thread.Sleep(3000);

            Window SESSION2 = ManageWindows.GetWindow("SESSION2");

            MenuBar menuBar = SESSION2.MenuBar;

            White.Core.UIItems.MenuItems.Menu OpenSessionMenu = menuBar.MenuItem("File", "Open Session...");
            OpenSessionMenu.Click();
            Thread.Sleep(2000);

            SESSION2 = ManageWindows.GetWindow("SESSION2");

            var OpenSessionWindow = SESSION2.ModalWindows()[0];

            Thread.Sleep(2000);

            White.Core.UIItems.TextBox FileNameTextBox = OpenSessionWindow.Get <White.Core.UIItems.TextBox>(SearchCriteria.ByAutomationId("1152"));
            FileNameTextBox.Click();
            UserInputs.Enter("Session4.edp");
            Thread.Sleep(2000);
            OpenSessionWindow.Get <White.Core.UIItems.Button>(SearchCriteria.ByText("Open")).Click();
            ViPrClass.SwitchToSession4();

            Thread.Sleep(5000);
            UserInputs.Enter("HSIMSA");
            UserInputs.PressKey((int)KeyboardInput.SpecialKeys.RETURN);
            Thread.Sleep(3000);

            //Enter opertorId
            UserInputs.Enter(NunitSettings.OperatorId);
            UserInputs.PressKey((int)KeyboardInput.SpecialKeys.TAB);
            UserInputs.Enter(NunitSettings.PasswordId);
            UserInputs.PressKey((int)KeyboardInput.SpecialKeys.RETURN);
            Thread.Sleep(3000);
            UserInputs.Enter("GROUP");
            UserInputs.PressKey((int)KeyboardInput.SpecialKeys.RETURN);
            Thread.Sleep(5000);

            ViPrClass.SwitchToViPr();

            UserInputs.HotKey(KeyboardInput.SpecialKeys.ALT, "A");
            Thread.Sleep(8000);

            UserInputs.PressKey((int)VirtualKeys.O);
            Thread.Sleep(2000);
            UserInputs.HotKey(KeyboardInput.SpecialKeys.ALT, "A");
            Thread.Sleep(2000);

            UserInputs.HotKey(KeyboardInput.SpecialKeys.CONTROL, "M");
            Thread.Sleep(5000);

            //Enter Pend Reason "AAMC"
            UserInputs.PressKey((int)VirtualKeys.A);
            Thread.Sleep(2000);

            UserInputs.HotKey(KeyboardInput.SpecialKeys.CONTROL, "M");
            Thread.Sleep(5000);

            ViPrClass.ExitVipr();

            //Stop services
            Service.Stop(NunitSettings.ServiceWdName);
            Service.Stop(NunitSettings.ServiceDttName);

            // Check all FocusIns
            List <string> ExpApplications = new List <string>();

            ExpApplications.Add("https://cigna.esecurecare.net/app/home");
            ExpApplications.Add("https://cigna.esecurecare.net/app/answers/list/search/1/kw/RNC/answers.c$is_healthcare_reform/~any~");
            ExpApplications.Add("C-KIT:Reimbursement RNC 501 Processing Reference Guide");
            ExpApplications.Add("\"C:\\Program Files\\E!PC\\EXTRA.exe\" C:\\Program Files\\E!PC\\Sessions\\Session4.edp");
            ExpApplications.Add("AppUse:Group - Session 4");

            Assert.IsTrue(CheckResults.CheckAllFocusIn(ExpApplications));
        }
Пример #2
0
        public void CHIRPS()
        {
            Console.WriteLine("CHIRPS");

            UserInputs.PressKey((int)VirtualKeys.F2);
            Thread.Sleep(5000);
            ViPrClass.SetDocNumberAndSN(NunitSettings.DocumentNumber, NunitSettings.SN);

            //Hot keys
            UserInputs.HotKey(KeyboardInput.SpecialKeys.ALT, "A");
            Thread.Sleep(5000);

            ViPrClass.SwitchToSession2();
            Thread.Sleep(3000);

            Window SESSION2 = ManageWindows.GetWindow("SESSION2");

            MenuBar menuBar = SESSION2.MenuBar;

            White.Core.UIItems.MenuItems.Menu OpenSessionMenu = menuBar.MenuItem("File", "Open Session...");
            OpenSessionMenu.Click();
            Thread.Sleep(2000);

            SESSION2 = ManageWindows.GetWindow("SESSION2");

            var OpenSessionWindow = SESSION2.ModalWindows()[0];

            Thread.Sleep(2000);

            White.Core.UIItems.TextBox FileNameTextBox = OpenSessionWindow.Get <White.Core.UIItems.TextBox>(SearchCriteria.ByAutomationId("1152"));
            FileNameTextBox.Click();
            UserInputs.Enter("Session1.edp");
            Thread.Sleep(2000);
            OpenSessionWindow.Get <White.Core.UIItems.Button>(SearchCriteria.ByText("Open")).Click();
            ViPrClass.SwitchToSession1();

            Thread.Sleep(5000);
            UserInputs.Enter("EBDAA08");
            UserInputs.PressKey((int)KeyboardInput.SpecialKeys.RETURN);
            Thread.Sleep(3000);
            //Enter opertorId
            UserInputs.Enter(NunitSettings.OperatorId);
            UserInputs.PressKey((int)KeyboardInput.SpecialKeys.TAB);
            UserInputs.Enter(NunitSettings.PasswordId);
            UserInputs.PressKey((int)KeyboardInput.SpecialKeys.RETURN);
            Thread.Sleep(3000);
            UserInputs.Enter("GHMM");
            UserInputs.PressKey((int)KeyboardInput.SpecialKeys.RETURN);
            Thread.Sleep(5000);

            ViPrClass.SwitchToViPr();

            UserInputs.HotKey(KeyboardInput.SpecialKeys.ALT, "A");
            Thread.Sleep(8000);

            UserInputs.PressKey((int)VirtualKeys.O);
            Thread.Sleep(2000);
            UserInputs.HotKey(KeyboardInput.SpecialKeys.ALT, "A");
            Thread.Sleep(2000);

            UserInputs.HotKey(KeyboardInput.SpecialKeys.CONTROL, "M");
            Thread.Sleep(5000);

            //Enter Pend Reason "AAMC"
            UserInputs.PressKey((int)VirtualKeys.A);
            Thread.Sleep(2000);

            UserInputs.HotKey(KeyboardInput.SpecialKeys.CONTROL, "M");
            Thread.Sleep(5000);

            ViPrClass.ExitVipr();

            //Stop services
            Service.Stop(NunitSettings.ServiceWdName);
            Service.Stop(NunitSettings.ServiceDttName);

            // Check all FocusIns
            List <string> ExpApplications = new List <string>();

            ExpApplications.Add("AppUse:CHIRPS - Session 1");

            Assert.IsTrue(CheckResults.CheckAllFocusIn(ExpApplications));
        }