C# Class VisualUIAVerify.Features.AutomationTestManager

This class is Controller Design-Pattern class which is responsible for running tests.
Inheritance: IDisposable
Mostra file Open project: TestStack/UIAVerify Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

this method disposes this testManager instance (closes the log).

PerformTest ( AutomationTest test, AutomationElement element ) : TestResults

this method performs automation test on automation element.

RunTest ( IEnumerable automationTests, AutomationElement automationElement, bool TestEvents, IWin32Window parentWindow ) : void

this Method will run automationTests for automationElement

RunTestOnAllChildren ( IEnumerable automationTests, AutomationElement automationElement, bool TestEvents, IWin32Window parentWindow ) : void

this method will run all automationTests on automationElement and all its children.

Private Methods

Method Description
AutomationTestManager ( bool TestEvents, bool TestChildren ) : System

initilizes new instance

ClearTestRunLog ( ) : void

clears the log

GetControlType ( string name ) : ControlType
GetFakeApplicationCommands ( ) : IApplicationCommands

returns fake application command. We are not going to use them

GetProperty ( string name ) : AutomationProperty
GetTestName ( AutomationTest test ) : string

returns name for the test

GetTestSuite ( AutomationTest test ) : string

returns test suite for the test

RunTestInternal ( IEnumerable automationTests, AutomationElement element, IWin32Window parentWindow, AutomationTestManager manager ) : void
SetLogger ( ) : void

opens the log

Method Details

Dispose() public method

this method disposes this testManager instance (closes the log).
public Dispose ( ) : void
return void

PerformTest() public method

this method performs automation test on automation element.
public PerformTest ( AutomationTest test, AutomationElement element ) : TestResults
test AutomationTest
element System.Windows.Automation.AutomationElement
return TestResults

RunTest() public static method

this Method will run automationTests for automationElement
public static RunTest ( IEnumerable automationTests, AutomationElement automationElement, bool TestEvents, IWin32Window parentWindow ) : void
automationTests IEnumerable
automationElement System.Windows.Automation.AutomationElement
TestEvents bool
parentWindow IWin32Window
return void

RunTestOnAllChildren() public static method

this method will run all automationTests on automationElement and all its children.
public static RunTestOnAllChildren ( IEnumerable automationTests, AutomationElement automationElement, bool TestEvents, IWin32Window parentWindow ) : void
automationTests IEnumerable
automationElement System.Windows.Automation.AutomationElement
TestEvents bool
parentWindow IWin32Window
return void