Class
TranslatorGroup

Definition

Namespace:ArtOfTest.Common.Design.Extensibility

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public abstract class TranslatorGroup : BaseInterfaceInterrogator, IInterfaceInterrogator, IComparable<TranslatorGroup>, INotifyPropertyChanged

Inheritance: objectBaseInterfaceInterrogatorTranslatorGroup

Derived Classes: SilverlightComplexTranslatorGroupSilverlightSimpleTranslatorGroupWpfComplexTranslatorGroupWpfSimpleTranslatorGroup

Implements: IComparable<TranslatorGroup>IInterfaceInterrogatorINotifyPropertyChanged

Inherited Members BaseInterfaceInterrogator.MatchMaskBaseInterfaceInterrogator.ActionTranslatorBaseInterfaceInterrogator.UICueProviderBaseInterfaceInterrogator.VerificationProviderBaseInterfaceInterrogator.HasActionTranslatorBaseInterfaceInterrogator.HasUICueProviderBaseInterfaceInterrogator.HasVerificationProvider

Constructors

TranslatorGroup()

Create a new translator group

Declaration

cs-api-definition
public TranslatorGroup()

Properties

Enabled

Gets/Sets whether this group is enabled or not.

Declaration

cs-api-definition
public bool Enabled { get; set; }

Property Value

bool

IdentifyColor

Gets or sets the color to use to identify the element on the recording surface

Declaration

cs-api-definition
public virtual Color IdentifyColor { get; set; }

Property Value

Color

IdentifyIcon

Gets or sets the icon to use to identify this group when identified on the recording surface.

Declaration

cs-api-definition
public virtual Image IdentifyIcon { get; }

Property Value

Image

ImportStatements

Gets the list of import statements to add for a code behind file.

Declaration

cs-api-definition
public virtual Dictionary<TestType, string[]> ImportStatements { get; }

Property Value

Dictionary<TestType, string[]>

Name

The name of this recording group.

Declaration

cs-api-definition
public abstract string Name { get; }

Property Value

string

Order

The order in which this recording group recieves recording commands and ui messages. 0 is the lowest order. The lowest order gets to translate last.

Declaration

cs-api-definition
public abstract int Order { get; }

Property Value

int

TechnologyType

Technology type of this translator group

Declaration

cs-api-definition
public abstract TechnologyType TechnologyType { get; }

Property Value

TechnologyType

Translators

The list of translators contained in this group. (Implement IControlLocator)

Declaration

cs-api-definition
public IList<IControlLocator> Translators { get; }

Property Value

IList<IControlLocator>

TypeMappings

Gets the list of type mappings to use for this group.

Declaration

cs-api-definition
public virtual Dictionary<string, string> TypeMappings { get; }

Property Value

Dictionary<string, string>

Version

The version of this group.

Declaration

cs-api-definition
public abstract string Version { get; }

Property Value

string

Methods

CompareTo(TranslatorGroup)

Compare two groups and return the one with the highest grouping order (0 is the lowest)

Declaration

cs-api-definition
public int CompareTo(TranslatorGroup other)

Parameters

other

TranslatorGroup

The group to compare to

Returns

int

The comparison result

Implements IComparable<TranslatorGroup>.CompareTo(TranslatorGroup)

Equals(object)

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

Returns

bool

Overrides object.Equals(object)

GetHashCode()

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Overrides object.GetHashCode()

LoadLocators()

Load the translators of this group in the order you want.

Declaration

cs-api-definition
public abstract void LoadLocators()

MatchTranslator(ITargetElement, TranslatorSupportTypes, bool)

Match the translator against the element.

Declaration

cs-api-definition
public virtual IControlLocator MatchTranslator(ITargetElement elementToMatch, TranslatorSupportTypes typeToMatch, bool elementIsTarget)

Parameters

elementToMatch

ITargetElement

typeToMatch

TranslatorSupportTypes

elementIsTarget

bool

Returns

IControlLocator

Events

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged