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

            Init();

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

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

            //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FSWModule_Repo.Instrument_Selection_Textbox' at Center.", repo.FSWModule_Repo.Instrument_Selection_TextboxInfo, new RecordItemIndex(2));
            //repo.FSWModule_Repo.Instrument_Selection_Textbox.Click();
            //Delay.Milliseconds(200);

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

            Change_Default_Language_UserCodeCollection.EnterDevicename(txtDevicename);
            Delay.Milliseconds(0);

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

            Change_Default_Language_UserCodeCollection.Select_Device(txtDevicename);
            Delay.Milliseconds(0);

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

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

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

            Report.Log(ReportLevel.Info, "Wait", "Waiting 5s for the attribute 'Visible' to equal the specified value 'True'. Associated repository item: 'FSWModule_Repo.PARTContinueButton'", repo.FSWModule_Repo.PARTContinueButtonInfo, new RecordItemIndex(10));
            repo.FSWModule_Repo.PARTContinueButtonInfo.WaitForAttributeEqual(5000, "Visible", "True");

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

            Report.Log(ReportLevel.Info, "Wait", "Waiting 30s for the attribute 'Visible' to equal the specified value 'True'. Associated repository item: 'FSWModule_Repo.NavigationAutomationIdsMainAutomationId'", repo.FSWModule_Repo.NavigationAutomationIdsMainAutomationIdInfo, new RecordItemIndex(12));
            repo.FSWModule_Repo.NavigationAutomationIdsMainAutomationIdInfo.WaitForAttributeEqual(30000, "Visible", "True");

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

            Init();

            Change_Default_Language_UserCodeCollection.X_Click();
            Delay.Milliseconds(0);

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

            Change_Default_Language_UserCodeCollection.X_Click();
            Delay.Milliseconds(0);

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

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

            Init();

            Change_Default_Language_UserCodeCollection.Mouse_Clicks();
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'Popup.Thumb' at 7;28.", repo.Popup.ThumbInfo, new RecordItemIndex(1));
            repo.Popup.Thumb.MoveTo("7;28");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'Popup.Thumb' at 4;-133.", repo.Popup.ThumbInfo, new RecordItemIndex(2));
            repo.Popup.Thumb.MoveTo("4;-133");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse scroll Vertical by -240 units.", new RecordItemIndex(3));
            Mouse.ScrollWheel(-240);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse scroll Vertical by 600 units.", new RecordItemIndex(4));
            Mouse.ScrollWheel(600);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse scroll Vertical by -600 units.", new RecordItemIndex(5));
            Mouse.ScrollWheel(-600);
            Delay.Milliseconds(500);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse scroll Vertical by 840 units.", new RecordItemIndex(6));
            Mouse.ScrollWheel(840);
            Delay.Milliseconds(500);

            //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Popup.Thumb' at 6;100.", repo.Popup.ThumbInfo, new RecordItemIndex(7));
            //repo.Popup.Thumb.Click("6;100");
            //Delay.Milliseconds(200);

            //Report.Log(ReportLevel.Info, "Mouse", "Mouse scroll Vertical by 120 units.", new RecordItemIndex(8));
            //Mouse.ScrollWheel(120);
            //Delay.Milliseconds(500);

            //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Popup.PARTUpLeftRepeatButton' at 4;2.", repo.Popup.PARTUpLeftRepeatButtonInfo, new RecordItemIndex(9));
            //repo.Popup.PARTUpLeftRepeatButton.Click("4;2");
            //Delay.Milliseconds(200);

            Change_Default_Language_UserCodeCollection.EnglishCombo_click();
            Delay.Milliseconds(0);

            Change_Default_Language_UserCodeCollection.Save_button_Click();
            Delay.Milliseconds(0);

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

            Change_Default_Language_UserCodeCollection.X_Click();
            Delay.Milliseconds(0);

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

            Change_Default_Language_UserCodeCollection.Exit_withOut_Saving_Button();
            Delay.Milliseconds(0);
        }