Example #1
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 30;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Yes All
            Report.Log(ReportLevel.Info, "Section", "Yes All", new RecordItemIndex(0));

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.FormInlinePanelHeading.YesAll' at 30;23.", repo.Login1.FormInlinePanelHeading.YesAllInfo, new RecordItemIndex(1));
            repo.Login1.FormInlinePanelHeading.YesAll.Click("30;23");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{enter}'.", new RecordItemIndex(2));
            Keyboard.Press("{enter}");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 25s.", new RecordItemIndex(3));
            Delay.Duration(25000, false);

            Report.Log(ReportLevel.Info, "Invoke action", "Invoking WaitForDocumentLoaded('120000ms') on item 'Login1'.", repo.Login1.SelfInfo, new RecordItemIndex(4));
            repo.Login1.Self.WaitForDocumentLoaded(ValueConverter.ArgumentFromString <Ranorex.Duration>("timeout", "120000ms"));
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 3s.", new RecordItemIndex(5));
            Delay.Duration(3000, false);
        }
Example #2
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            selectListItem(ValueConverter.ArgumentFromString <int>("num", "2"));
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 1s.", new RecordItemIndex(1));
            Delay.Duration(1000, false);

            selectVersion("2");
            Delay.Milliseconds(0);

            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating AttributeNotContains (Text!>'(pending)') on item 'ResultsAnalysis.SelectVersion'.", repo.ResultsAnalysis.SelectVersionInfo, new RecordItemIndex(3));
                Validate.Attribute(repo.ResultsAnalysis.SelectVersionInfo, "Text", new Regex("^((?!(" + Regex.Escape("(pending)") + "))(.|\n))*$"), Validate.DefaultMessage, false);
                Delay.Milliseconds(0);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(3)); }

            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating AttributeContains (Text>'Version 2') on item 'ResultsAnalysis.SelectVersion'.", repo.ResultsAnalysis.SelectVersionInfo, new RecordItemIndex(4));
                Validate.Attribute(repo.ResultsAnalysis.SelectVersionInfo, "Text", new Regex(Regex.Escape("Version 2")), Validate.DefaultMessage, false);
                Delay.Milliseconds(0);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(4)); }
        }
Example #3
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Click on Review Round
            Report.Log(ReportLevel.Info, "Mouse", "Click on Review Round\r\nMouse Left Click item 'MainWindow.SavingReview.ReviewRound' at Center.", repo.MainWindow.SavingReview.ReviewRoundInfo, new RecordItemIndex(0));
            repo.MainWindow.SavingReview.ReviewRound.Click();
            Delay.Milliseconds(200);

            // Select an Review Round item
            SelectReviewRound(ValueConverter.ArgumentFromString <int>("NextReviewRound", NextReviewRound));
            Delay.Milliseconds(0);

            // Click on Select Printer
            Report.Log(ReportLevel.Info, "Mouse", "Click on Select Printer\r\nMouse Left Click item 'MainWindow.SavingReview.SelectPrinter' at Center.", repo.MainWindow.SavingReview.SelectPrinterInfo, new RecordItemIndex(2));
            repo.MainWindow.SavingReview.SelectPrinter.Click();
            Delay.Milliseconds(200);

            // Select printer option
            SAFERSleepAPCollection.SelectComboboxItems(Printer, repo.MainWindow.SavingReview.SelectPrinterInfo);
            Delay.Milliseconds(0);

            // Click on Print
            Report.Log(ReportLevel.Info, "Mouse", "Click on Print\r\nMouse Left Click item 'MainWindow.SavingReview.Print_Save' at Center.", repo.MainWindow.SavingReview.Print_SaveInfo, new RecordItemIndex(4));
            repo.MainWindow.SavingReview.Print_Save.Click();
            Delay.Milliseconds(200);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.HomeIcon' at Center", repo.ComPentairPentairhome.HomeIconInfo, new RecordItemIndex(0));
            repo.ComPentairPentairhome.HomeIcon.Touch();
            Delay.Milliseconds(300);

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

            try {
                Report.Log(ReportLevel.Info, "Touch", "(Optional Action)\r\nTouch item 'ComPentairPentairhome.AppFeedbackClose' at Center", repo.ComPentairPentairhome.AppFeedbackCloseInfo, new RecordItemIndex(2));
                repo.ComPentairPentairhome.AppFeedbackClose.Touch();
                Delay.Milliseconds(300);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(2)); }

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

            Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.SSPCtileClick' at Center", repo.ComPentairPentairhome.SSPCtileClickInfo, new RecordItemIndex(4));
            repo.ComPentairPentairhome.SSPCtileClick.Touch();
            Delay.Milliseconds(300);

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

            Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.Manual' at Center", repo.ComPentairPentairhome.ManualInfo, new RecordItemIndex(6));
            repo.ComPentairPentairhome.Manual.Touch();
            Delay.Milliseconds(300);

            Report.Log(ReportLevel.Info, "Touch gestures", "Swipe gesture with direction 'Up (270°)' starting from 'Center' with distance '.5' with swipe duration'500ms' and step count '0' on item 'ComPentairPentairhome.ManualScrollUp'.", repo.ComPentairPentairhome.ManualScrollUpInfo, new RecordItemIndex(7));
            repo.ComPentairPentairhome.ManualScrollUp.Swipe(Location.Center, ValueConverter.ArgumentFromString <Ranorex.Core.Recorder.Touch.GestureDirection>("SwipeDirection", "Up (270°)"), ValueConverter.ArgumentFromString <Ranorex.Core.Distance>("Distance", ".5"), ValueConverter.ArgumentFromString <Ranorex.Duration>("SwipeDuration", "500ms"), 0);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Set value", "Setting attribute Text to '$ManualFrequency' on item 'ComPentairPentairhome.Manual_frequency'.", repo.ComPentairPentairhome.Manual_frequencyInfo, new RecordItemIndex(8));
            repo.ComPentairPentairhome.Manual_frequency.Element.SetAttributeValue("Text", ManualFrequency);
            Delay.Milliseconds(0);

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

            Report.Log(ReportLevel.Info, "Set value", "Setting attribute Text to '$ManualDuration' on item 'ComPentairPentairhome.Manula_Duration'.", repo.ComPentairPentairhome.Manula_DurationInfo, new RecordItemIndex(10));
            repo.ComPentairPentairhome.Manula_Duration.Element.SetAttributeValue("Text", ManualDuration);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 3s.", new RecordItemIndex(11));
            Delay.Duration(3000, false);

            Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.StartManual' at Center", repo.ComPentairPentairhome.StartManualInfo, new RecordItemIndex(12));
            repo.ComPentairPentairhome.StartManual.Touch();
            Delay.Milliseconds(300);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for time from variable $ManualWaitTime.", new RecordItemIndex(13));
            Delay.Duration(Duration.Parse(ManualWaitTime), false);
        }
