void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            UserCodeCollection_OR.Clear_TextBox(repo.AddPainPrescription.DoseDetails.LoadingUnitInfo, "Combobox");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Unit'.", new RecordItemIndex(1));
            Keyboard.Press(Unit);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(2));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);

            UserCodeCollection_OR.Clear_TextBox(repo.AddPainPrescription.DoseDetails.LoadingDoseInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$LoadingDose'.", new RecordItemIndex(4));
            Keyboard.Press(LoadingDose);
            Delay.Milliseconds(100);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 0;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 0.00;

            Init();

            // Click on "Ward Medication" tab
            Report.Log(ReportLevel.Info, "Mouse", "Click on \"Ward Medication\" tab\r\nMouse Left Click item 'FrmORMain.PostOpInstructions.WardMedication' at Center.", repo.FrmORMain.PostOpInstructions.WardMedicationInfo, new RecordItemIndex(0));
            repo.FrmORMain.PostOpInstructions.WardMedication.Click();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.PostOpInstructions.Ward.WardListItem' at Center.", repo.FrmORMain.PostOpInstructions.Ward.WardListItemInfo, new RecordItemIndex(1));
            repo.FrmORMain.PostOpInstructions.Ward.WardListItem.Click();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.PostOpInstructions.Ward.ButtonEdit' at Center.", repo.FrmORMain.PostOpInstructions.Ward.ButtonEditInfo, new RecordItemIndex(2));
            repo.FrmORMain.PostOpInstructions.Ward.ButtonEdit.Click();

            UserCodeCollection_OR.Clear_TextBox(repo.AddWardMedication.DoseInfo, "Combobox");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_PostOpDose'.", new RecordItemIndex(4));
            Keyboard.Press(Edit_PostOpDose);

            UserCodeCollection_OR.Clear_TextBox(repo.AddWardMedication.UnitInfo, "Combobox");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_PostOpUnit'.", new RecordItemIndex(6));
            Keyboard.Press(Edit_PostOpUnit);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(7));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);

            UserCodeCollection_OR.Clear_TextBox(repo.AddWardMedication.RouteInfo, "Combobox");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_PostOpRoute'.", new RecordItemIndex(9));
            Keyboard.Press(Edit_PostOpRoute);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(10));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);

            UserCodeCollection_OR.Clear_TextBox(repo.AddWardMedication.FreqTimeInfo, "Combobox");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_PostOpFreqTime'.", new RecordItemIndex(12));
            Keyboard.Press(Edit_PostOpFreqTime);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(13));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);

            UserCodeCollection_OR.Clear_TextBox(repo.AddWardMedication.InstructionInfo, "Text");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_PostInstruction'.", new RecordItemIndex(15));
            Keyboard.Press(Edit_PostInstruction);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'AddWardMedication.ButtonOK' at Center.", repo.AddWardMedication.ButtonOKInfo, new RecordItemIndex(16));
            repo.AddWardMedication.ButtonOK.Click();

            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'FrmORMain.PostOpInstructions.Ward.EditedWardListItem'.", repo.FrmORMain.PostOpInstructions.Ward.EditedWardListItemInfo, new RecordItemIndex(17));
            Validate.Exists(repo.FrmORMain.PostOpInstructions.Ward.EditedWardListItemInfo);
        }
