Example #1
0
        public void Cleanup()
        {
            ViPrClass.ExitVipr();
            //Stop services
            Console.WriteLine("Stopping AT Services");
            Service.Stop(NunitSettings.ServiceWdName);
            Service.Stop(NunitSettings.ServiceDttName);

            //String TestName = TestContext.CurrentContext.Test.FullName;
            //if (Path.Combine(NunitSettings.TempFolder.ToString(), "DecryptedPacket.xml") != null) File.Copy(Path.Combine(NunitSettings.TempFolder.ToString(), "DecryptedPacket.xml"), TestHelper.getTestOutpotFolder() + ".xml", true);
            //if (Path.Combine(NunitSettings.TempFolder.ToString(), "DecryptedPacket.xml") != null) File.Copy(Path.Combine(NunitSettings.TempFolder.ToString(), "DecryptedPacket.xml"), "C:\\Backup\\Macro_DecryptedPacket_" + TestName + ".xml", true);
        }
Example #2
0
        public static void ViPrEmergencyClose()
        {
            var allItem = Desktop.Instance.Windows();

            foreach (var element in allItem)
            {
                if (element.Name.Contains("ViPr - ["))
                {
                    Console.WriteLine("Click on Close button of ViPr");
                    White.Core.UIItems.Button CloseButton = element.Get <White.Core.UIItems.Button>(SearchCriteria.ByText("Close"));
                    CloseButton.Click();
                }
            }

            Thread.Sleep(45000);
            ViPrClass.CheckViPrLogoffError();
        }
Example #3
0
        public void DoExitVipr()
        {
            Console.WriteLine("Enter in DoExitVipr)");
            var allItem = Desktop.Instance.Windows();

            foreach (var element in allItem)
            {
                if (element.Name.Contains("ViPr - ["))
                {
                    Console.WriteLine("Click on Exit button of ViPr - called from DoExitViPr)");
                    MenuBar menuBar = element.Get <MenuBar>(SearchCriteria.ByText("Application"));
                    Thread.Sleep(1000);
                    menuBar.MenuItem("Exit").Click();
                }
            }

            Thread.Sleep(45000);
            ViPrClass.CheckViPrLogoffError();
        }
Example #4
0
        public void Init()
        {
            OpenSpanEvents.SetAllHotkeys();
            OpenSpanEvents.SetAllMacros();

            //AT.CleanMachine();

            //Directory.CreateDirectory(NunitSettings.DttPath);
            Directory.CreateDirectory(NunitSettings.TempFolder);

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

            OpenSpanWindows.WaitOpenSpan(60000);

            //OpenSpanEvents.SetAllHotkeys();
            ViPrClass.RunVipr();

            ViPrClass.LogOnToSystem(NunitSettings.OperatorId, NunitSettings.PasswordId, NunitSettings.PaymentId, NunitSettings.PasswordPay, NunitSettings.ResearchId, NunitSettings.PasswordRes);
        }
Example #5
0
        public void Init()
        {
            Console.WriteLine("Set hotkeys");
            OpenSpanEvents.SetAllHotkeys();
            OpenSpanEvents.SetAllMacros();

            Console.WriteLine("Clean folders");
            AT.CleanMachine();

            Console.WriteLine("Create folders");
            Directory.CreateDirectory(NunitSettings.TempFolder);

            //Start services
            Console.WriteLine("Starting services");

            Service.Start(NunitSettings.ServiceWdName);
            Service.Start(NunitSettings.ServiceDttName);

            Console.WriteLine("Services started");
            OpenSpanWindows.WaitOpenSpan(60000);

            ViPrClass.RunVipr();
            ViPrClass.LogOnToSystem(NunitSettings.OperatorId, NunitSettings.PasswordId, NunitSettings.PaymentId, NunitSettings.PasswordPay, NunitSettings.ResearchId, NunitSettings.PasswordRes);
        }