Example #5
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Application", "Run mobile app 'com.pentair.pentairhome' on device 'Jyoti’s iPhone'.", new RecordItemIndex(0));
            Host.Local.RunMobileApp("Jyoti’s iPhone", "com.pentair.pentairhome", false);
            Delay.Milliseconds(3500);

            Report.Log(ReportLevel.Info, "Touch gestures", "Swipe gesture with direction 'Left (180°)' starting from 'Center' with distance '.5' with swipe duration'500ms' and step count '0' on item 'ComPentairPentairhome.firstscreensipe'.", repo.ComPentairPentairhome.firstscreensipeInfo, new RecordItemIndex(1));
            repo.ComPentairPentairhome.firstscreensipe.Swipe(Location.Center, ValueConverter.ArgumentFromString <Ranorex.Core.Recorder.Touch.GestureDirection>("SwipeDirection", "Left (180°)"), ValueConverter.ArgumentFromString <Ranorex.Core.Distance>("Distance", ".5"), ValueConverter.ArgumentFromString <Ranorex.Duration>("SwipeDuration", "500ms"), 0);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Touch gestures", "Swipe gesture with direction 'Left (180°)' starting from 'Center' with distance '.5' with swipe duration'500ms' and step count '0' on item 'ComPentairPentairhome.SecondScreenSipe'.", repo.ComPentairPentairhome.SecondScreenSipeInfo, new RecordItemIndex(2));
            repo.ComPentairPentairhome.SecondScreenSipe.Swipe(Location.Center, ValueConverter.ArgumentFromString <Ranorex.Core.Recorder.Touch.GestureDirection>("SwipeDirection", "Left (180°)"), ValueConverter.ArgumentFromString <Ranorex.Core.Distance>("Distance", ".5"), ValueConverter.ArgumentFromString <Ranorex.Duration>("SwipeDuration", "500ms"), 0);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Touch gestures", "Swipe gesture with direction 'Left (180°)' starting from 'Center' with distance '.5' with swipe duration'500ms' and step count '0' on item 'ComPentairPentairhome.ThirdScreenSwipe'.", repo.ComPentairPentairhome.ThirdScreenSwipeInfo, new RecordItemIndex(3));
            repo.ComPentairPentairhome.ThirdScreenSwipe.Swipe(Location.Center, ValueConverter.ArgumentFromString <Ranorex.Core.Recorder.Touch.GestureDirection>("SwipeDirection", "Left (180°)"), ValueConverter.ArgumentFromString <Ranorex.Core.Distance>("Distance", ".5"), ValueConverter.ArgumentFromString <Ranorex.Duration>("SwipeDuration", "500ms"), 0);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.LastScreen_Next_button' at Center", repo.ComPentairPentairhome.LastScreen_Next_buttonInfo, new RecordItemIndex(4));
            repo.ComPentairPentairhome.LastScreen_Next_button.Touch();
            Delay.Milliseconds(300);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Step## Press the settings icon
            Report.Log(ReportLevel.Info, "Section", "Step## Press the settings icon", new RecordItemIndex(0));

            TapOnRightButton("Tap on Settings icon");
            Delay.Milliseconds(0);

            // Validation## Setting screen is opened. Usage statistics toggle is activated (ON) by default.
            Report.Log(ReportLevel.Info, "Section", "Validation## Setting screen is opened. Usage statistics toggle is activated (ON) by default.", new RecordItemIndex(2));

            VerifyActionBarTitle("Settings");
            Delay.Milliseconds(0);

            ValidateUsageStatistics(ValueConverter.ArgumentFromString <bool>("isON", "True"));
            Delay.Milliseconds(0);

            // Step## Turn the toggle OFF
            Report.Log(ReportLevel.Info, "Section", "Step## Turn the toggle OFF", new RecordItemIndex(5));

            SwitchUsageStatistics(ValueConverter.ArgumentFromString <bool>("on", "False"));
            Delay.Milliseconds(0);

            // Validation## The tracking is deactivated. The toggle is set to off state
            Report.Log(ReportLevel.Info, "Section", "Validation## The tracking is deactivated. The toggle is set to off state", new RecordItemIndex(7));

            ValidateUsageStatistics(ValueConverter.ArgumentFromString <bool>("isON", "False"));
            Delay.Milliseconds(0);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            //GetFromScreen("БАЗОВЫЙ ", ValueConverter.ArgumentFromString<int>("lenб", "6"));
            //Delay.Milliseconds(0);

            //Bis.Putty.OnScreen(ValueConverter.ArgumentFromString<bool>("absentFlag", "False"), "", "", "", "", "", "");
            //Delay.Milliseconds(0);

            Bis.Putty.GetFromScreen("РОЗН.ЧНЫ..", ValueConverter.ArgumentFromString <int>("len", "6"), "controlVar");
            Delay.Milliseconds(0);

            Bis.Putty.PrintTextFromScreen("controlVar");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 3s.", new RecordItemIndex(4));
            Delay.Duration(3000, false);

            Bis.Putty.OnScreen(ValueConverter.ArgumentFromString <bool>("absentFlag", "False"), controlVar, "", "", "", "", "");
            Delay.Milliseconds(0);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Step## Open the Application and Press Settings/More button .
            Report.Log(ReportLevel.Info, "Section", "Step## Open the Application and Press Settings/More button .", new RecordItemIndex(0));

            StartApp();
            Delay.Milliseconds(0);

            TapOnSettings();
            Delay.Milliseconds(0);

            // Validation## More screen is opened. Usage Statistics is ON by default.
            Report.Log(ReportLevel.Info, "Section", "Validation## More screen is opened. Usage Statistics is ON by default.", new RecordItemIndex(3));

            ValidateUsageStatistics(ValueConverter.ArgumentFromString <bool>("isON", "True"));
            Delay.Milliseconds(0);

            // Step## Switch statistics toggle to OFF
            Report.Log(ReportLevel.Info, "Section", "Step## Switch statistics toggle to OFF", new RecordItemIndex(5));

            SwitchUsageStatistics(ValueConverter.ArgumentFromString <bool>("on", "False"));
            Delay.Milliseconds(0);

            // Validation## Usage statistics feature is deactivated. Application activities are not logged until it is switched to ON.
            Report.Log(ReportLevel.Info, "Section", "Validation## Usage statistics feature is deactivated. Application activities are not logged until it is switched to ON.", new RecordItemIndex(7));

            ValidateUsageStatistics(ValueConverter.ArgumentFromString <bool>("isON", "False"));
            Delay.Milliseconds(0);
        }
Example #9
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Prepare();
            Delay.Milliseconds(0);

            renameIScriptFolder(ValueConverter.ArgumentFromString <bool>("invert", "False"));
            Delay.Milliseconds(0);

            CommandLineImport("ELISA Absorbance 405nm (1).assay-protocol", "");
            Delay.Milliseconds(0);

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

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeContains (Text>'ELISA Absorbance 405nm (1) *') on item 'ProtocolAnalysisDesktop.Rectangle'.", repo.ProtocolAnalysisDesktop.RectangleInfo, new RecordItemIndex(4));
            Validate.Attribute(repo.ProtocolAnalysisDesktop.RectangleInfo, "Text", new Regex(Regex.Escape("ELISA Absorbance 405nm (1) *")));
            Delay.Milliseconds(0);

            try {
                renameIScriptFolder(ValueConverter.ArgumentFromString <bool>("invert", "True"));
                Delay.Milliseconds(0);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(5)); }

            KillApp("MyAssays.Desktop.Analysis");
            Delay.Milliseconds(0);
        }