Beispiel #3
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 30s.", new RecordItemIndex(0));
            Delay.Duration(30000, false);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmMainMenu.RetrieveAnaesthetic' at Center.", repo.FrmMainMenu.RetrieveAnaestheticInfo, new RecordItemIndex(1));
            repo.FrmMainMenu.RetrieveAnaesthetic.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RetrieveAnaesthetic.SearchAnaesthetics.SearchAnaesthetics' at Center.", repo.RetrieveAnaesthetic.SearchAnaesthetics.SearchAnaestheticsInfo, new RecordItemIndex(2));
            repo.RetrieveAnaesthetic.SearchAnaesthetics.SearchAnaesthetics.Click();
            Delay.Milliseconds(200);

            UserCodeCollection_OR.EnterDate_Today(repo.RetrieveAnaesthetic.SearchAnaesthetics.OperationDateInfo, DateFormat);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RetrieveAnaesthetic.SearchAnaesthetics.NHINumber' at Center.", repo.RetrieveAnaesthetic.SearchAnaesthetics.NHINumberInfo, new RecordItemIndex(4));
            repo.RetrieveAnaesthetic.SearchAnaesthetics.NHINumber.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Home' Press.", new RecordItemIndex(5));
            Keyboard.Press(System.Windows.Forms.Keys.Home, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$NHI'.", new RecordItemIndex(6));
            Keyboard.Press(NHI);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RetrieveAnaesthetic.SearchAnaesthetics.Search' at Center.", repo.RetrieveAnaesthetic.SearchAnaesthetics.SearchInfo, new RecordItemIndex(7));
            repo.RetrieveAnaesthetic.SearchAnaesthetics.Search.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RetrieveAnaesthetic.SearchListItem' at Center.", repo.RetrieveAnaesthetic.SearchListItemInfo, new RecordItemIndex(8));
            repo.RetrieveAnaesthetic.SearchListItem.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RetrieveAnaesthetic.ButtonRetrieve' at Center.", repo.RetrieveAnaesthetic.ButtonRetrieveInfo, new RecordItemIndex(9));
            repo.RetrieveAnaesthetic.ButtonRetrieve.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ConfirmPatientIdentity.ButtonYes' at Center.", repo.ConfirmPatientIdentity.ButtonYesInfo, new RecordItemIndex(10));
            repo.ConfirmPatientIdentity.ButtonYes.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Information.ButtonOK' at Center.", repo.Information.ButtonOKInfo, new RecordItemIndex(11));
            repo.Information.ButtonOK.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'FrmORMain.Patient_Details.Tabs.MedicalAlertsAndDrugAllergiesCITab'.", repo.FrmORMain.Patient_Details.Tabs.MedicalAlertsAndDrugAllergiesCITabInfo, new RecordItemIndex(12));
            Validate.Exists(repo.FrmORMain.Patient_Details.Tabs.MedicalAlertsAndDrugAllergiesCITabInfo);
            Delay.Milliseconds(0);
        }
        public void CheckWarningAllert(string AlertName, string AlertType, string AlertClass, string DrugClass)
        {
            UserCodeCollection_OR CodeCollection = new UserCodeCollection_OR();
            string WarningText = CodeCollection.WarningAlertMessage(AlertName, AlertType, AlertClass, DrugClass);

            // validate Warning box displays when added Drug is in patient's allergy list
            repo.WarningMessage = WarningText;
            Validate.Exists(repo.AddWardMedication.AllergyWarningMessageInfo);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.PostOpInstructions.FluidPrescription' at Center.", repo.FrmORMain.PostOpInstructions.FluidPrescriptionInfo, new RecordItemIndex(0));
            repo.FrmORMain.PostOpInstructions.FluidPrescription.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.PostOpInstructions.Fluid.ButtonAdd' at Center.", repo.FrmORMain.PostOpInstructions.Fluid.ButtonAddInfo, new RecordItemIndex(1));
            repo.FrmORMain.PostOpInstructions.Fluid.ButtonAdd.Click();
            Delay.Milliseconds(200);

            UserCodeCollection_OR.Clear_TextBox(repo.AddFluidPrescription.FluidNameInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$FluidName'.", new RecordItemIndex(3));
            Keyboard.Press(FluidName);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(4));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);

            UserCodeCollection_OR.Clear_TextBox(repo.AddFluidPrescription.EditVolumeInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$FluidVolume'.", new RecordItemIndex(6));
            Keyboard.Press(FluidVolume);
            Delay.Milliseconds(100);

            UserCodeCollection_OR.Clear_TextBox(repo.AddFluidPrescription.EditRateInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$FluidRate'.", new RecordItemIndex(8));
            Keyboard.Press(FluidRate);
            Delay.Milliseconds(100);

            UserCodeCollection_OR.Clear_TextBox(repo.AddFluidPrescription.EditInstructionInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$FluidInstruction'.", new RecordItemIndex(10));
            Keyboard.Press(FluidInstruction);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'AddFluidPrescription.ButtonOK' at Center.", repo.AddFluidPrescription.ButtonOKInfo, new RecordItemIndex(11));
            repo.AddFluidPrescription.ButtonOK.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'FrmORMain.PostOpInstructions.Fluid.FluidListItem'.", repo.FrmORMain.PostOpInstructions.Fluid.FluidListItemInfo, new RecordItemIndex(12));
            Validate.Exists(repo.FrmORMain.PostOpInstructions.Fluid.FluidListItemInfo);
            Delay.Milliseconds(0);
        }
Beispiel #6
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left DoubleClick item 'FrmORMain.Patient_Details.Medical_Alerts_and_Allergies.MedicalAlertListItem' at Center.", repo.FrmORMain.Patient_Details.Medical_Alerts_and_Allergies.MedicalAlertListItemInfo, new RecordItemIndex(0));
            repo.FrmORMain.Patient_Details.Medical_Alerts_and_Allergies.MedicalAlertListItem.DoubleClick();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'EditMedicalAlert.Category' at Center.", repo.EditMedicalAlert.CategoryInfo, new RecordItemIndex(1));
            repo.EditMedicalAlert.Category.Click();
            Delay.Milliseconds(200);

            UserCodeCollection_OR.Clear_TextBox(repo.EditMedicalAlert.CategoryInfo, "Combobox");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$NewCotegory'.", new RecordItemIndex(3));
            Keyboard.Press(NewCotegory);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(4));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'EditMedicalAlert.Detail' at Center.", repo.EditMedicalAlert.DetailInfo, new RecordItemIndex(5));
            repo.EditMedicalAlert.Detail.Click();
            Delay.Milliseconds(200);

            UserCodeCollection_OR.Clear_TextBox(repo.EditMedicalAlert.DetailInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$NewDetail'.", new RecordItemIndex(7));
            Keyboard.Press(NewDetail);
            Delay.Milliseconds(100);

            // ReAssign new value to old Category
            Report.Log(ReportLevel.Info, "Get Value", "ReAssign new value to old Category\r\nGetting attribute 'Text' from item 'EditMedicalAlert.Category' and assigning its value to variable 'Category'.", repo.EditMedicalAlert.CategoryInfo, new RecordItemIndex(8));
            Category = repo.EditMedicalAlert.Category.Element.GetAttributeValueText("Text");
            Delay.Milliseconds(0);

            // ReAssign new value to old Detail
            Report.Log(ReportLevel.Info, "Get Value", "ReAssign new value to old Detail\r\nGetting attribute 'Text' from item 'EditMedicalAlert.Detail' and assigning its value to variable 'Details'.", repo.EditMedicalAlert.DetailInfo, new RecordItemIndex(9));
            Details = repo.EditMedicalAlert.Detail.Element.GetAttributeValueText("Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'EditMedicalAlert.ButtonOK' at Center.", repo.EditMedicalAlert.ButtonOKInfo, new RecordItemIndex(10));
            repo.EditMedicalAlert.ButtonOK.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'FrmORMain.Patient_Details.Medical_Alerts_and_Allergies.MedicalAlertListItem'.", repo.FrmORMain.Patient_Details.Medical_Alerts_and_Allergies.MedicalAlertListItemInfo, new RecordItemIndex(11));
            Validate.Exists(repo.FrmORMain.Patient_Details.Medical_Alerts_and_Allergies.MedicalAlertListItemInfo);
            Delay.Milliseconds(0);
        }
Beispiel #7
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.RegionalBlock.AddRegional' at Center.", repo.FrmORMain.RegionalBlock.AddRegionalInfo, new RecordItemIndex(0));
            repo.FrmORMain.RegionalBlock.AddRegional.Click();
            Delay.Milliseconds(200);

            UserCodeCollection_OR.Clear_TextBox(repo.AddRegionalBlock.BlockNameInfo, "Combobox");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$BlockName'.", new RecordItemIndex(2));
            Keyboard.Press(BlockName);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(3));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);

            // Click on "RegionalBlockDrug" tab
            Report.Log(ReportLevel.Info, "Mouse", "Click on \"RegionalBlockDrug\" tab\r\nMouse Left Click item 'AddRegionalBlock.Tabs.RegionalBlockDrugs' at Center.", repo.AddRegionalBlock.Tabs.RegionalBlockDrugsInfo, new RecordItemIndex(4));
            repo.AddRegionalBlock.Tabs.RegionalBlockDrugs.Click();
            Delay.Milliseconds(200);

            // Click on "Add Drug" button
            Report.Log(ReportLevel.Info, "Mouse", "Click on \"Add Drug\" button\r\nMouse Left Click item 'AddRegionalBlock.RegionalBockDrugs.AddDrug' at Center.", repo.AddRegionalBlock.RegionalBockDrugs.AddDrugInfo, new RecordItemIndex(5));
            repo.AddRegionalBlock.RegionalBockDrugs.AddDrug.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmEditDrug.AddNewDrug' at Center.", repo.FrmEditDrug.AddNewDrugInfo, new RecordItemIndex(6));
            repo.FrmEditDrug.AddNewDrug.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'AddDrug.NewDrugname' at Center.", repo.AddDrug.NewDrugnameInfo, new RecordItemIndex(7));
            repo.AddDrug.NewDrugname.Click();
            Delay.Milliseconds(200);

            // Enter Drug Product name
            Report.Log(ReportLevel.Info, "Keyboard", "Enter Drug Product name\r\nKey sequence from variable '$Block_DrugName'.", new RecordItemIndex(8));
            Keyboard.Press(Block_DrugName);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(9));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);

            // CLick OK on "Add New Drug"
            Report.Log(ReportLevel.Info, "Mouse", "CLick OK on \"Add New Drug\"\r\nMouse Left Click item 'AddDrug.ButtonOK' at Center.", repo.AddDrug.ButtonOKInfo, new RecordItemIndex(10));
            repo.AddDrug.ButtonOK.Click();
            Delay.Milliseconds(200);
        }
