C# Class Microsoft.Test.UIAutomation.TestRuns

Datei anzeigen Open project: geeksree/cSharpGeeks

Public Methods

Method Description
RunAllControlTests ( AutomationElement element, bool testEvents, TestPriorities priority, TestCaseType testCaseType, bool testChildren, bool normalize, IApplicationCommands commands ) : bool

Run all control tests, pattern tests, and automation element tests

RunAllPatternTests ( AutomationElement element, bool testEvents, TestPriorities priority, TestCaseType testCaseType, bool testChildren, bool normalize, IApplicationCommands commands ) : bool

Run all the supported pattern tests associated with the element and that meet the criteria as supplied as arguments

RunAllTests ( AutomationElement element, bool testEvents, TestPriorities priority, TestCaseType testCaseType, bool testChildren, bool normalize, IApplicationCommands commands ) : bool

Run all the tests for patterns, control type, and AutomationElement that meet the criteria as supplied as arguments

RunAutomationElementTest ( AutomationElement element, bool testEvents, string test, bool testChildren, object arguments, bool normalize, IApplicationCommands commands ) : bool

Run the Automation test as defined by test

RunAutomationElementTests ( AutomationElement element, bool testEvents, TestPriorities priority, TestCaseType testCaseType, bool testChildren, bool normalize, IApplicationCommands commands ) : bool

Run all the AutomationElement tests on the element that meet the criteria as supplied as arguments

RunControlTest ( AutomationElement element, bool testEvents, string testSuite, string test, object arguments, IApplicationCommands commands ) : bool

Run the specified control test by name

RunControlTests ( AutomationElement element, bool testEvents, bool testChildren, TestPriorities priority, TestCaseType testCaseType, IApplicationCommands commands ) : bool

RunPatternTest ( AutomationElement element, bool testEvents, bool testChildren, string testSuite, string test, object arguments, IApplicationCommands commands ) : bool

Run the specified pattern test

RunPatternTests ( AutomationElement element, bool testEvents, TestPriorities priority, TestCaseType testCaseType, string testSuite, IApplicationCommands commands ) : bool

Run all the tests associated with the defined pattern and that meet the criteria as supplied as arguments

RunPatternTests ( AutomationElement element, bool testEvents, bool testChildren, string testSuite, TestCaseType testCaseType, IApplicationCommands commands ) : bool

Run all the tests associated with the pattern as defiend by testSuite

RunScenarioTest ( AutomationElement element, string testSuite, string testName, object arguments, bool testEvents, IApplicationCommands commands ) : bool

Run the specified pattern test

RunScenarioTest ( string testSuite, string testName, object arguments, bool testEvents, IApplicationCommands commands ) : bool

Run the specified scenario test

StopRunningTests ( ) : void
UnRegisterProviderCallback ( ) : void

Calls UiaRegisterProviderCallback(IntPtr.Zero) which unregisters the client side providers.

Private Methods

Method Description
GetHashedElements ( AutomationElement element ) : Hashtable

Generates a hash table. The key is the localized control type. The element is an ArrayList of the actual elements that correspond to the control type.

RunAllControlTestOnDescendants ( AutomationElement element, bool testEvents, bool testChildren, TestPriorities priority, bool normalize, TestCaseType testCaseType, IApplicationCommands commands ) : bool

RunAllPatternTestsOnDescendants ( AutomationElement element, bool testEvents, bool testChildren, TestPriorities priority, bool normalize, TestCaseType testCaseType, IApplicationCommands commands ) : bool

RunAutomationElementTestOnDescendants ( AutomationElement element, bool testEvents, string test, bool testChildren, object arguments, bool normalize, IApplicationCommands commands ) : bool

Recursively tests the children Logical Elements

RunAutomationElementTestsOnDescendants ( AutomationElement element, bool testEvents, bool testChildren, TestPriorities priority, bool normalize, TestCaseType testCaseType, IApplicationCommands commands ) : bool

Recursively tests the children Logical Elements

RunControlTestsOnDescendants ( AutomationElement element, bool testEvents, bool testChildren, TestPriorities priority, TestCaseType testCaseType, IApplicationCommands commands ) : bool
RunPatternTestOnDescendants ( AutomationElement element, bool testEvents, bool testChildren, string testSuite, string test, object arguments, IApplicationCommands commands ) : bool

RunPatternTestsOnDescendants ( AutomationElement element, bool testEvents, bool testChildren, string testSuite, TestCaseType testCaseType, IApplicationCommands commands ) : bool

TestRuns ( ) : System

Defined so it would pass FxCop rules.

UiaRegisterProviderCallback ( IntPtr callback ) : void

Method Details

RunAllControlTests() public static method