Example #10
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor = 1.00;

            Init();

            // Step## Open the Application and Press Settings/More button .
            Report.Log(ReportLevel.Info, "Section", "Step## Open the Application and Press Settings/More button .", new RecordItemIndex(0));
            
            TapOnSettings();
            Delay.Milliseconds(0);
            
            // Validation## More screen is opened. Usage Statistics is ON by default.
            Report.Log(ReportLevel.Info, "Section", "Validation## More screen is opened. Usage Statistics is ON by default.", new RecordItemIndex(2));
            
            ValidateUsageStatistics(ValueConverter.ArgumentFromString<bool>("isON", "True"));
            Delay.Milliseconds(0);
            
            // Step## Switch statistics toggle to OFF
            Report.Log(ReportLevel.Info, "Section", "Step## Switch statistics toggle to OFF", new RecordItemIndex(4));
            
            SwitchUsageStatistics(ValueConverter.ArgumentFromString<bool>("on", "False"));
            Delay.Milliseconds(0);
            
            // Validation## Settings screen is opened and following controls are displayed:Back button, Sound Balance, Sound Settings, Setup, Advanced Setup, Language, Rate our App, Usage statistics, Help, Imprint, App Version
            Report.Log(ReportLevel.Info, "Section", "Validation## Settings screen is opened and following controls are displayed:Back button, Sound Balance, Sound Settings, Setup, Advanced Setup, Language, Rate our App, Usage statistics, Help, Imprint, App Version", new RecordItemIndex(6));
            
            ValidateUsageStatistics(ValueConverter.ArgumentFromString<bool>("isON", "False"));
            Delay.Milliseconds(0);
            
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Step## Open the app and select new
            Report.Log(ReportLevel.Info, "Section", "Step## Open the app and select new", new RecordItemIndex(0));

            // Step## Enter last name and first name alone and hit continue
            Report.Log(ReportLevel.Info, "Section", "Step## Enter last name and first name alone and hit continue", new RecordItemIndex(1));

            CreatePatient("Workflow", "Patient");
            Delay.Milliseconds(0);

            // Validation## The Continue button is active and directs to 'Workflow Overview' screen.
            Report.Log(ReportLevel.Info, "Section", "Validation## The Continue button is active and directs to 'Workflow Overview' screen.", new RecordItemIndex(3));

            ValidateCustomerContinueEnabled(ValueConverter.ArgumentFromString <bool>("enabled", "True"));
            Delay.Milliseconds(0);

            SelectCustomerContinue();
            Delay.Milliseconds(0);

            ValidateContents("Enter Audiogram;Select Hearing Aid;Select Sound Profile;Fit Coupling;Assemble Hearing Aid;Send Data to Hearing Aid;Check Sound Comfort");
            Delay.Milliseconds(0);

            TabTapOnDetailNavBarLeft("Press on  back");
            Delay.Milliseconds(0);

            // Step## Enter only last name and Click Continue
            Report.Log(ReportLevel.Info, "Section", "Step## Enter only last name and Click Continue", new RecordItemIndex(8));

            CreatePatient("Workflow", "");
            Delay.Milliseconds(0);

            // Validation## The Continue button is greyed out (inactive) as Name field (mandatory field) has data missing
            Report.Log(ReportLevel.Info, "Section", "Validation## The Continue button is greyed out (inactive) as Name field (mandatory field) has data missing", new RecordItemIndex(10));

            ValidateCustomerContinueEnabled(ValueConverter.ArgumentFromString <bool>("enabled", "False"));
            Delay.Milliseconds(0);

            // Step## Enter data for all three fields - first, last name and dob, hit Continue
            Report.Log(ReportLevel.Info, "Section", "Step## Enter data for all three fields - first, last name and dob, hit Continue", new RecordItemIndex(12));

            CreatePatient("Workflow", "Patient", "June_7_1950");
            Delay.Milliseconds(0);

            ValidateCustomerContinueEnabled(ValueConverter.ArgumentFromString <bool>("enabled", "True"));
            Delay.Milliseconds(0);

            SelectCustomerContinue();
            Delay.Milliseconds(0);

            ValidateContents("Enter Audiogram;Select Hearing Aid;Select Sound Profile;Fit Coupling;Assemble Hearing Aid;Send Data to Hearing Aid;Check Sound Comfort");
            Delay.Milliseconds(0);
        }
Example #12
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            RunAnalysis("ELISAmulti_platesFlagged.assay-protocol");
            Delay.Milliseconds(0);

            openProperties(repo.ProtocolAnalysisDesktop.PropertyEditorPanel);
            Delay.Milliseconds(0);

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

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 3s.", new RecordItemIndex(3));
            Delay.Duration(3000, false);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ProtocolAnalysisDesktop.TabControlGrid1.FlaggedPlateControl' at Center.", repo.ProtocolAnalysisDesktop.TabControlGrid1.FlaggedPlateControlInfo, new RecordItemIndex(4));
            repo.ProtocolAnalysisDesktop.TabControlGrid1.FlaggedPlateControl.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 1s.", new RecordItemIndex(5));
            Delay.Duration(1000, false);

            checkFlaggedAmount(ValueConverter.ArgumentFromString <int>("expectedCount", "1"), repo.ProtocolAnalysisDesktop.TabControlGrid1.PlateControl);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ProtocolAnalysisDesktop.TabControlGrid1.DropdownOnPlateControl' at Center.", repo.ProtocolAnalysisDesktop.TabControlGrid1.DropdownOnPlateControlInfo, new RecordItemIndex(7));
            repo.ProtocolAnalysisDesktop.TabControlGrid1.DropdownOnPlateControl.Click();
            Delay.Milliseconds(200);

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

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 1s.", new RecordItemIndex(9));
            Delay.Duration(1000, false);

            checkFlaggedAmount(ValueConverter.ArgumentFromString <int>("expectedCount", "0"), repo.ProtocolAnalysisDesktop.TabControlGrid1.PlateControl);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ProtocolAnalysisDesktop.TabControlGrid1.DropdownOnPlateControl' at Center.", repo.ProtocolAnalysisDesktop.TabControlGrid1.DropdownOnPlateControlInfo, new RecordItemIndex(11));
            repo.ProtocolAnalysisDesktop.TabControlGrid1.DropdownOnPlateControl.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'MyAssaysDesktopAnalysis.Plate1' at Center.", repo.MyAssaysDesktopAnalysis.Plate1Info, new RecordItemIndex(12));
            repo.MyAssaysDesktopAnalysis.Plate1.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 1s.", new RecordItemIndex(13));
            Delay.Duration(1000, false);

            checkFlaggedAmount(ValueConverter.ArgumentFromString <int>("expectedCount", "1"), repo.ProtocolAnalysisDesktop.TabControlGrid1.PlateControl);
            Delay.Milliseconds(0);
        }