Beispiel #8
0
        public void ReCalculateVoulmeWhenRepeatDelete(string RepeatOrDelete)
        {
            // get last row of table Fluid from Xpath
            string       pathFluidTable = "/form[@name='frmMain']/?/?/form[@name='frmFluidBalanceModule']/?/?/tabpage[@name='tsFluidInput']/?/?/table[@class='TcxGridSite']";
            IList <Cell> lstCell        = UserCodeCollection_OR.GetLastRowOfTable(pathFluidTable);

            //// Validate Finishlevel (cell4), VolumeGiven (cell5), and TotalRunning(cell7). In code thesse number should be (number -1)

            if (RepeatOrDelete == "Repeat")
            {
                // Check FinishLevel=0
                Report.Log(ReportLevel.Info, "Validation", "Validate Finishlevel =0 when click on Finish button");
                Validate.AreEqual(lstCell[3].GetAttributeValue <string>("Text"), "0");
                Delay.Milliseconds(0);

                // Check VolumeGiven= startLevel
                Report.Log(ReportLevel.Info, "Validation", "Validate VolumeGiven equal StartLevel");
                Validate.AreEqual(lstCell[4].GetAttributeValue <string>("Text"), repo.StartLevel);
                Delay.Milliseconds(0);

                //recalculate RunningTotal
                repo.RunningTotal = Convert.ToString(Convert.ToInt32(repo.RunningTotal) + Convert.ToInt32(repo.StartLevel));
                //Recalculate Totalvolume(=VolumeGiven) in Summary tab
                repo.VolumeGiven = repo.RunningTotal;

                // Check TotalRunning
                Report.Log(ReportLevel.Info, "Validation", "Validate TotalRunningl is empty");
                Validate.AreEqual(lstCell[6].GetAttributeValue <string>("Text"), repo.RunningTotal);
                Delay.Milliseconds(0);
            }

            else if (RepeatOrDelete == "Delete")
            {
                //recalculate RunningTotal
                repo.RunningTotal = Convert.ToString(Convert.ToInt32(repo.RunningTotal) - Convert.ToInt32(repo.StartLevel));
                //Recalculate Totalvolume(=VolumeGiven) in Summary tab
                repo.VolumeGiven = repo.RunningTotal;

                // Check FinishLevel = its original
                Report.Log(ReportLevel.Info, "Validation", "Validate Finishlevel = original FinishLevel when click on Delete button");
                Validate.AreEqual(lstCell[3].GetAttributeValue <string>("Text"), repo.FinishLevel);
                Delay.Milliseconds(0);

                // Check VolumeGiven= its original
                Report.Log(ReportLevel.Info, "Validation", "Validate VolumeGiven equal StartLevel");
                Validate.AreEqual(lstCell[4].GetAttributeValue <string>("Text"), repo.VolumeGiven);
                Delay.Milliseconds(0);

                // Check TotalRunning
                Report.Log(ReportLevel.Info, "Validation", "Validate TotalRunningl is empty");
                Validate.AreEqual(lstCell[6].GetAttributeValue <string>("Text"), repo.RunningTotal);
                Delay.Milliseconds(0);
            }
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'AddRegionalBlock.RegionalBockDrugs.AddedBlockDrug' at Center.", repo.AddRegionalBlock.RegionalBockDrugs.AddedBlockDrugInfo, new RecordItemIndex(0));
            repo.AddRegionalBlock.RegionalBockDrugs.AddedBlockDrug.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'AddRegionalBlock.RegionalBockDrugs.EditDrug' at Center.", repo.AddRegionalBlock.RegionalBockDrugs.EditDrugInfo, new RecordItemIndex(1));
            repo.AddRegionalBlock.RegionalBockDrugs.EditDrug.Click();
            Delay.Milliseconds(200);

            UserCodeCollection_OR.Clear_TextBox(repo.FrmEditDrug.DrugProductInfo, "");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$New_DrugProduct'.", new RecordItemIndex(3));
            Keyboard.Press(New_DrugProduct);
            Delay.Milliseconds(100);

            SelectMode(New_Mode);
            Delay.Milliseconds(0);

            EnterDose(New_Mode, New_Dose);
            Delay.Milliseconds(0);

            EnterUnit(New_Mode, New_Unit);
            Delay.Milliseconds(0);

            UserCodeCollection_OR.Clear_TextBox(repo.FrmEditDrug.CommentInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$New_Comment'.", new RecordItemIndex(8));
            Keyboard.Press(New_Comment);
            Delay.Milliseconds(100);

            // Click OK button to save the drug
            Report.Log(ReportLevel.Info, "Mouse", "Click OK button to save the drug\r\nMouse Left Click item 'FrmEditDrug.OK' at Center.", repo.FrmEditDrug.OKInfo, new RecordItemIndex(9));
            repo.FrmEditDrug.OK.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 2s.", new RecordItemIndex(10));
            Delay.Duration(2000, false);

            // Validate the  Drug is added succesfully
            Report.Log(ReportLevel.Info, "Validation", "Validate the  Drug is added succesfully\r\nValidating Exists on item 'AddRegionalBlock.RegionalBockDrugs.EditedBlockDrug'.", repo.AddRegionalBlock.RegionalBockDrugs.EditedBlockDrugInfo, new RecordItemIndex(11));
            Validate.Exists(repo.AddRegionalBlock.RegionalBockDrugs.EditedBlockDrugInfo);
            Delay.Milliseconds(0);
        }
        /// <summary>
        /// Performs the playback of actions in this module.
        /// </summary>
        /// <remarks>You should not call this method directly, instead pass the module
        /// instance to the <see cref="TestModuleRunner.Run(ITestModule)"/> method
        /// that will in turn invoke this method.</remarks>
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.0;

            UserCodeCollection_OR CodeCollection = new UserCodeCollection_OR();
            string WarningText = CodeCollection.WarningAlertMessage(AlertName, AlertType, AlertClass, DrugClass);

            // validate Warning box displays when added Drug is in patient's allergy list
            MyRepo.WarningMessage = WarningText;
            Validate.Exists(MyRepo.AddPainPrescription.WarningMessageTextBoxInfo);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 0;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 0.00;

            Init();

            UserCodeCollection_OR.Clear_TextBox(repo.AddFluidInput.StartVolumeInfo, "Text");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$StartLevel'.", new RecordItemIndex(1));
            Keyboard.Press(StartLevel);
        }