Example #6
0
        public static void LogOnToSystem(string operatorId, string password, string paymentId, string passwordPay, string researchId, string passwordRes)
        {
            Console.WriteLine("Run LogOn to ViPr");

            Window ViPrLoginWindow = ViPr.GetWindow("ViPr - [Login Screen]");

            var operatorPanel = ViPrLoginWindow.Get <White.Core.UIItems.Panel>(SearchCriteria.ByText("Workspace"));
            var elements      = operatorPanel.GetMultiple(SearchCriteria.All);

            operatorPanel.Get(SearchCriteria.ByText("Acceptance Testing")).Click();
            Thread.Sleep(2000);

            foreach (var el in elements)
            {
                switch (el.Id)
                {
                case "17":
                    el.Focus();
                    Thread.Sleep(1000);
                    Keyboard.Instance.Enter(operatorId);
                    Thread.Sleep(1000);
                    break;

                case "16":
                    el.Focus();
                    Thread.Sleep(1000);
                    Keyboard.Instance.Enter(password);
                    Thread.Sleep(1000);
                    break;

                case "13":
                    el.Focus();
                    Thread.Sleep(1000);
                    Keyboard.Instance.Enter(paymentId);
                    Thread.Sleep(1000);
                    break;

                case "14":
                    el.Focus();
                    Thread.Sleep(1000);
                    Keyboard.Instance.Enter(passwordPay);
                    Thread.Sleep(1000);
                    break;

                case "12":
                    el.Focus();
                    Thread.Sleep(1000);
                    Keyboard.Instance.Enter(researchId);
                    Thread.Sleep(1000);
                    break;

                case "11":
                    el.Focus();
                    Thread.Sleep(1000);
                    Keyboard.Instance.Enter(passwordRes);
                    Thread.Sleep(1000);
                    break;

                case "8":
                    el.Focus();
                    Thread.Sleep(1000);
                    Keyboard.Instance.PressSpecialKey(KeyboardInput.SpecialKeys.DOWN);
                    Thread.Sleep(1000);
                    break;

                default:
                    break;
                }
            }

            Console.WriteLine("Click Ok Button");
            operatorPanel.Get <White.Core.UIItems.Button>(SearchCriteria.ByText("Ok")).Click();
            Thread.Sleep(10000);

            bool MainMenuFound = false;

            for (int i = 1; i < 10; i++)
            {
                List <Window> ViPrWindows = ViPr.GetWindows();
                if (ViPrWindows[0].Name != "ViPr - [Main Menu]")
                {
                    Thread.Sleep(2000);
                }
                else
                {
                    MainMenuFound = true;
                    break;
                }
            }

            if (!MainMenuFound)
            {
                ViPrClass.ViPrEmergencyClose();
            }
        }
Example #7
0
        public void Scenario1()
        {
            //Action
            UserInputs.PressKey((int)VirtualKeys.F2);
            Thread.Sleep(10000);
            ViPrClass.SetDocNumberAndSN(NunitSettings.DocumentNumber, NunitSettings.SN);

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

            UserInputs.HotKey(KeyboardInput.SpecialKeys.CONTROL, "M");
            //Set PendReason to Maternity
            UserInputs.PressKey((int)VirtualKeys.M);
            Thread.Sleep(2000);

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

            Console.WriteLine("Before Exit ViPr");
            ViPrClass.ExitVipr();

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

            // Create List of Expected hotkeys
            List <OpenSpan> ExpHotkeys = new List <OpenSpan>();

            ExpHotkeys.Add(OpenSpanEvents.F2_hotkey);
            ExpHotkeys.Add(OpenSpanEvents.AltA_hotkey);
            ExpHotkeys.Add(OpenSpanEvents.AltA_hotkey);
            ExpHotkeys.Add(OpenSpanEvents.AltA_hotkey);
            ExpHotkeys.Add(OpenSpanEvents.CtrlM_hotkey);
            ExpHotkeys.Add(OpenSpanEvents.CtrlM_hotkey);

            //Check if Expected hotkeys correspond to Actual
            CheckResults.CheckAllHotkeys(ExpHotkeys);

            List <string> ExpApplications = new List <string>();

            ExpApplications.Add("\"C:\\Program Files\\ViPr\\ViPr.exe\"");
            //ExpApplications.Add("Inquiry:Inquiry - Session 3");

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

            //Create Expected data for Close event.
            List <OpenSpanClose> ExpectedCloseEventList = new List <OpenSpanClose>();
            OpenSpanClose        ExpectedCloseEvent     = new OpenSpanClose();

            ExpectedCloseEvent.trigger               = "z030_Proclaim_WU_Close.WorkUnitClose";
            ExpectedCloseEvent.application_id        = "Proclaim";
            ExpectedCloseEvent.document_id           = "0431202304001";
            ExpectedCloseEvent.work_unit_status_code = "O";

            ExpectedCloseEventList.Add(ExpectedCloseEvent);

            // Check if expected CloseEvent correspond to Actual.
            CheckResults.CheckWorkUnitClose(ExpectedCloseEventList);

            //Here we check if number of Close an Open events are the same
            Assert.AreEqual(PacketParser.GetAllCloseEvents(Path.Combine(NunitSettings.BackupFolder, String.Concat(TestHelper.getTestName(), ".xml"))).Count, PacketParser.GetAllOpenEvents(Path.Combine(NunitSettings.BackupFolder, String.Concat(TestHelper.getTestName(), ".xml"))).Count);
        }