Example #13
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Verify the search screen  appear  after saving review
            Report.Log(ReportLevel.Info, "Validation", "Verify the search screen  appear  after saving review\r\nValidating Exists on item 'MainWindow.SearchPatientScreen.LogoAcutePain'.", repo.MainWindow.SearchPatientScreen.LogoAcutePainInfo, new RecordItemIndex(0));
            Validate.Exists(repo.MainWindow.SearchPatientScreen.LogoAcutePainInfo);
            Delay.Milliseconds(0);

            // Select Round Team
            Report.Log(ReportLevel.Info, "Mouse", "Select Round Team\r\nMouse Left Click item 'MainWindow.SearchPatientScreen.ReviewRound' at Center.", repo.MainWindow.SearchPatientScreen.ReviewRoundInfo, new RecordItemIndex(1));
            repo.MainWindow.SearchPatientScreen.ReviewRound.Click();
            Delay.Milliseconds(200);

            // Select "All Acitve" value
            SAFERSleepAPCollection.SelectReviewRound(ValueConverter.ArgumentFromString <int>("ReviewRound", "0"), repo.MainWindow.SearchPatientScreen.ReviewRoundInfo);
            Delay.Milliseconds(0);

            // Enter NHI
            Report.Log(ReportLevel.Info, "Mouse", "Enter NHI\r\nMouse Left Click item 'MainWindow.SearchPatientScreen.NHI' at Center.", repo.MainWindow.SearchPatientScreen.NHIInfo, new RecordItemIndex(3));
            repo.MainWindow.SearchPatientScreen.NHI.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$NHI' with focus on 'MainWindow.SearchPatientScreen.NHI'.", repo.MainWindow.SearchPatientScreen.NHIInfo, new RecordItemIndex(4));
            repo.MainWindow.SearchPatientScreen.NHI.PressKeys(NHI);
            Delay.Milliseconds(100);

            // Ward View OFF
            Report.Log(ReportLevel.Info, "Mouse", "Ward View OFF\r\nMouse Left Click item 'MainWindow.SearchPatientScreen.WardView' at Center.", repo.MainWindow.SearchPatientScreen.WardViewInfo, new RecordItemIndex(5));
            repo.MainWindow.SearchPatientScreen.WardView.Click();
            Delay.Milliseconds(200);

            // Click on Search
            //Report.Log(ReportLevel.Info, "Mouse", "Click on Search\r\nMouse Left Click item 'MainWindow.SearchPatientScreen.Search' at Center.", repo.MainWindow.SearchPatientScreen.SearchInfo, new RecordItemIndex(6));
            //repo.MainWindow.SearchPatientScreen.Search.Click();
            //Delay.Milliseconds(200);

            // Verify that the  Patient is returned
            Report.Log(ReportLevel.Info, "Validation", "Verify that the  Patient is returned\r\nValidating Exists on item 'MainWindow.SearchPatientScreen.PatientNHISearch'.", repo.MainWindow.SearchPatientScreen.PatientNHISearchInfo, new RecordItemIndex(7));
            Validate.Exists(repo.MainWindow.SearchPatientScreen.PatientNHISearchInfo);
            Delay.Milliseconds(0);

            // Verify the backgound color is green which shows the review is successful
            Report.Log(ReportLevel.Info, "Validation", "Verify the backgound color is green which shows the review is successful\r\nValidating AttributeEqual (BackgroundColor='#00FFFFFF') on item 'MainWindow.SearchPatientScreen.PatientNHISearch'.", repo.MainWindow.SearchPatientScreen.PatientNHISearchInfo, new RecordItemIndex(8));
            Validate.AttributeEqual(repo.MainWindow.SearchPatientScreen.PatientNHISearchInfo, "BackgroundColor", "#00FFFFFF");
            Delay.Milliseconds(0);

            // Ward View ON
            Report.Log(ReportLevel.Info, "Mouse", "Ward View ON\r\nMouse Left Click item 'MainWindow.SearchPatientScreen.WardView' at Center.", repo.MainWindow.SearchPatientScreen.WardViewInfo, new RecordItemIndex(9));
            repo.MainWindow.SearchPatientScreen.WardView.Click();
            Delay.Milliseconds(200);
        }
Example #14
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Application", "Run mobile app 'm.example.wakeapp2' on device 'WakeApp'.", new RecordItemIndex(0));
            Host.Local.RunMobileApp("WakeApp", "m.example.wakeapp2", true);
            Delay.Milliseconds(3500);

            Report.Log(ReportLevel.Info, "Touch gestures", "Swipe gesture with direction 'Left (180°)' starting from 'Center' with distance '1.0' with swipe duration'500ms' and step count '0' on item 'MExampleWakeapp2.Content'.", repo.MExampleWakeapp2.ContentInfo, new RecordItemIndex(1));
            repo.MExampleWakeapp2.Content.Swipe(Location.Center, ValueConverter.ArgumentFromString <Ranorex.Core.Recorder.Touch.GestureDirection>("SwipeDirection", "Left (180°)"), ValueConverter.ArgumentFromString <Ranorex.Core.Distance>("Distance", "1.0"), ValueConverter.ArgumentFromString <Ranorex.Duration>("SwipeDuration", "500ms"), 0);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Touch gestures", "Swipe gesture with direction 'Left (180°)' starting from 'Center' with distance '1.0' with swipe duration'500ms' and step count '0' on item 'MExampleWakeapp2.Content'.", repo.MExampleWakeapp2.ContentInfo, new RecordItemIndex(2));
            repo.MExampleWakeapp2.Content.Swipe(Location.Center, ValueConverter.ArgumentFromString <Ranorex.Core.Recorder.Touch.GestureDirection>("SwipeDirection", "Left (180°)"), ValueConverter.ArgumentFromString <Ranorex.Core.Distance>("Distance", "1.0"), ValueConverter.ArgumentFromString <Ranorex.Duration>("SwipeDuration", "500ms"), 0);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Touch", "Touch item 'MExampleWakeapp2.EtLogin1' at Center", repo.MExampleWakeapp2.EtLogin1Info, new RecordItemIndex(3));
            repo.MExampleWakeapp2.EtLogin1.Touch();
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Set value", "Setting attribute Text to '*****@*****.**' on item 'MExampleWakeapp2.EtLogin1'.", repo.MExampleWakeapp2.EtLogin1Info, new RecordItemIndex(4));
            repo.MExampleWakeapp2.EtLogin1.Element.SetAttributeValue("Text", "*****@*****.**");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Touch", "Touch item 'MExampleWakeapp2.EtPassword1' at Center", repo.MExampleWakeapp2.EtPassword1Info, new RecordItemIndex(5));
            repo.MExampleWakeapp2.EtPassword1.Touch();
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Set value", "Setting attribute Text to 'WakeApp132!' on item 'MExampleWakeapp2.EtPassword1'.", repo.MExampleWakeapp2.EtPassword1Info, new RecordItemIndex(6));
            repo.MExampleWakeapp2.EtPassword1.Element.SetAttributeValue("Text", "WakeApp132!");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Touch", "Touch item 'MExampleWakeapp2.BtnLoginUser' at Center", repo.MExampleWakeapp2.BtnLoginUserInfo, new RecordItemIndex(7));
            repo.MExampleWakeapp2.BtnLoginUser.Touch();
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Text='Alarmy') on item 'MExampleWakeapp2.Linear2.BtnAlarmMgmt'.", repo.MExampleWakeapp2.Linear2.BtnAlarmMgmtInfo, new RecordItemIndex(8));
            Validate.AttributeEqual(repo.MExampleWakeapp2.Linear2.BtnAlarmMgmtInfo, "Text", "Alarmy");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Text='Urządzenia') on item 'MExampleWakeapp2.Linear2.BtnDiviceMgmt'.", repo.MExampleWakeapp2.Linear2.BtnDiviceMgmtInfo, new RecordItemIndex(9));
            Validate.AttributeEqual(repo.MExampleWakeapp2.Linear2.BtnDiviceMgmtInfo, "Text", "Urządzenia");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Text='Użytkownicy') on item 'MExampleWakeapp2.Linear2.BtnUserMgmt'.", repo.MExampleWakeapp2.Linear2.BtnUserMgmtInfo, new RecordItemIndex(10));
            Validate.AttributeEqual(repo.MExampleWakeapp2.Linear2.BtnUserMgmtInfo, "Text", "Użytkownicy");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Text='Ustawienia') on item 'MExampleWakeapp2.Linear2.BtnDsa'.", repo.MExampleWakeapp2.Linear2.BtnDsaInfo, new RecordItemIndex(11));
            Validate.AttributeEqual(repo.MExampleWakeapp2.Linear2.BtnDsaInfo, "Text", "Ustawienia");
            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 'ResultsAnalysis.ReportRibbonTab' at Center.", repo.ResultsAnalysis.ReportRibbonTab.SelfInfo, new RecordItemIndex(0));
            repo.ResultsAnalysis.ReportRibbonTab.Self.Click();
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ResultsAnalysis.PageView' at 35;37.", repo.ResultsAnalysis.PageViewInfo, new RecordItemIndex(1));
            repo.ResultsAnalysis.PageView.Click("35;37");
            Delay.Milliseconds(200);

            ValidateTemplateButtonsNotVisisble();
            Delay.Milliseconds(0);

            ValidateInsertHeaderFooterNotVisible();
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ResultsAnalysis.ResultsTab' at Center.", repo.ResultsAnalysis.ResultsTabInfo, new RecordItemIndex(4));
            repo.ResultsAnalysis.ResultsTab.Click();
            Delay.Milliseconds(200);

            FlagPoint("1", "0.393");
            Delay.Milliseconds(0);

            ValidatePointFlagState(ValueConverter.ArgumentFromString <bool>("expectedState", "False"), "1", "0.393");
            Delay.Milliseconds(0);

            ValidateFlagsPanelCheckboxNotExist();
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ResultsAnalysis.SomeList' at 44;35.", repo.ResultsAnalysis.SomeListInfo, new RecordItemIndex(8));
            repo.ResultsAnalysis.SomeList.Click("44;35");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Visible='False') on item 'ResultsAnalysis.SaveTab'.", repo.ResultsAnalysis.SaveTabInfo, new RecordItemIndex(9));
            Validate.Attribute(repo.ResultsAnalysis.SaveTabInfo, "Visible", "False");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Visible='False') on item 'ResultsAnalysis.SaveButton'.", repo.ResultsAnalysis.SaveButtonInfo, new RecordItemIndex(10));
            Validate.Attribute(repo.ResultsAnalysis.SaveButtonInfo, "Visible", "False");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Visible='False') on item 'ResultsAnalysis.SaveResultsAs'.", repo.ResultsAnalysis.SaveResultsAsInfo, new RecordItemIndex(11));
            Validate.Attribute(repo.ResultsAnalysis.SaveResultsAsInfo, "Visible", "False");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Visible='False') on item 'ResultsAnalysis.SaveProtocolAs'.", repo.ResultsAnalysis.SaveProtocolAsInfo, new RecordItemIndex(12));
            Validate.Attribute(repo.ResultsAnalysis.SaveProtocolAsInfo, "Visible", "False");
            Delay.Milliseconds(0);
        }