Beispiel #12
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.FluidBalance.Tabs.FluidInput' at Center.", repo.FrmORMain.FluidBalance.Tabs.FluidInputInfo, new RecordItemIndex(0));
            repo.FrmORMain.FluidBalance.Tabs.FluidInput.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left DoubleClick item 'FrmORMain.FluidBalance.AddedFluidInputDetail' at Center.", repo.FrmORMain.FluidBalance.AddedFluidInputDetailInfo, new RecordItemIndex(1));
            repo.FrmORMain.FluidBalance.AddedFluidInputDetail.DoubleClick();
            Delay.Milliseconds(200);

            UserCodeCollection_OR.Clear_TextBox(repo.AddFluidInput.StartVolumeInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$InvalidStartLevel'.", new RecordItemIndex(3));
            Keyboard.Press(InvalidStartLevel);
            Delay.Milliseconds(100);

            // CLick OK on Edit window
            Report.Log(ReportLevel.Info, "Mouse", "CLick OK on Edit window\r\nMouse Left Click item 'AddFluidInput.ButtonOK' at Center.", repo.AddFluidInput.ButtonOKInfo, new RecordItemIndex(4));
            repo.AddFluidInput.ButtonOK.Click();
            Delay.Milliseconds(200);

            // Validate error message when name is empty
            Report.Log(ReportLevel.Info, "Validation", "Validate error message when name is empty\r\nValidating Exists on item 'Error.StartLevelIsTooLarge'.", repo.Error.StartLevelIsTooLargeInfo, new RecordItemIndex(5));
            Validate.Exists(repo.Error.StartLevelIsTooLargeInfo);
            Delay.Milliseconds(0);

            // Click Ok on error message
            Report.Log(ReportLevel.Info, "Mouse", "Click Ok on error message\r\nMouse Left Click item 'Error.ButtonOK' at Center.", repo.Error.ButtonOKInfo, new RecordItemIndex(6));
            repo.Error.ButtonOK.Click();
            Delay.Milliseconds(200);

            UserCodeCollection_OR.Clear_TextBox(repo.AddFluidInput.StartVolumeInfo, "Text");
            Delay.Milliseconds(0);

            // Enter Name again
            Report.Log(ReportLevel.Info, "Keyboard", "Enter Name again\r\nKey sequence from variable '$StartLevel'.", new RecordItemIndex(8));
            Keyboard.Press(StartLevel);
            Delay.Milliseconds(100);

            // CLick OK on Edit window
            Report.Log(ReportLevel.Info, "Mouse", "CLick OK on Edit window\r\nMouse Left Click item 'AddFluidInput.ButtonOK' at Center.", repo.AddFluidInput.ButtonOKInfo, new RecordItemIndex(9));
            repo.AddFluidInput.ButtonOK.Click();
            Delay.Milliseconds(200);
        }
