ClassLocationVerificationDescriptor
Definition
Namespace:ArtOfTest.WebAii.Design.IntrinsicTranslators.Silverlight.Descriptors
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[Sentence("Location", "element's {VerificationType} {Comparison} {Left} {Right} {Top} {Bottom}", false)]
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/2.0.0")]
public class LocationVerificationDescriptor : XamlVerificationDescriptor, INotifyPropertyChanged, ICustomTypeDescriptor, IExtensibleDataObject, IInspectWebSettings, IQuickTasks, IExtendedParamEditorInfo, ISentenceListPreview
Inheritance: objectDataBoundObjectAutomationDescriptorVerificationDescriptorXamlVerificationDescriptorLocationVerificationDescriptor
Implements:
Inherited Members
Constructors
LocationVerificationDescriptor()
Declaration
public LocationVerificationDescriptor()
LocationVerificationDescriptor(FrameworkElement, LocationVerificationType, Rectangle)
Declaration
public LocationVerificationDescriptor(FrameworkElement target, LocationVerificationDescriptor.LocationVerificationType verificationType, Rectangle location)
Parameters
target
verificationType
LocationVerificationDescriptor.LocationVerificationType
location
LocationVerificationDescriptor(FrameworkElement, LocationVerificationType, int)
Declaration
public LocationVerificationDescriptor(FrameworkElement target, LocationVerificationDescriptor.LocationVerificationType verificationType, int side)
Parameters
target
verificationType
LocationVerificationDescriptor.LocationVerificationType
side
Properties
Bottom
Declaration
[SentenceParam("bottom?", AutomationDescriptorType.Extraction, IsExtractedValue = true)]
[DataMember(Name = "Bottom")]
public int Bottom { get; set; }
Property Value
Comparison
Declaration
[SentenceParam("comparison?", AutomationDescriptorType.Wait|AutomationDescriptorType.Verification|AutomationDescriptorType.Extraction, StaticValueListMethod = "GetCompareOptions", DisableTextBoxEdit = true)]
[DataMember(Name = "Comparison")]
public string Comparison { get; set; }
Property Value
FriendlyDescription
Get a friendly description of this descriptor to show in the scenario explorer.
Declaration
public override string FriendlyDescription { get; }
Property Value
Overrides
Left
Declaration
[SentenceParam("left?", AutomationDescriptorType.Extraction, IsExtractedValue = true)]
[DataMember(Name = "Left")]
public int Left { get; set; }
Property Value
RelativeTarget
Declaration
public ElementDescriptor RelativeTarget { get; set; }
Property Value
RelativeTargetKey
Gets the relative target key
Declaration
[Browsable(false)]
public virtual string RelativeTargetKey { get; }
Property Value
RequiredAssemblyReferences
Any addition assembly references to be added to the project on code gen.
Declaration
public override string[] RequiredAssemblyReferences { get; }
Property Value
string[]
Overrides
Right
Declaration
[SentenceParam("right?", AutomationDescriptorType.Extraction, IsExtractedValue = true)]
[DataMember(Name = "Right")]
public int Right { get; set; }
Property Value
Top
Declaration
[SentenceParam("top?", AutomationDescriptorType.Extraction, IsExtractedValue = true)]
[DataMember(Name = "Top")]
public int Top { get; set; }
Property Value
VerificationType
Declaration
[SentenceParam("reference point?", AutomationDescriptorType.Extraction)]
[DataMember(Name = "VerificationType")]
public LocationVerificationDescriptor.LocationVerificationType VerificationType { get; set; }
Property Value
Methods
ExtractData(IApplication, DescriptorValueStore)
Declaration
public override void ExtractData(IApplication hostApp, DescriptorValueStore dataStore)
Parameters
hostApp
dataStore
Overrides
GeneratePreviewValuesForTarget(DescriptorValueStoreCollection)
Given a target element, generate an array of values for the descriptor implementing this interface.
Declaration
public void GeneratePreviewValuesForTarget(DescriptorValueStoreCollection valuesCollection)
Parameters
valuesCollection
DescriptorValueStoreCollection
Collection to add values to
Implements
GetCompareOptions(SentenceParam)
Declaration
public object GetCompareOptions(SentenceParam sentenceParam)
Parameters
sentenceParam
Returns
GetExtendedEditorInfo(DescriptorValueStore)
Collect additional values for each parameter to be used by the editor
Declaration
public void GetExtendedEditorInfo(DescriptorValueStore valueStore)
Parameters
valueStore
The value store to add values in
Implements
GetExtractDataVerificationType(DescriptorValueStore, Rectangle)
Declaration
public void GetExtractDataVerificationType(DescriptorValueStore dataStore, Rectangle rect)
Parameters
dataStore
rect
OnParameterChanged(SentenceParam, Sentence)
Called when a parameter value has changed
Declaration
public void OnParameterChanged(SentenceParam param, Sentence context)
Parameters
param
The parameter that changed
context
The context/sentence that this parameter is part of.
Implements
OnSentenceLoad(Sentence)
Called when the sentence is first loaded. Allows for setting initial values for each sentence if needed
Declaration
public void OnSentenceLoad(Sentence context)
Parameters
context
The sentence context.
Implements
ToCode()
This method is called when the user requests code generation. The framework initializes the TestMethod property of this object with a new instance that this method simply needs to add its custom codegen to it.
Declaration
public override void ToCode()
Overrides
Verify(DescriptorValueStore)
Given a value store, verify against the constraints defined by this descriptor
Declaration
public override VerificationResult Verify(DescriptorValueStore dataStore)
Parameters
dataStore
The data store were values are captured
Returns
The verification result.
Overrides