Example #16
0
        public static void visitNonTKAllTPOSM()
        {
            string tposmtext = "";
            string lastitemtextbeforeswipe = "";
            string lastitemtextafterswipe  = "";
            var    tposmlist = repo.PMI_Supervisor.TPOSM_List.Children.ToList();

            for (int i = 0; i < tposmlist.Count; i++)
            {
                var tposm = tposmlist[i].Children.ToList();
                tposmtext = Convert.ToString(tposm[1]);
                tposm[1].Touch();
                Delay.Milliseconds(1000);
                if (tposmtext.Contains("Key Message Communication") || tposmtext.Contains("Trade Letter") || tposmtext.Contains("Dummy Pack"))
                {
                    PMISupervisor.TestCases.VisitNonTKShopOpenOnce.TPOSM1.Start();
                }
                else
                {
                    PMISupervisor.TestCases.VisitNonTKShopOpenOnce.TPOSM2.Start();
                }
            }
            try{
                while (true)
                {
                    var lastitemcontainerbeforeswipe = repo.PMI_Supervisor.TPOSM_List.Children.Last();
                    var lastitembeforeswipe          = lastitemcontainerbeforeswipe.Children.ToList();
                    lastitemtextbeforeswipe = Convert.ToString(lastitembeforeswipe[1]);
                    repo.PMI_Supervisor.TPOSM_List.Swipe(Location.Center, ValueConverter.ArgumentFromString <Ranorex.Core.Recorder.Touch.GestureDirection>("SwipeDirection", "Up (270°)"), ValueConverter.ArgumentFromString <Ranorex.Core.Distance>("Distance", ".147"), ValueConverter.ArgumentFromString <Ranorex.Duration>("SwipeDuration", "500ms"), 0);
                    Delay.Milliseconds(2000);
                    var lastitemcontainerafterswipe = repo.PMI_Supervisor.TPOSM_List.Children.Last();
                    var lastitemafterswipe          = lastitemcontainerafterswipe.Children.ToList();
                    lastitemtextafterswipe = Convert.ToString(lastitemafterswipe[1]);
                    if (lastitemtextafterswipe.Equals(lastitemtextbeforeswipe))
                    {
                        break;
                    }
                    else
                    {
                        lastitemafterswipe[1].Touch();
                        Delay.Milliseconds(1000);
                        if (lastitemtextafterswipe.Contains("Key Message Communication") || lastitemtextafterswipe.Contains("Trade Letter") || lastitemtextafterswipe.Contains("Dummy Pack"))
                        {
                            PMISupervisor.TestCases.VisitNonTKShopOpenOnce.TPOSM1.Start();
                        }
                        else
                        {
                            PMISupervisor.TestCases.VisitNonTKShopOpenOnce.TPOSM2.Start();
                        }
                    }
                }
            }
            catch {
            }
        }
Example #17
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            openProperties(repo.ProtocolAnalysisDesktop.Transforms);
            Delay.Milliseconds(0);

            toWidescreen(ValueConverter.ArgumentFromString <int>("toLeft", "400"));
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 500ms.", new RecordItemIndex(2));
            Delay.Duration(500, false);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ProtocolAnalysisDesktop.Transforms' at Center.", repo.ProtocolAnalysisDesktop.TransformsInfo, new RecordItemIndex(3));
            repo.ProtocolAnalysisDesktop.Transforms.Click();
            Delay.Milliseconds(200);

            selectTransform(ValueConverter.ArgumentFromString <int>("num", "0"));
            Delay.Milliseconds(0);

            Set_Value_FitMethod_cb("3");
            Delay.Milliseconds(0);

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

            CheckLinerRegression("true");
            Delay.Milliseconds(0);

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

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

            WaitForCalculation();
            Delay.Milliseconds(0);

            WaitForCalculation();
            Delay.Milliseconds(0);

            WaitForCalculation();
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Visible='True') on item 'ResultsAnalysis.ResultsTab'.", repo.ResultsAnalysis.ResultsTabInfo, new RecordItemIndex(13));
            Validate.Attribute(repo.ResultsAnalysis.ResultsTabInfo, "Visible", "True");
            Delay.Milliseconds(0);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            SetIVLinesFlushedRequired(ValueConverter.ArgumentFromString <bool>("stat", IVLineFlushedStat));
            Delay.Milliseconds(0);
        }