Beispiel #13
0
        public void CompleteFinishLevel(string CompleteFLevel)
        {
            // get last row of table Fluid from Xpath
            string       pathFluidTable = "/form[@name='frmMain']/?/?/form[@name='frmFluidBalanceModule']/?/?/tabpage[@name='tsFluidInput']/?/?/table[@class='TcxGridSite']";
            IList <Cell> lstCell        = UserCodeCollection_OR.GetLastRowOfTable(pathFluidTable);

            if (CompleteFLevel == "Finish")
            {
                //Report.Log(ReportLevel.Info,"Click item 'AddFluidInput.ButtonFinish'", repo.AddFluidInput.ButtonFinishInfo, new RecordItemIndex(2));
                Report.Log(ReportLevel.Info, "Mouse", "Click item 'AddFluidInput.ButtonFinish'.", repo.AddFluidInput.CompleteFluidFinishLevelInfo);
                repo.AddFluidInput.ButtonFinish.Click();
                Delay.Milliseconds(200);
            }
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Click on "As Required" tab
            Report.Log(ReportLevel.Info, "Mouse", "Click on \"As Required\" tab\r\nMouse Left Click item 'FrmORMain.PostOpMedication.Tabs.AsRequiredPRN' at Center.", repo.FrmORMain.PostOpMedication.Tabs.AsRequiredPRNInfo, new RecordItemIndex(0));
            repo.FrmORMain.PostOpMedication.Tabs.AsRequiredPRN.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.PostOpMedication.AsReMed.AddedAsRequiredMedication' at Center.", repo.FrmORMain.PostOpMedication.AsReMed.AddedAsRequiredMedicationInfo, new RecordItemIndex(1));
            repo.FrmORMain.PostOpMedication.AsReMed.AddedAsRequiredMedication.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.PostOpMedication.AsReMed.EditMed_AsRequired' at Center.", repo.FrmORMain.PostOpMedication.AsReMed.EditMed_AsRequiredInfo, new RecordItemIndex(2));
            repo.FrmORMain.PostOpMedication.AsReMed.EditMed_AsRequired.Click();
            Delay.Milliseconds(200);

            UserCodeCollection_OR.Clear_TextBox(repo.AddAsRequiredPRNMedication.DoseRangeInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_AsRe_DoseRange'.", new RecordItemIndex(4));
            Keyboard.Press(Edit_AsRe_DoseRange);
            Delay.Milliseconds(0);

            UserCodeCollection_OR.Clear_TextBox(repo.AddAsRequiredPRNMedication.FreqTimeInfo, "Combobox");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_FreqTime'.", new RecordItemIndex(6));
            Keyboard.Press(Edit_FreqTime);
            Delay.Milliseconds(100);

            UserCodeCollection_OR.Clear_TextBox(repo.AddAsRequiredPRNMedication.DoseCalculationInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_AsRe_DoseCalculation'.", new RecordItemIndex(8));
            Keyboard.Press(Edit_AsRe_DoseCalculation);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'AddAsRequiredPRNMedication.ButtonOK' at Center.", repo.AddAsRequiredPRNMedication.ButtonOKInfo, new RecordItemIndex(9));
            repo.AddAsRequiredPRNMedication.ButtonOK.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'FrmORMain.PostOpMedication.AsReMed.EditedAsRequiredMedication'.", repo.FrmORMain.PostOpMedication.AsReMed.EditedAsRequiredMedicationInfo, new RecordItemIndex(10));
            Validate.Exists(repo.FrmORMain.PostOpMedication.AsReMed.EditedAsRequiredMedicationInfo);
            Delay.Milliseconds(0);
        }
Beispiel #15
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 0;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 0.00;

            Init();

            // Click on "OnceOnly" tab
            Report.Log(ReportLevel.Info, "Mouse", "Click on \"OnceOnly\" tab\r\nMouse Left Click item 'FrmORMain.PostOpMedication.Tabs.OnceOnly' at Center.", repo.FrmORMain.PostOpMedication.Tabs.OnceOnlyInfo, new RecordItemIndex(0));
            repo.FrmORMain.PostOpMedication.Tabs.OnceOnly.Click();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.PostOpMedication.OnceMed.AddedOnceMedication' at Center.", repo.FrmORMain.PostOpMedication.OnceMed.AddedOnceMedicationInfo, new RecordItemIndex(1));
            repo.FrmORMain.PostOpMedication.OnceMed.AddedOnceMedication.Click();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.PostOpMedication.OnceMed.Edit_Once' at Center.", repo.FrmORMain.PostOpMedication.OnceMed.Edit_OnceInfo, new RecordItemIndex(2));
            repo.FrmORMain.PostOpMedication.OnceMed.Edit_Once.Click();

            UserCodeCollection_OR.Clear_TextBox(repo.AddOnceOnlyMedication.DrugNameInfo, "Combobox");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_Once_DrugName'.", new RecordItemIndex(4));
            Keyboard.Press(Edit_Once_DrugName);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(5));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left DoubleClick item 'AddOnceOnlyMedication.Dose' at Center.", repo.AddOnceOnlyMedication.DoseInfo, new RecordItemIndex(6));
            repo.AddOnceOnlyMedication.Dose.DoubleClick();

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_Once_Dose'.", new RecordItemIndex(7));
            Keyboard.Press(Edit_Once_Dose);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left DoubleClick item 'AddOnceOnlyMedication.Unit' at Center.", repo.AddOnceOnlyMedication.UnitInfo, new RecordItemIndex(8));
            repo.AddOnceOnlyMedication.Unit.DoubleClick();

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_Once_Unit'.", new RecordItemIndex(9));
            Keyboard.Press(Edit_Once_Unit);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left DoubleClick item 'AddOnceOnlyMedication.Route' at Center.", repo.AddOnceOnlyMedication.RouteInfo, new RecordItemIndex(10));
            repo.AddOnceOnlyMedication.Route.DoubleClick();

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_Once_Route'.", new RecordItemIndex(11));
            Keyboard.Press(Edit_Once_Route);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'AddOnceOnlyMedication.ButtonOK' at Center.", repo.AddOnceOnlyMedication.ButtonOKInfo, new RecordItemIndex(12));
            repo.AddOnceOnlyMedication.ButtonOK.Click();

            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'FrmORMain.PostOpMedication.OnceMed.EditedOnceMedication'.", repo.FrmORMain.PostOpMedication.OnceMed.EditedOnceMedicationInfo, new RecordItemIndex(13));
            Validate.Exists(repo.FrmORMain.PostOpMedication.OnceMed.EditedOnceMedicationInfo);
        }
