C# Class VisualUIAVerify.Features.AutomationTest

class encapsulating automation test
Datei anzeigen Open project: geeksree/cSharpGeeks Class Usage Examples

Public Properties

Property Type Description
Method System.Reflection.MethodInfo
TestCaseAttribute Microsoft.Test.UIAutomation.TestManager.TestCaseAttribute

Public Methods

Method Description
AutomationTest ( AutomationTest originalTest, TestPriorities testPriority, TestTypes testType ) : System

initializes new instance with the testPriority and testType

AutomationTest ( Microsoft.Test.UIAutomation.TestManager testCaseAttribute, MethodInfo method ) : System

initializes new instance, extracts test priority and test type

Equals ( object obj ) : bool

this method is used for comparison of two instances of automation tests. Two tests are consideded equal if both are the same method of the same class and there is assigned the same TestType.

GetHashCode ( ) : int

have to override because the compiler warning which is treated as error

IsControlTestForControlType ( string ControlTypeName ) : bool

Gets true if the test is ControlType test for ControlTypeName

IsPatternTestForSupportedPatterns ( string PatternName ) : bool

Gets true if the test is Pattern test for PatternName

Private Methods

Method Description
ExtractTestType ( ) : void

This method extracts test type of the test.

ReadTestPriority ( ) : void

This method translates WUILib.TestCaseAttribute.Priority to TestPriority enum value.

Method Details

AutomationTest() public method

initializes new instance with the testPriority and testType
public AutomationTest ( AutomationTest originalTest, TestPriorities testPriority, TestTypes testType ) : System
originalTest AutomationTest
testPriority TestPriorities
testType TestTypes
return System

AutomationTest() public method

initializes new instance, extracts test priority and test type
public AutomationTest ( Microsoft.Test.UIAutomation.TestManager testCaseAttribute, MethodInfo method ) : System
testCaseAttribute Microsoft.Test.UIAutomation.TestManager
method System.Reflection.MethodInfo
return System

Equals() public method

this method is used for comparison of two instances of automation tests. Two tests are consideded equal if both are the same method of the same class and there is assigned the same TestType.
public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

have to override because the compiler warning which is treated as error
public GetHashCode ( ) : int
return int

IsControlTestForControlType() public method

Gets true if the test is ControlType test for ControlTypeName
public IsControlTestForControlType ( string ControlTypeName ) : bool
ControlTypeName string
return bool

IsPatternTestForSupportedPatterns() public method

Gets true if the test is Pattern test for PatternName
public IsPatternTestForSupportedPatterns ( string PatternName ) : bool
PatternName string
return bool

Property Details

Method public_oe property

Method reflection info.
public MethodInfo,System.Reflection Method
return System.Reflection.MethodInfo

TestCaseAttribute public_oe property

TestCaseAttribute
public TestCaseAttribute,Microsoft.Test.UIAutomation.TestManager TestCaseAttribute
return Microsoft.Test.UIAutomation.TestManager.TestCaseAttribute