Example #19
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            CheckAllTabs(ValueConverter.ArgumentFromString <int>("totalTab", numTabs));
            Delay.Milliseconds(0);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            StartApp();
            Delay.Milliseconds(0);

            AcceptAndContinueWelcomeScreen();
            Delay.Milliseconds(0);

            VerifyActionBarTitle("Country");
            Delay.Milliseconds(0);

            SelectCountry("Rest of World");
            Delay.Milliseconds(0);

            // Step## Select the country location & click on done
            Report.Log(ReportLevel.Info, "Section", "Step## Select the country location & click on done", new RecordItemIndex(4));

            TapOnRightButton("Click on 'Done'");
            Delay.Milliseconds(0);

            VerifyActionBarTitle("Access Code");
            Delay.Milliseconds(0);

            // Step## Enter correct code and press Done
            Report.Log(ReportLevel.Info, "Section", "Step## Enter correct code and press Done", new RecordItemIndex(7));

            EnterCorrectCode(p1, p2, p3);
            Delay.Milliseconds(0);

            DoneAuthenticationScreen();
            Delay.Milliseconds(0);

            // Validation## Code entered successfully message shown with option to Continue
            Report.Log(ReportLevel.Info, "Section", "Validation## Code entered successfully message shown with option to Continue", new RecordItemIndex(10));

            ValidateContentsContains(message, ValueConverter.ArgumentFromString <bool>("isFound", "True"));
            Delay.Milliseconds(0);

            TapContinue();
            Delay.Milliseconds(0);

            TapContinue();
            Delay.Milliseconds(0);

            TapOnOk();
            Delay.Milliseconds(0);
        }
Example #21
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Stepp## Open Touch control and changethe program
            Report.Log(ReportLevel.Info, "Section", "Stepp## Open Touch control and changethe program", new RecordItemIndex(0));

            TapOnProgram();
            Delay.Milliseconds(0);

            TapOn("Program 2");
            Delay.Milliseconds(0);

            // Validation## User should be able to change the programs
            Report.Log(ReportLevel.Info, "Section", "Validation## User should be able to change the programs", new RecordItemIndex(3));

            ValidateContents("Program 2");
            Delay.Milliseconds(0);

            ValidateMuteUnmute(ValueConverter.ArgumentFromString <bool>("muteUnmute", "True"));
            Delay.Milliseconds(0);

            // Step## Click on Mute icon
            Report.Log(ReportLevel.Info, "Section", "Step## Click on Mute icon", new RecordItemIndex(6));

            TapOnMuteUnmute();
            Delay.Milliseconds(0);

            // Validation## A spinner is shown and HI sound is muted according to application control.
            Report.Log(ReportLevel.Info, "Section", "Validation## A spinner is shown and HI sound is muted according to application control.", new RecordItemIndex(8));

            ValidateMuteUnmute(ValueConverter.ArgumentFromString <bool>("muteUnmute", "False"));
            Delay.Milliseconds(0);

            // Step## Change the program The program
            Report.Log(ReportLevel.Info, "Section", "Step## Change the program The program", new RecordItemIndex(10));

            TapOnProgram();
            Delay.Milliseconds(0);

            TapOn("Program 1");
            Delay.Milliseconds(0);

            // Validation## The program is changed successfully. Mute functionality should not be retained
            Report.Log(ReportLevel.Info, "Section", "Validation## The program is changed successfully. Mute functionality should not be retained", new RecordItemIndex(13));

            ValidateMuteUnmute(ValueConverter.ArgumentFromString <bool>("muteUnmute", "True"));
            Delay.Milliseconds(0);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.RCTUIImageViewAnimated1' at Center", repo.ComPentairPentairhome.RCTUIImageViewAnimated1Info, new RecordItemIndex(0));
            repo.ComPentairPentairhome.RCTUIImageViewAnimated1.Touch();
            Delay.Milliseconds(300);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 5s.", new RecordItemIndex(1));
            Delay.Duration(5000, false);

            Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.FreezeProtection' at Center", repo.ComPentairPentairhome.FreezeProtectionInfo, new RecordItemIndex(2));
            repo.ComPentairPentairhome.FreezeProtection.Touch();
            Delay.Milliseconds(300);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 3s.", new RecordItemIndex(3));
            Delay.Duration(3000, false);

            Report.Log(ReportLevel.Info, "Touch gestures", "Swipe gesture with direction 'Up (270°)' starting from 'Center' with distance '100' with swipe duration'800ms' and step count '0' on item 'ComPentairPentairhome.PumpSpeed'.", repo.ComPentairPentairhome.PumpSpeedInfo, new RecordItemIndex(4));
            repo.ComPentairPentairhome.PumpSpeed.Swipe(Location.Center, ValueConverter.ArgumentFromString <Ranorex.Core.Recorder.Touch.GestureDirection>("SwipeDirection", "Up (270°)"), ValueConverter.ArgumentFromString <Ranorex.Core.Distance>("Distance", "100"), ValueConverter.ArgumentFromString <Ranorex.Duration>("SwipeDuration", "800ms"), 0);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.Speed2' at Center", repo.ComPentairPentairhome.Speed2Info, new RecordItemIndex(5));
            repo.ComPentairPentairhome.Speed2.Touch();
            Delay.Milliseconds(300);

            Report.Log(ReportLevel.Info, "Touch gestures", "Swipe gesture with direction 'Down (90°)' starting from 'Center' with distance '100' with swipe duration'800ms' and step count '0' on item 'ComPentairPentairhome.PumpSpeed'.", repo.ComPentairPentairhome.PumpSpeedInfo, new RecordItemIndex(6));
            repo.ComPentairPentairhome.PumpSpeed.Swipe(Location.Center, ValueConverter.ArgumentFromString <Ranorex.Core.Recorder.Touch.GestureDirection>("SwipeDirection", "Down (90°)"), ValueConverter.ArgumentFromString <Ranorex.Core.Distance>("Distance", "100"), ValueConverter.ArgumentFromString <Ranorex.Duration>("SwipeDuration", "800ms"), 0);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Touch gestures", "Swipe gesture with direction 'Left (180°)' starting from 'Center' with distance '100' with swipe duration'100ms' and step count '0' on item 'ComPentairPentairhome.RCTView11'.", repo.ComPentairPentairhome.RCTView11Info, new RecordItemIndex(7));
            repo.ComPentairPentairhome.RCTView11.Swipe(Location.Center, ValueConverter.ArgumentFromString <Ranorex.Core.Recorder.Touch.GestureDirection>("SwipeDirection", "Left (180°)"), ValueConverter.ArgumentFromString <Ranorex.Core.Distance>("Distance", "100"), ValueConverter.ArgumentFromString <Ranorex.Duration>("SwipeDuration", "100ms"), 0);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 1s.", new RecordItemIndex(8));
            Delay.Duration(1000, false);

            Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.RCTView11' at Center", repo.ComPentairPentairhome.RCTView11Info, new RecordItemIndex(9));
            repo.ComPentairPentairhome.RCTView11.Touch();
            Delay.Milliseconds(300);

            Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.AssetsSrcCommonFeatureImagesIconBac' at Center", repo.ComPentairPentairhome.AssetsSrcCommonFeatureImagesIconBacInfo, new RecordItemIndex(10));
            repo.ComPentairPentairhome.AssetsSrcCommonFeatureImagesIconBac.Touch();
            Delay.Milliseconds(300);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 10s.", new RecordItemIndex(11));
            Delay.Duration(10000, false);
        }
        public static void chooseNonTKShopFromList()
        {
            string lastitembeforeswipe = "";
            string lastitemafterswipe  = "";
            bool   flag      = false;
            var    shopslist = repo.PkComTradetracker.ShopsList.Children.ToList();

            foreach (var shop in shopslist)
            {
                var    shopname = shop.Children.ToList();
                string shoptype = Convert.ToString(shopname[1]);
                if (shoptype.Contains("Non-TK"))
                {
                    shop.Touch();
                    TradeTrackerProject.TestCases.Non_TK_ShopOpen.VisitShopOpen.Start();
                    flag = true;
                    break;
                }
            }
            if (flag != true)
            {
                try{
                    while (true)
                    {
                        var lastitemcontainerbeforeswipe = repo.PkComTradetracker.ShopsList.Children.Last();
                        var containeritemsbeforeswipe    = lastitemcontainerbeforeswipe.Children.ToList();
                        lastitembeforeswipe = Convert.ToString(containeritemsbeforeswipe[1]);
                        repo.PkComTradetracker.ShopsList.Swipe(Location.Center, ValueConverter.ArgumentFromString <Ranorex.Core.Recorder.Touch.GestureDirection>("SwipeDirection", "Up (270°)"), ValueConverter.ArgumentFromString <Ranorex.Core.Distance>("Distance", ".147"), ValueConverter.ArgumentFromString <Ranorex.Duration>("SwipeDuration", "500ms"), 0);
                        Delay.Milliseconds(2000);
                        var lastitemcontainerafterswipe = repo.PkComTradetracker.ShopsList.Children.Last();
                        var containeritemsafterswipe    = lastitemcontainerafterswipe.Children.ToList();
                        lastitemafterswipe = Convert.ToString(containeritemsafterswipe[1]);
                        if (lastitembeforeswipe == lastitemafterswipe)
                        {
                            TradeTrackerProject.TestCases.TK_ShopOpen.ChooseTKShop.Start();
                            break;
                        }
                        else
                        {
                            if (lastitemafterswipe.Contains("Non-TK"))
                            {
                                lastitemcontainerafterswipe.Touch();
                                TradeTrackerProject.TestCases.Non_TK_ShopOpen.VisitShopOpen.Start();
                                break;
                            }
                        }
                    }
                }
                catch {
                }
            }
        }