Beispiel #16
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.DischargePrecription.AddedDischargeMedication' at Center.", repo.FrmORMain.DischargePrecription.AddedDischargeMedicationInfo, new RecordItemIndex(0));
            repo.FrmORMain.DischargePrecription.AddedDischargeMedication.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.DischargePrecription.ButtonEdit' at Center.", repo.FrmORMain.DischargePrecription.ButtonEditInfo, new RecordItemIndex(1));
            repo.FrmORMain.DischargePrecription.ButtonEdit.Click();
            Delay.Milliseconds(200);

            UserCodeCollection_OR.Clear_TextBox(repo.AddDischargePrescription.DrugNameInfo, "Combobox");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_DischargeDrug'.", new RecordItemIndex(3));
            Keyboard.Press(Edit_DischargeDrug);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(4));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);

            UserCodeCollection_OR.Clear_TextBox(repo.AddDischargePrescription.DischarInstructionInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_DischarInstruction'.", new RecordItemIndex(6));
            Keyboard.Press(Edit_DischarInstruction);
            Delay.Milliseconds(100);

            UserCodeCollection_OR.Clear_TextBox(repo.AddDischargePrescription.SupplyInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_DischarSupply'.", new RecordItemIndex(8));
            Keyboard.Press(Edit_DischarSupply);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'AddDischargePrescription.ButtonOK' at Center.", repo.AddDischargePrescription.ButtonOKInfo, new RecordItemIndex(9));
            repo.AddDischargePrescription.ButtonOK.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'FrmORMain.DischargePrecription.EditedAddedDischargeMedication'.", repo.FrmORMain.DischargePrecription.EditedAddedDischargeMedicationInfo, new RecordItemIndex(10));
            Validate.Exists(repo.FrmORMain.DischargePrecription.EditedAddedDischargeMedicationInfo);
            Delay.Milliseconds(0);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            UserCodeCollection_OR.Clear_TextBox(repo.AddPainPrescription.WeightInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Weight'.", new RecordItemIndex(1));
            Keyboard.Press(Weight);
            Delay.Milliseconds(100);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            UserCodeCollection_OR.Clear_TextBox(repo.AddFluidOutput.FinishVolumeInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$FinishLevel'.", new RecordItemIndex(1));
            Keyboard.Press(FinishLevel);
            Delay.Milliseconds(100);
        }
Beispiel #19
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 0;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 0.00;

            Init();

            UserCodeCollection_OR.Clear_TextBox(repo.AddFluidInput.VolumeUnitInfo, "Combobox");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$FluidUnit'.", new RecordItemIndex(1));
            Keyboard.Press(FluidUnit);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(2));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 0;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 0.00;

            Init();

            UserCodeCollection_OR.Clear_TextBox(repo.FrmORMain.PostOpMedication.Information.PostOpOxygenRateInfo, "Combobox");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$PostOpRate'.", new RecordItemIndex(1));
            Keyboard.Press(PostOpRate);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(2));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);

            UserCodeCollection_OR.Clear_TextBox(repo.FrmORMain.PostOpMedication.Information.PostOpMaskInfo, "Combobox");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Mask'.", new RecordItemIndex(4));
            Keyboard.Press(Mask);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(5));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);

            UserCodeCollection_OR.Clear_TextBox(repo.FrmORMain.PostOpMedication.Information.TargetInfo, "Combobox");

            // Enter Target
            Report.Log(ReportLevel.Info, "Keyboard", "Enter Target\r\nKey sequence from variable '$Target'.", new RecordItemIndex(7));
            Keyboard.Press(Target);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(8));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);

            UserCodeCollection_OR.Clear_TextBox(repo.FrmORMain.PostOpMedication.Information.RecoveryInstructionsInfo, "Text");

            // Enter PostOpInstruction
            Report.Log(ReportLevel.Info, "Keyboard", "Enter PostOpInstruction\r\nKey sequence from variable '$PostOpInstruction'.", new RecordItemIndex(10));
            Keyboard.Press(PostOpInstruction);

            Mouse_Click_ButtonYes();

            // Enter VTE Prescribed
            Report.Log(ReportLevel.Info, "Mouse", "Enter VTE Prescribed\r\nMouse Left Click item 'FrmORMain.PostOpMedication.Information.VTEPrescribed' at Center.", repo.FrmORMain.PostOpMedication.Information.VTEPrescribedInfo, new RecordItemIndex(12));
            repo.FrmORMain.PostOpMedication.Information.VTEPrescribed.Click();

            Key_sequence_VTEPrescribed(repo.FrmORMain.PostOpMedication.Information.VTEPrescribedInfo);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.FluidBalance.Tabs.FluidOutput' at Center.", repo.FrmORMain.FluidBalance.Tabs.FluidOutputInfo, new RecordItemIndex(0));
            repo.FrmORMain.FluidBalance.Tabs.FluidOutput.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left DoubleClick item 'FrmORMain.FluidBalance.AddedFluidOutput' at Center.", repo.FrmORMain.FluidBalance.AddedFluidOutputInfo, new RecordItemIndex(1));
            repo.FrmORMain.FluidBalance.AddedFluidOutput.DoubleClick();
            Delay.Milliseconds(200);

            UserCodeCollection_OR.Clear_TextBox(repo.AddFluidOutput.FluidOutputNameInfo, "Combobox");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(3));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);

            // Validate error message when name is empty
            Report.Log(ReportLevel.Info, "Validation", "Validate error message when name is empty\r\nValidating Exists on item 'Error.PleaseEnterFluidName'.", repo.Error.PleaseEnterFluidNameInfo, new RecordItemIndex(4));
            Validate.Exists(repo.Error.PleaseEnterFluidNameInfo);
            Delay.Milliseconds(0);

            // Click Ok on error message
            Report.Log(ReportLevel.Info, "Mouse", "Click Ok on error message\r\nMouse Left Click item 'Error.ButtonOK' at Center.", repo.Error.ButtonOKInfo, new RecordItemIndex(5));
            repo.Error.ButtonOK.Click();
            Delay.Milliseconds(200);

            // Enter Name again
            Report.Log(ReportLevel.Info, "Keyboard", "Enter Name again\r\nKey sequence from variable '$FluidName'.", new RecordItemIndex(6));
            Keyboard.Press(FluidName);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(7));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);

            // CLick OK on Edit window
            Report.Log(ReportLevel.Info, "Mouse", "CLick OK on Edit window\r\nMouse Left Click item 'AddFluidOutput.ButtonOK' at Center.", repo.AddFluidOutput.ButtonOKInfo, new RecordItemIndex(8));
            repo.AddFluidOutput.ButtonOK.Click();
            Delay.Milliseconds(200);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left DoubleClick item 'FrmORMain.Patient_Details.Medical_Alerts_and_Allergies.MedicalAlertListItem' at Center.", repo.FrmORMain.Patient_Details.Medical_Alerts_and_Allergies.MedicalAlertListItemInfo, new RecordItemIndex(0));
            repo.FrmORMain.Patient_Details.Medical_Alerts_and_Allergies.MedicalAlertListItem.DoubleClick();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'EditMedicalAlert.Category' at Center.", repo.EditMedicalAlert.CategoryInfo, new RecordItemIndex(1));
            repo.EditMedicalAlert.Category.Click();
            Delay.Milliseconds(200);

            UserCodeCollection_OR.Clear_TextBox(repo.EditMedicalAlert.CategoryInfo, "Combobox");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$NameToEdit'.", new RecordItemIndex(3));
            Keyboard.Press(NameToEdit);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(4));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'EditMedicalAlert.ButtonOK' at Center.", repo.EditMedicalAlert.ButtonOKInfo, new RecordItemIndex(5));
            repo.EditMedicalAlert.ButtonOK.Click();
            Delay.Milliseconds(200);

            // Check validate duplicate ame message
            MedicalAlertAllergyCollection.CheckDupplicateDrugLCassConditionName("Condition");
            Delay.Milliseconds(0);

            // Click on OK button on Errror poppup
            Report.Log(ReportLevel.Info, "Mouse", "Click on OK button on Errror poppup\r\nMouse Left Click item 'Error.ButtonOK' at Center.", repo.Error.ButtonOKInfo, new RecordItemIndex(7));
            repo.Error.ButtonOK.Click();
            Delay.Milliseconds(200);

            // Click on Cancel on edit medical window
            Report.Log(ReportLevel.Info, "Mouse", "Click on Cancel on edit medical window\r\nMouse Left Click item 'EditMedicalAlert.ButtonCancel' at Center.", repo.EditMedicalAlert.ButtonCancelInfo, new RecordItemIndex(8));
            repo.EditMedicalAlert.ButtonCancel.Click();
            Delay.Milliseconds(200);
        }
