C# Класс VisualUIAVerify.Features.AutomationTest

class encapsulating automation test
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Method System.Reflection.MethodInfo
TestCaseAttribute Microsoft.Test.UIAutomation.TestManager.TestCaseAttribute

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
ExtractTestType ( ) : void

This method extracts test type of the test.

ReadTestPriority ( ) : void

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

Описание методов

AutomationTest() публичный Метод

initializes new instance with the testPriority and testType
public AutomationTest ( AutomationTest originalTest, TestPriorities testPriority, TestTypes testType ) : System
originalTest AutomationTest
testPriority TestPriorities
testType TestTypes
Результат System

AutomationTest() публичный Метод

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
Результат System

Equals() публичный Метод

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
Результат bool

GetHashCode() публичный Метод

have to override because the compiler warning which is treated as error
public GetHashCode ( ) : int
Результат int

IsControlTestForControlType() публичный Метод

Gets true if the test is ControlType test for ControlTypeName
public IsControlTestForControlType ( string ControlTypeName ) : bool
ControlTypeName string
Результат bool

IsPatternTestForSupportedPatterns() публичный Метод

Gets true if the test is Pattern test for PatternName
public IsPatternTestForSupportedPatterns ( string PatternName ) : bool
PatternName string
Результат bool

Описание свойств

Method публичное свойство

Method reflection info.
public MethodInfo,System.Reflection Method
Результат System.Reflection.MethodInfo

TestCaseAttribute публичное свойство

TestCaseAttribute
public TestCaseAttribute,Microsoft.Test.UIAutomation.TestManager TestCaseAttribute
Результат Microsoft.Test.UIAutomation.TestManager.TestCaseAttribute