Example #24
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Bis.Putty.GetFromScreen("БАЗОВЫЙ ", ValueConverter.ArgumentFromString <int>("len", "6"), "controlVar");
            Delay.Milliseconds(0);

            Bis.Putty.PrintTextFromScreen("controlVar");
            Delay.Milliseconds(0);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Website", "Opening web site 'https://integration.telecare.signia-pro.com/' with browser 'Chrome' in maximized mode.", new RecordItemIndex(0));
            Host.Local.OpenBrowser("https://integration.telecare.signia-pro.com/", "Chrome", "", false, true, false, false, false);
            Delay.Milliseconds(0);

            Login("*****@*****.**", "123456");
            Delay.Milliseconds(0);

            SelectHCP(HCPUserName);
            Delay.Milliseconds(0);

            ClickOnSettingsOption("Connect to myHearing");
            Delay.Milliseconds(0);

            ReadConnectionCode();
            Delay.Milliseconds(0);

            Logout();
            Delay.Milliseconds(0);

            //CloseBrowser();
            //Delay.Milliseconds(0);

            ModuleLessonSelection("Module4", ValueConverter.ArgumentFromString <int>("lessonNumber", "3"));
            Delay.Milliseconds(0);

            //SelectModuleLesson("Module3", ValueConverter.ArgumentFromString<int>("lessonNumber", "1"), "A group conversation at A train station");
            //Delay.Milliseconds(0);

            //SelectModuleLesson("Module4", ValueConverter.ArgumentFromString<int>("lessonNumber", "1"), "A group conversation at A train station");
            //Delay.Milliseconds(0);

            //SelectModuleLesson("Module2", ValueConverter.ArgumentFromString<int>("lessonNumber", "2"), "A group conversation at A train station");
            //Delay.Milliseconds(0);

            //SelectModuleLesson("Module3", ValueConverter.ArgumentFromString<int>("lessonNumber", "2"), "A group conversation at A train station");
            //Delay.Milliseconds(0);

            //Report.Log(ReportLevel.Info, "Application", "Closing application containing item 'STAGINGSigniaTeleCarePortal'.", repo.STAGINGSigniaTeleCarePortal.SelfInfo, new RecordItemIndex(12));
            //Host.Local.CloseApplication(repo.STAGINGSigniaTeleCarePortal.Self, new Duration(0));
            //Delay.Milliseconds(0);
        }
Example #26
0
        public void Swipe_gesture_Hours(RepoItemInfo iospickerInfo)
        {
            String check    = "1";
            bool   areEqual = String.Equals(TimerHrs, check, StringComparison.OrdinalIgnoreCase);

            if (areEqual == false)
            {
                Report.Log(ReportLevel.Info, "Touch gestures", "Swipe gesture with direction 'Up (270°)' starting from 'Center' with distance '.1' with swipe duration'500ms' and step count '0' on item 'iospickerInfo'.", iospickerInfo);
                iospickerInfo.FindAdapter <IosPicker>().Swipe(Location.Center, ValueConverter.ArgumentFromString <Ranorex.Core.Recorder.Touch.GestureDirection>("SwipeDirection", "Up (270°)"), ValueConverter.ArgumentFromString <Ranorex.Core.Distance>("Distance", ".1"), ValueConverter.ArgumentFromString <Ranorex.Duration>("SwipeDuration", "500ms"), 0);
            }
            else
            {
                Report.Log(ReportLevel.Info, "Touch gestures", "Swipe gesture with direction 'Down (90°)' starting from 'Center' with distance '.1' with swipe duration'500ms' and step count '0' on item 'iospickerInfo'.", iospickerInfo);
                iospickerInfo.FindAdapter <IosPicker>().Swipe(Location.Center, ValueConverter.ArgumentFromString <Ranorex.Core.Recorder.Touch.GestureDirection>("SwipeDirection", "Down (90°)"), ValueConverter.ArgumentFromString <Ranorex.Core.Distance>("Distance", ".1"), ValueConverter.ArgumentFromString <Ranorex.Duration>("SwipeDuration", "500ms"), 0);
            }
        }
Example #27
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            TapOnHome();
            Delay.Milliseconds(0);

            TapOn("My Hearing Aid");
            Delay.Milliseconds(0);

            TapOn("User Guide");
            Delay.Milliseconds(0);

            ValidateActionBarTitle("User Guide");
            Delay.Milliseconds(0);

            TapOn("Imprint");
            Delay.Milliseconds(0);

            TapOn("Imprint");
            Delay.Milliseconds(0);

            ValidateActionBarTitle("Imprint");
            Delay.Milliseconds(0);

            SwipePageVerticle(ValueConverter.ArgumentFromString <int>("count", "3"), ValueConverter.ArgumentFromString <double>("startY", "0.6"), ValueConverter.ArgumentFromString <double>("endY", "0.2"), ValueConverter.ArgumentFromString <bool>("takeScreenshot", "True"));
            Delay.Milliseconds(0);

            ValidateContentsWithDesc("Sivantos Pte. Ltd.;28 Ayer Rajah Crescent #06-08;Singapore 139959;Phone:+65 6370 9666;Fax:+65 6773 8070;[email protected];RCB No. 198600657G", ValueConverter.ArgumentFromString <bool>("takeScreenshot", "False"));
            Delay.Milliseconds(0);

            ValidateContentsWithDesc("Trademark License of Siemens AG", ValueConverter.ArgumentFromString <bool>("takeScreenshot", "False"));
            Delay.Milliseconds(0);

            ValidateContentsWithDesc("Sivantos Pte. Ltd. 2017 All Rights Reserved", ValueConverter.ArgumentFromString <bool>("takeScreenshot", "False"));
            Delay.Milliseconds(0);

            ValidateContentsWithDesc("Made in Germany", ValueConverter.ArgumentFromString <bool>("takeScreenshot", "False"));
            Delay.Milliseconds(0);

            ValidateContentsWithDesc("CE0123", ValueConverter.ArgumentFromString <bool>("takeScreenshot", "False"));
            Delay.Milliseconds(0);
        }