Beispiel #23
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            UserCodeCollection_OR.Clear_TextBox(repo.AddRegionalBlock.BlockNameInfo, "Combobox");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$BlockName'.", new RecordItemIndex(1));
            Keyboard.Press(BlockName);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(2));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);

            UserCodeCollection_OR.Clear_TextBox(repo.AddRegionalBlock.BlockSiteInfo, "Combobox");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$BlockSite'.", new RecordItemIndex(4));
            Keyboard.Press(BlockSite);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(5));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);

            SelectLevelSide(IsNeuroaxialBlock, BlockLevel, BlockSide);
            Delay.Milliseconds(0);

            UserCodeCollection_OR.Clear_TextBox(repo.AddRegionalBlock.PatientPositionInfo, "Combobox");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$PatientPosition'.", new RecordItemIndex(8));
            Keyboard.Press(PatientPosition);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(9));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            UserCodeCollection_OR.Clear_TextBox(repo.AddAdministrationDateTime.InstructionInfo, "Combobox");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$SpecialIns'.", new RecordItemIndex(1));
            Keyboard.Press(SpecialIns);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(2));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);
        }
Beispiel #25
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.Drugs.Drugs.DrugListItem' at Center.", repo.FrmORMain.Drugs.Drugs.DrugListItemInfo, new RecordItemIndex(0));
            repo.FrmORMain.Drugs.Drugs.DrugListItem.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.Drugs.Drugs.RepeatDrug' at Center.", repo.FrmORMain.Drugs.Drugs.RepeatDrugInfo, new RecordItemIndex(1));
            repo.FrmORMain.Drugs.Drugs.RepeatDrug.Click();
            Delay.Milliseconds(200);

            // Save the time when add drug
            Report.Log(ReportLevel.Info, "Get Value", "Save the time when add drug\r\nGetting attribute 'Text' from item 'FrmEditDrug.DrugTime' and assigning its value to variable 'TimeAddDrug'.", repo.FrmEditDrug.DrugTimeInfo, new RecordItemIndex(2));
            TimeAddDrug = repo.FrmEditDrug.DrugTime.Element.GetAttributeValueText("Text");
            Delay.Milliseconds(0);

            // Enter new Dose/Rate
            DRUGCodeCollection.EnterDosage(Mode, Dosage2);
            Delay.Milliseconds(0);

            // Enter Comment
            Report.Log(ReportLevel.Info, "Mouse", "Enter Comment\r\nMouse Left Click item 'FrmEditDrug.Comment' at Center.", repo.FrmEditDrug.CommentInfo, new RecordItemIndex(4));
            repo.FrmEditDrug.Comment.Click();
            Delay.Milliseconds(200);

            // Clear old value
            UserCodeCollection_OR.Clear_TextBox(repo.FrmEditDrug.CommentInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$RepeatComment'.", new RecordItemIndex(6));
            Keyboard.Press(RepeatComment);
            Delay.Milliseconds(100);

            // Click OK
            Report.Log(ReportLevel.Info, "Mouse", "Click OK\r\nMouse Left Click item 'FrmEditDrug.OK' at Center.", repo.FrmEditDrug.OKInfo, new RecordItemIndex(7));
            repo.FrmEditDrug.OK.Click();
            Delay.Milliseconds(200);
        }
