/// <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() { int maxNumber = TestSuite.Current.GetTestContainer(nameSmartFolder).DataContext.Source.Rows.Count; Random rnd = new Random(); string randomRowIndex = rnd.Next(1, maxNumber + 1).ToString(); TestSuite.Current.GetTestContainer(nameSmartFolder).DataContext.SetRange(DataRangeSet.Parse(randomRowIndex)); }
/// <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 = 0; Keyboard.DefaultKeyPressTime = 0; Delay.SpeedFactor = 0.0; TestSuite.Current.GetTestContainer(nameOfSmartFolder).DataContext.SetRange(DataRangeSet.Parse(rangeToBeSetInSmartFolder)); }