Example #1
0
        /// <summary>
        /// This method will show window and run all tests previously added by Add Test method.
        /// </summary>
        internal void ShowAndRunTests(AutomationTestManager manager, IWin32Window parentWindow)
        {
            this._testManager = manager;

            RunTests();

            this.ShowDialog(parentWindow);
        }
Example #2
0
 private void RunSelectedTest()
 {
     try
     {
         Console.WriteLine(_automationTests.SelectedElement.Current.LocalizedControlType);
         AutomationTestManager.RunTest(_automationTests.SelectedTests, _automationTests.SelectedElement, true, this);
         ShowLog();
     }
     catch (Exception)
     {
         // bug: if you select AutomationElement instead of the tests
     }
 }
Example #3
0
 private void _automationTests_RunTestOnAllChildrenRequired(object sender, EventArgs e)
 {
     AutomationTestManager.RunTestOnAllChildren(_automationTests.SelectedTests, _automationTests.SelectedElement, true, this);
     ShowLog();
 }
Example #4
0
 private void RunSelectedTestOnAllChildren()
 {
     AutomationTestManager.RunTestOnAllChildren(_automationTests.SelectedTests, _automationTests.SelectedElement, true, this);
     ShowLog();
 }