Example #28
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 0;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 0.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'PreOperativeForm.PreOpAssessment_Form.MedicalSurgicalHistorySection.Habits_Tab' at Center.", repo.PreOperativeForm.PreOpAssessment_Form.MedicalSurgicalHistorySection.Habits_TabInfo, new RecordItemIndex(0));
            repo.PreOperativeForm.PreOpAssessment_Form.MedicalSurgicalHistorySection.Habits_Tab.Click();

            Set_DoYouSmoke(DoYouSmoke_Status);

            Set_DrinkAlcohol(DrinkAlcohol_Status, ValueConverter.ArgumentFromString <int>("units", DrinkAlcohol_Units), DrinkAlcohol_Note);

            Set_OtherDependencies(OtherDependencies_Status, OtherDependencies_Note);
        }
Example #29
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            // Click on Review Round
            Report.Log(ReportLevel.Info, "Mouse", "Click on Review Round\r\nMouse Left Click item 'MainWindow.SavingReview.ReviewRound' at Center.", repo.MainWindow.SavingReview.ReviewRoundInfo, new RecordItemIndex(0));
            repo.MainWindow.SavingReview.ReviewRound.Click();
            Delay.Milliseconds(200);

            // Select Discharge  item
            SAFERSleepAPCollection.SelectReviewRound(ValueConverter.ArgumentFromString <int>("ReviewRound", "3"), repo.MainWindow.SavingReview.ReviewRoundInfo);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'MainWindow.SavingReview.Discharge.Printer_DisSummary' at Center.", repo.MainWindow.SavingReview.Discharge.Printer_DisSummaryInfo, new RecordItemIndex(2));
            repo.MainWindow.SavingReview.Discharge.Printer_DisSummary.Click();
            Delay.Milliseconds(200);

            // Select Printer for Dischagre Summary
            SAFERSleepAPCollection.SelectComboboxItems(Printer, repo.MainWindow.SavingReview.Discharge.Printer_DisSummaryInfo);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'MainWindow.SavingReview.Discharge.Printer_DisIntruction' at Center.", repo.MainWindow.SavingReview.Discharge.Printer_DisIntructionInfo, new RecordItemIndex(4));
            repo.MainWindow.SavingReview.Discharge.Printer_DisIntruction.Click();
            Delay.Milliseconds(200);

            // Select Printer for Dischagre  Instruction
            SAFERSleepAPCollection.SelectComboboxItems(Printer, repo.MainWindow.SavingReview.Discharge.Printer_DisIntructionInfo);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'MainWindow.SavingReview.Discharge.Template' at Center.", repo.MainWindow.SavingReview.Discharge.TemplateInfo, new RecordItemIndex(6));
            repo.MainWindow.SavingReview.Discharge.Template.Click();
            Delay.Milliseconds(200);

            // Select a template
            SAFERSleepAPCollection.SelectComboboxItems(Template, repo.MainWindow.SavingReview.Discharge.TemplateInfo);
            Delay.Milliseconds(0);

            // Click on Save and Print
            Report.Log(ReportLevel.Info, "Mouse", "Click on Save and Print\r\nMouse Left Click item 'MainWindow.SavingReview.Print_Save' at Center.", repo.MainWindow.SavingReview.Print_SaveInfo, new RecordItemIndex(8));
            repo.MainWindow.SavingReview.Print_Save.Click();
            Delay.Milliseconds(200);
        }
Example #30
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Touch", "Touch item 'Dom.ServiciosDeITR' at Center", repo.Dom.ServiciosDeITRInfo, new RecordItemIndex(0));
            repo.Dom.ServiciosDeITR.Touch();
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Wait", "Waiting 30s to exist. Associated repository item: 'Dom.Servicios'", repo.Dom.ServiciosInfo, new ActionTimeout(30000), new RecordItemIndex(1));
            repo.Dom.ServiciosInfo.WaitForExists(30000);

            Report.Log(ReportLevel.Info, "Wait", "Waiting 30s to exist. Associated repository item: 'Dom.DesignThinking'", repo.Dom.DesignThinkingInfo, new ActionTimeout(30000), new RecordItemIndex(2));
            repo.Dom.DesignThinkingInfo.WaitForExists(30000);

            try {
                Report.Log(ReportLevel.Info, "Touch gestures", "(Optional Action)\r\nSwipe gesture with direction 'Up (270°)' starting from 'Center' with distance '0' with swipe duration'500ms' and step count '0' on item 'Dom.DesignThinking'.", repo.Dom.DesignThinkingInfo, new RecordItemIndex(3));
                repo.Dom.DesignThinking.Swipe(Location.Center, ValueConverter.ArgumentFromString <Ranorex.Core.Recorder.Touch.GestureDirection>("SwipeDirection", "Up (270°)"), ValueConverter.ArgumentFromString <Ranorex.Core.Distance>("Distance", "0"), ValueConverter.ArgumentFromString <Ranorex.Duration>("SwipeDuration", "500ms"), 0);
                Delay.Milliseconds(500);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(3)); }

            Report.Log(ReportLevel.Info, "Touch", "Touch item 'Dom.DesignThinking' at Center", repo.Dom.DesignThinkingInfo, new RecordItemIndex(4));
            repo.Dom.DesignThinking.Touch();
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Wait", "Waiting 30s to exist. Associated repository item: 'Dom.Testing'", repo.Dom.TestingInfo, new ActionTimeout(30000), new RecordItemIndex(5));
            repo.Dom.TestingInfo.WaitForExists(30000);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 5s.", new RecordItemIndex(6));
            Delay.Duration(5000, false);

            try {
                Report.Log(ReportLevel.Info, "Touch gestures", "(Optional Action)\r\nSwipe gesture with direction 'Up (270°)' starting from 'Center' with distance '.1' with swipe duration'500ms' and step count '0' on item 'Dom.ImgTagImgIconTestingAutomatizadoS'.", repo.Dom.ImgTagImgIconTestingAutomatizadoSInfo, new RecordItemIndex(7));
                repo.Dom.ImgTagImgIconTestingAutomatizadoS.Swipe(Location.Center, ValueConverter.ArgumentFromString <Ranorex.Core.Recorder.Touch.GestureDirection>("SwipeDirection", "Up (270°)"), ValueConverter.ArgumentFromString <Ranorex.Core.Distance>("Distance", ".1"), ValueConverter.ArgumentFromString <Ranorex.Duration>("SwipeDuration", "500ms"), 0);
                Delay.Milliseconds(500);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(7)); }

            Report.Log(ReportLevel.Info, "Wait", "Waiting 30s to exist. Associated repository item: 'Dom.TestingAutomatizado'", repo.Dom.TestingAutomatizadoInfo, new ActionTimeout(30000), new RecordItemIndex(8));
            repo.Dom.TestingAutomatizadoInfo.WaitForExists(30000);

            Report.Screenshot(ReportLevel.Info, "User", "", repo.Dom.Self, false, new RecordItemIndex(9));
        }