/// <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); }
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 } }
private void _automationTests_RunTestOnAllChildrenRequired(object sender, EventArgs e) { AutomationTestManager.RunTestOnAllChildren(_automationTests.SelectedTests, _automationTests.SelectedElement, true, this); ShowLog(); }
private void RunSelectedTestOnAllChildren() { AutomationTestManager.RunTestOnAllChildren(_automationTests.SelectedTests, _automationTests.SelectedElement, true, this); ShowLog(); }