Example #8
0
        public void CKitLaunchAndSOPSearch()
        {
            //Run Internet Explorer
            White.Core.Application IE = White.Core.Application.Launch("C:\\Program Files\\Internet Explorer\\iexplore.exe");
            Thread.Sleep(15000);

            Window IEWindow = IE.GetWindow("Pages - Your Cigna Life - Microsoft Internet Explorer provided by CIGNA-Link", White.Core.Factory.InitializeOption.NoCache);

            IEWindow.Get <White.Core.UIItems.TextBox>("Address").SetValue("https://cigna.esecurecare.net/");
            Thread.Sleep(6000);

            IEWindow.Get <White.Core.UIItems.TextBox>("Address").Click();
            UserInputs.PressEnter();
            Thread.Sleep(5000);

            Window IEModalWindow = IEWindow.ModalWindows()[0];

            IEModalWindow.Get <White.Core.UIItems.TextBox>("User name:").SetValue(NunitSettings.InternalId.Substring(9));
            IEModalWindow.Get <White.Core.UIItems.TextBox>("Password:"******"OK").Click();
            Thread.Sleep(5000);

            IEWindow.Focus(DisplayState.Restored);

            Console.WriteLine("Looking for Search Button");
            White.Core.UIItems.Button SearchButton = IEWindow.Get <White.Core.UIItems.Button>("Search");
            Console.WriteLine("Search button found. Get Clickable Point");

            Point SearchClickablePoint = SearchButton.Bounds.TopLeft;

            SearchClickablePoint.Offset(-100, 10);

            Mouse.Instance.Click(SearchClickablePoint);

            Console.WriteLine("Enter RNC");
            UserInputs.Enter("RNC");
            UserInputs.PressEnter();
            Thread.Sleep(3000);

            White.Core.UIItems.Hyperlink RNCLink = IEWindow.Get <White.Core.UIItems.Hyperlink>("Reimbursement RNC 501 Processing Reference Guide");
            RNCLink.Click();
            Thread.Sleep(2000);

            Console.WriteLine("Looking for Search Button on RNC page");
            SearchButton = IEWindow.Get <White.Core.UIItems.Button>("Search");

            SearchClickablePoint = SearchButton.Bounds.TopLeft;
            SearchClickablePoint.Offset(-100, 10);

            Mouse.Instance.Click(SearchClickablePoint);

            Console.WriteLine("Enter document directory");
            UserInputs.Enter("document directory");
            UserInputs.PressEnter();
            Thread.Sleep(3000);

            White.Core.UIItems.Hyperlink DocumentDirectory = IEWindow.Get <White.Core.UIItems.Hyperlink>("C KIT Document Directory");
            DocumentDirectory.RightClick();
            Thread.Sleep(2000);

            IEWindow.Popup.ItemBy(SearchCriteria.ByText("Open in New Tab")).Click();
            Thread.Sleep(5000);

            UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.Tab);
            Thread.Sleep(1000);

            White.Core.UIItems.Hyperlink DirectoryReport = IEWindow.Get <White.Core.UIItems.Hyperlink>("Directory Report.xls");
            DirectoryReport.Click();
            Thread.Sleep(2000);

            Window IEDirectoryReportWindow    = IE.GetWindow("https://cigna.esecurecare.net/ci/fattach/get/93710/ - Microsoft Internet Explorer provided by CIGNA-Link");
            Window ModalDirectoryReportWindow = IEDirectoryReportWindow.ModalWindow("File Download");

            Thread.Sleep(2000);

            Console.WriteLine("File Download window found");

            Console.WriteLine("Press ALT+O");
            UserInputs.HotKey(KeyboardInput.SpecialKeys.ALT, "O");
            Thread.Sleep(9000);

            Console.WriteLine("Kill IE");
            IE.Kill();

            Console.WriteLine("Close Excel");
            var allItem = Desktop.Instance.Windows();

            foreach (var element in allItem)
            {
                if (element.Name.Contains("Microsoft Excel"))
                {
                    element.Focus(DisplayState.Restored);
                    Thread.Sleep(5000);
                    element.Close();
                }
            }

            Thread.Sleep(1000);

            ViPrClass.ExitVipr();

            //Stop services
            Console.WriteLine("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-KIT:C KIT Document Directory");
            ExpApplications.Add("\"C:\\Program Files\\Microsoft Office XP Standard\\OFFICE11\\EXCEL.EXE\"  /e");

            Assert.IsTrue(CheckResults.CheckAllFocusIn(ExpApplications));
        }
Example #9
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));
        }
Example #10
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));
        }