Beispiel #26
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Click on Add New Fluid
            Report.Log(ReportLevel.Info, "Mouse", "Click on Add New Fluid\r\nMouse Left Click item 'AddFluidInput.AddNewFluid' at Center.", repo.AddFluidInput.AddNewFluidInfo, new RecordItemIndex(0));
            repo.AddFluidInput.AddNewFluid.Click();
            Delay.Milliseconds(200);

            // Enter New Fluid name
            Report.Log(ReportLevel.Info, "Mouse", "Enter New Fluid name\r\nMouse Left Click item 'AddNewFluid.EdtFluidName' at Center.", repo.AddNewFluid.EdtFluidNameInfo, new RecordItemIndex(1));
            repo.AddNewFluid.EdtFluidName.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$FluidName'.", new RecordItemIndex(2));
            Keyboard.Press(FluidName);
            Delay.Milliseconds(100);

            UserCodeCollection_OR.Clear_TextBox(repo.AddNewFluid.EdtVolumeInfo, "Text");
            Delay.Milliseconds(0);

            // Enter Volume/StartLevel
            Report.Log(ReportLevel.Info, "Keyboard", "Enter Volume/StartLevel\r\nKey sequence from variable '$StartLevel'.", new RecordItemIndex(4));
            Keyboard.Press(StartLevel);
            Delay.Milliseconds(100);

            UserCodeCollection_OR.Clear_TextBox(repo.AddNewFluid.EdtUnitInfo, "Text");
            Delay.Milliseconds(0);

            // Enter Unit
            Report.Log(ReportLevel.Info, "Keyboard", "Enter Unit\r\nKey sequence from variable '$FluidUnit'.", new RecordItemIndex(6));
            Keyboard.Press(FluidUnit);
            Delay.Milliseconds(100);

            // Click OK
            Report.Log(ReportLevel.Info, "Mouse", "Click OK\r\nMouse Left Click item 'AddNewFluid.ButtonOK' at Center.", repo.AddNewFluid.ButtonOKInfo, new RecordItemIndex(7));
            repo.AddNewFluid.ButtonOK.Click();
            Delay.Milliseconds(200);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.FluidBalance.Tabs.FluidInput' at Center.", repo.FrmORMain.FluidBalance.Tabs.FluidInputInfo, new RecordItemIndex(0));
            repo.FrmORMain.FluidBalance.Tabs.FluidInput.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.FluidBalance.AddedFluidInput' at Center.", repo.FrmORMain.FluidBalance.AddedFluidInputInfo, new RecordItemIndex(1));
            repo.FrmORMain.FluidBalance.AddedFluidInput.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.FluidBalance.EditFluidInput' at Center.", repo.FrmORMain.FluidBalance.EditFluidInputInfo, new RecordItemIndex(2));
            repo.FrmORMain.FluidBalance.EditFluidInput.Click();
            Delay.Milliseconds(200);

            UserCodeCollection_OR.Clear_TextBox(repo.AddFluidInput.StartVolumeInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$EditStartVolume'.", new RecordItemIndex(4));
            Keyboard.Press(EditStartVolume);
            Delay.Milliseconds(100);

            UserCodeCollection_OR.Clear_TextBox(repo.AddFluidInput.FinishVolumeInfo, "Text");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$EditFinishVolume'.", new RecordItemIndex(6));
            Keyboard.Press(EditFinishVolume);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'AddFluidInput.ButtonOK' at Center.", repo.AddFluidInput.ButtonOKInfo, new RecordItemIndex(7));
            repo.AddFluidInput.ButtonOK.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'FrmORMain.FluidBalance.EditedFluidInput'.", repo.FrmORMain.FluidBalance.EditedFluidInputInfo, new RecordItemIndex(8));
            Validate.Exists(repo.FrmORMain.FluidBalance.EditedFluidInputInfo);
            Delay.Milliseconds(0);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 0;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 0.00;

            Init();

            // Click on "Regular" tab
            Report.Log(ReportLevel.Info, "Mouse", "Click on \"Regular\" tab\r\nMouse Left Click item 'FrmORMain.PostOpMedication.Tabs.RegularMedication' at Center.", repo.FrmORMain.PostOpMedication.Tabs.RegularMedicationInfo, new RecordItemIndex(0));
            repo.FrmORMain.PostOpMedication.Tabs.RegularMedication.Click();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.PostOpMedication.RegularMed.AddedRegularMedication' at Center.", repo.FrmORMain.PostOpMedication.RegularMed.AddedRegularMedicationInfo, new RecordItemIndex(1));
            repo.FrmORMain.PostOpMedication.RegularMed.AddedRegularMedication.Click();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.PostOpMedication.RegularMed.Edit' at Center.", repo.FrmORMain.PostOpMedication.RegularMed.EditInfo, new RecordItemIndex(2));
            repo.FrmORMain.PostOpMedication.RegularMed.Edit.Click();

            UserCodeCollection_OR.Clear_TextBox(repo.AddRegularMedication.DoseInfo, "Text");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_Reglar_Dose'.", new RecordItemIndex(4));
            Keyboard.Press(Edit_Reglar_Dose);

            UserCodeCollection_OR.Clear_TextBox(repo.AddRegularMedication.DoseCalculationInfo, "Text");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_Reglar_Calculation'.", new RecordItemIndex(6));
            Keyboard.Press(Edit_Reglar_Calculation);

            UserCodeCollection_OR.Clear_TextBox(repo.AddRegularMedication.InstructionInfo, "Combobox");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_Reglar_Instruction'.", new RecordItemIndex(8));
            Keyboard.Press(Edit_Reglar_Instruction);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'AddRegularMedication.ButtonOK' at Center.", repo.AddRegularMedication.ButtonOKInfo, new RecordItemIndex(9));
            repo.AddRegularMedication.ButtonOK.Click();

            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'FrmORMain.PostOpMedication.RegularMed.EditedRegularMedication'.", repo.FrmORMain.PostOpMedication.RegularMed.EditedRegularMedicationInfo, new RecordItemIndex(10));
            Validate.Exists(repo.FrmORMain.PostOpMedication.RegularMed.EditedRegularMedicationInfo);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 0;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 0.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.PostOpInstructions.FluidPrescription' at Center.", repo.FrmORMain.PostOpInstructions.FluidPrescriptionInfo, new RecordItemIndex(0));
            repo.FrmORMain.PostOpInstructions.FluidPrescription.Click();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.PostOpInstructions.Fluid.FluidListItem' at Center.", repo.FrmORMain.PostOpInstructions.Fluid.FluidListItemInfo, new RecordItemIndex(1));
            repo.FrmORMain.PostOpInstructions.Fluid.FluidListItem.Click();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmORMain.PostOpInstructions.Fluid.ButtonEdit' at Center.", repo.FrmORMain.PostOpInstructions.Fluid.ButtonEditInfo, new RecordItemIndex(2));
            repo.FrmORMain.PostOpInstructions.Fluid.ButtonEdit.Click();

            UserCodeCollection_OR.Clear_TextBox(repo.AddFluidPrescription.EditVolumeInfo, "Text");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_FluidVolume'.", new RecordItemIndex(4));
            Keyboard.Press(Edit_FluidVolume);

            UserCodeCollection_OR.Clear_TextBox(repo.AddFluidPrescription.EditRateInfo, "Text");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_FluidRate'.", new RecordItemIndex(6));
            Keyboard.Press(Edit_FluidRate);

            UserCodeCollection_OR.Clear_TextBox(repo.AddFluidPrescription.EditInstructionInfo, "Text");

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Edit_FluidInstruction'.", new RecordItemIndex(8));
            Keyboard.Press(Edit_FluidInstruction);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'AddFluidPrescription.ButtonOK' at Center.", repo.AddFluidPrescription.ButtonOKInfo, new RecordItemIndex(9));
            repo.AddFluidPrescription.ButtonOK.Click();

            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'FrmORMain.PostOpInstructions.Fluid.EditedFluidListItem'.", repo.FrmORMain.PostOpInstructions.Fluid.EditedFluidListItemInfo, new RecordItemIndex(10));
            Validate.Exists(repo.FrmORMain.PostOpInstructions.Fluid.EditedFluidListItemInfo);
        }
Beispiel #30
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            UserCodeCollection_OR.Clear_TextBox(repo.FrmORMain.PainPrescriptions.PulseLowerInfo, "Combobox");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$PulseLower'.", new RecordItemIndex(1));
            Keyboard.Press(PulseLower);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(2));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Text=$PulseLower) on item 'FrmORMain.PainPrescriptions.PulseLower'.", repo.FrmORMain.PainPrescriptions.PulseLowerInfo, new RecordItemIndex(3));
            Validate.AttributeEqual(repo.FrmORMain.PainPrescriptions.PulseLowerInfo, "Text", PulseLower);
            Delay.Milliseconds(0);

            UserCodeCollection_OR.Clear_TextBox(repo.FrmORMain.PainPrescriptions.PulseUpperInfo, "Combobox");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$PulseUpper'.", new RecordItemIndex(5));
            Keyboard.Press(PulseUpper);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Keyboard", "Key 'Enter' Press.", new RecordItemIndex(6));
            Keyboard.Press(System.Windows.Forms.Keys.Return, Keyboard.DefaultScanCode, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Text=$PulseUpper) on item 'FrmORMain.PainPrescriptions.PulseUpper'.", repo.FrmORMain.PainPrescriptions.PulseUpperInfo, new RecordItemIndex(7));
            Validate.AttributeEqual(repo.FrmORMain.PainPrescriptions.PulseUpperInfo, "Text", PulseUpper);
            Delay.Milliseconds(0);
        }