Run all control tests, pattern tests, and automation element tests
public static RunAllControlTests ( AutomationElement element, bool testEvents, TestPriorities priority, TestCaseType testCaseType, bool testChildren, bool normalize, IApplicationCommands commands ) : bool
element AutomationElement
testEvents bool
priority TestPriorities
testCaseType TestCaseType
testChildren bool
normalize bool
commands IApplicationCommands
return bool

RunAllPatternTests() public static method

Run all the supported pattern tests associated with the element and that meet the criteria as supplied as arguments
public static RunAllPatternTests ( AutomationElement element, bool testEvents, TestPriorities priority, TestCaseType testCaseType, bool testChildren, bool normalize, IApplicationCommands commands ) : bool
element AutomationElement
testEvents bool
priority TestPriorities
testCaseType TestCaseType
testChildren bool
normalize bool
commands IApplicationCommands
return bool

RunAllTests() public static method

Run all the tests for patterns, control type, and AutomationElement that meet the criteria as supplied as arguments
public static RunAllTests ( AutomationElement element, bool testEvents, TestPriorities priority, TestCaseType testCaseType, bool testChildren, bool normalize, IApplicationCommands commands ) : bool
element AutomationElement
testEvents bool
priority TestPriorities
testCaseType TestCaseType
testChildren bool
normalize bool
commands IApplicationCommands
return bool

RunAutomationElementTest() public static method

Run the Automation test as defined by test
public static RunAutomationElementTest ( AutomationElement element, bool testEvents, string test, bool testChildren, object arguments, bool normalize, IApplicationCommands commands ) : bool
element AutomationElement
testEvents bool
test string
testChildren bool
arguments object
normalize bool
commands IApplicationCommands
return bool

RunAutomationElementTests() public static method

Run all the AutomationElement tests on the element that meet the criteria as supplied as arguments
public static RunAutomationElementTests ( AutomationElement element, bool testEvents, TestPriorities priority, TestCaseType testCaseType, bool testChildren, bool normalize, IApplicationCommands commands ) : bool
element AutomationElement
testEvents bool
priority TestPriorities
testCaseType TestCaseType
testChildren bool
normalize bool
commands IApplicationCommands
return bool

RunControlTest() public static method

Run the specified control test by name
public static RunControlTest ( AutomationElement element, bool testEvents, string testSuite, string test, object arguments, IApplicationCommands commands ) : bool
element AutomationElement
testEvents bool
testSuite string
test string
arguments object
commands IApplicationCommands
return bool

RunControlTests() public static method

public static RunControlTests ( AutomationElement element, bool testEvents, bool testChildren, TestPriorities priority, TestCaseType testCaseType, IApplicationCommands commands ) : bool
element AutomationElement
testEvents bool
testChildren bool
priority TestPriorities
testCaseType TestCaseType
commands IApplicationCommands
return bool

RunPatternTest() public static method

Run the specified pattern test
public static RunPatternTest ( AutomationElement element, bool testEvents, bool testChildren, string testSuite, string test, object arguments, IApplicationCommands commands ) : bool
element AutomationElement
testEvents bool
testChildren bool
testSuite string
test string
arguments object
commands IApplicationCommands
return bool

RunPatternTests() public static method

Run all the tests associated with the defined pattern and that meet the criteria as supplied as arguments
public static RunPatternTests ( AutomationElement element, bool testEvents, TestPriorities priority, TestCaseType testCaseType, string testSuite, IApplicationCommands commands ) : bool
element AutomationElement
testEvents bool
priority TestPriorities
testCaseType TestCaseType
testSuite string
commands IApplicationCommands
return bool

RunPatternTests() public static method

Run all the tests associated with the pattern as defiend by testSuite
public static RunPatternTests ( AutomationElement element, bool testEvents, bool testChildren, string testSuite, TestCaseType testCaseType, IApplicationCommands commands ) : bool
element AutomationElement
testEvents bool
testChildren bool
testSuite string
testCaseType TestCaseType
commands IApplicationCommands
return bool

RunScenarioTest() public static method

Run the specified pattern test
public static RunScenarioTest ( AutomationElement element, string testSuite, string testName, object arguments, bool testEvents, IApplicationCommands commands ) : bool
element AutomationElement
testSuite string
testName string
arguments object
testEvents bool
commands IApplicationCommands
return bool

RunScenarioTest() public static method

Run the specified scenario test
public static RunScenarioTest ( string testSuite, string testName, object arguments, bool testEvents, IApplicationCommands commands ) : bool
testSuite string
testName string
arguments object
testEvents bool
commands IApplicationCommands
return bool

StopRunningTests() public static method

public static StopRunningTests ( ) : void
return void

UnRegisterProviderCallback() public static method

Calls UiaRegisterProviderCallback(IntPtr.Zero) which unregisters the client side providers.
public static UnRegisterProviderCallback ( ) : void
return void