Example #11
0
        public void Scenario3()
        {
            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);
            UserInputs.HotKey(KeyboardInput.SpecialKeys.ALT, "A");
            Thread.Sleep(5000);

            Console.WriteLine("SwitchToSession3");
            ViPrClass.SwitchToSession3();


            UserInputs.PressKey((int)VirtualKeys.F4);
            Thread.Sleep(1000);
            UserInputs.PressKey((int)VirtualKeys.Tab);
            Thread.Sleep(2000);


            Console.WriteLine("SetDocNumberAndSN");
            UserInputs.PressKey(6);
            Thread.Sleep(100);
            ViPrClass.EnterNumberInSession(NunitSettings.DocumentNumber);

            //ViPrClass.SetDocNumberAndSN("0431202304001", "9");

            UserInputs.PressEnter();
            Thread.Sleep(5000);
            UserInputs.PressEnter();
            Thread.Sleep(5000);
            UserInputs.PressKey((int)VirtualKeys.M);
            Thread.Sleep(100);
            UserInputs.PressKey((int)VirtualKeys.H);
            Thread.Sleep(100);
            UserInputs.PressKey((int)VirtualKeys.I);
            Thread.Sleep(100);

            UserInputs.PressEnter();
            Thread.Sleep(5000);

            Console.WriteLine("Return from SESSION3 to ViPr");
            ViPrClass.SwitchToViPr();

            UserInputs.PressKey((int)VirtualKeys.O);
            Thread.Sleep(5000);

            UserInputs.HotKey(KeyboardInput.SpecialKeys.ALT, "A");
            Thread.Sleep(5000);
            UserInputs.HotKey(KeyboardInput.SpecialKeys.CONTROL, "M");
            Thread.Sleep(5000);
            //SetPendReason "ALLI-ALLIANCE"
            UserInputs.PressKey((int)VirtualKeys.A);
            Thread.Sleep(2000);
            UserInputs.PressKey((int)VirtualKeys.A);
            Thread.Sleep(2000);
            UserInputs.PressKey((int)VirtualKeys.A);
            Thread.Sleep(2000);
            UserInputs.HotKey(KeyboardInput.SpecialKeys.CONTROL, "M");
            Thread.Sleep(5000);

            //Stop services
            Service.Stop(NunitSettings.ServiceWdName);
            Service.Stop(NunitSettings.ServiceDttName);
            Thread.Sleep(20000);

            ViPrClass.ExitVipr();

            // Create List of Expected hotkeys
            List <OpenSpan> ExpHotkeys = new List <OpenSpan>();

            ExpHotkeys.Add(OpenSpanEvents.F2_hotkey);
            ExpHotkeys.Add(OpenSpanEvents.AltA_hotkey);
            ExpHotkeys.Add(OpenSpanEvents.AltA_hotkey);
            ExpHotkeys.Add(OpenSpanEvents.F4_hotkey);
            ExpHotkeys.Add(OpenSpanEvents.AltA_hotkey);
            ExpHotkeys.Add(OpenSpanEvents.CtrlM_hotkey);
            ExpHotkeys.Add(OpenSpanEvents.CtrlM_hotkey);

            //Check if Expected hotkeys correspond to Actual
            CheckResults.CheckAllHotkeys(ExpHotkeys);

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

            ExpApplications.Add("\"C:\\Program Files\\ViPr\\ViPr.exe\"");
            ExpApplications.Add("\"C:\\Program Files\\E!PC\\EXTRA.exe\" -Embedding");
            ExpApplications.Add("Inquiry:Screen 3 - Medical History");
            ExpApplications.Add("\"C:\\Program Files\\ViPr\\ViPr.exe\"");

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

            // Check screen destroying.
            List <OpenSpanClose> ExpScreen7Destroy  = new List <OpenSpanClose>();
            OpenSpanClose        ExpectedCloseEvent = new OpenSpanClose();

            ExpectedCloseEvent.document_id           = NunitSettings.DocumentNumber;
            ExpectedCloseEvent.pend_reason_code      = "AAMC"; //this shoud be confirmed.
            ExpectedCloseEvent.work_unit_status_code = "O";

            ExpScreen7Destroy.Add(ExpectedCloseEvent);
            //Program.CheckScreen_7_DestroyEvent(ExpScreen7Destroy);

            //Here we check if number of Close an Open events are the same
            Assert.AreEqual(PacketParser.GetAllCloseEvents(Path.Combine(NunitSettings.BackupFolder, String.Concat(TestHelper.getTestName(), ".xml"))).Count, PacketParser.GetAllOpenEvents(Path.Combine(NunitSettings.BackupFolder, String.Concat(TestHelper.getTestName(), ".xml"))).Count);
        }