コード例 #1
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;
            MyTestDemoRepository myTest = new MyTestDemoRepository();
            var button = myTest.RxMainFrame.BtnAddPerson;

            button.Click();
        }
コード例 #2
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;

            MyTestDemoRepository myTest = new MyTestDemoRepository();

            if (Validate.Equals(myTest.RxMainFrame.LblNumberOfPersonsNumber.TextValue, itemEntry))
            {
                Report.Success("Validation", "Correct");
            }
            else
            {
                Report.Success("Validation", "Entry number wrong!");
            }
        }