ClassVerificationDescriptor
Base descriptor for all verifications.
Definition
Namespace:ArtOfTest.Common.Design.Extensibility.Descriptors
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/1.0.0")]
public abstract class VerificationDescriptor : AutomationDescriptor, INotifyPropertyChanged, ICustomTypeDescriptor, IExtensibleDataObject
Inheritance: objectDataBoundObjectAutomationDescriptorVerificationDescriptor
Derived Classes:
Implements:
Inherited Members
Constructors
VerificationDescriptor()
Create a new base verification descriptor
Declaration
public VerificationDescriptor()
VerificationDescriptor(ITargetElement)
Create a verification descriptor
Declaration
public VerificationDescriptor(ITargetElement target)
Parameters
target
VerificationDescriptor(string, ITargetElement)
Create a new base verification descriptor
Declaration
public VerificationDescriptor(string name, ITargetElement target)
Parameters
name
target
Properties
CheckInterval
Gets or sets the check interval for a sync.
Declaration
[DataMember(Name = "CheckInterval")]
public virtual int CheckInterval { get; set; }
Property Value
DataBindVariableName
Gets or sets the sync time out.
Declaration
[DataMember(Name = "DataBindVariableName", IsRequired = false)]
[PrimaryProperty(AutomationDescriptorType.Wait|AutomationDescriptorType.Verification)]
public virtual string DataBindVariableName { get; set; }
Property Value
EnsureStateIsCurrent
Determines whether to make sure the verification is performed over the current target.
Declaration
[DataMember(Name = "EnsureStateIsCurrent", IsRequired = false)]
public virtual bool EnsureStateIsCurrent { get; set; }
Property Value
IsWaitOnly
Gets whether this descriptor can only be used for sync.
Declaration
[Browsable(false)]
public virtual bool IsWaitOnly { get; }
Property Value
SupportsConvertToCode
Whether the descriptor supports convert to code or not.
Declaration
[Browsable(false)]
public override bool SupportsConvertToCode { get; }
Property Value
Overrides
SupportsExtraction
Declaration
[Browsable(false)]
public virtual bool SupportsExtraction { get; }
Property Value
SupportsWait
Gets whether this verification descriptor supports syncs.
Methods
EnsureTargetsAreCurrent()
Ensures that all targets are current and updated.
Declaration
public virtual void EnsureTargetsAreCurrent()
ExtractData(IAutomationHost, DescriptorValueStore)
Extract verification data from the live Targets.
Declaration
public abstract void ExtractData(IAutomationHost targetHost, DescriptorValueStore dataStore)
Parameters
targetHost
dataStore
GetDescriptionPrefix()
Gets the description prefix to be used by the descriptors FriendlyDescription.
Declaration
public virtual string GetDescriptionPrefix()
Returns
The prefix
PerformWait(IAutomationHost)
Helper routine that can perform a wait until the verification defined by this descriptor passes or the this.Timeout is reached.
Declaration
public virtual VerificationWaitResult PerformWait(IAutomationHost host)
Parameters
host
The host object
Returns
SetRole(VerificationDescriptorRole)
Set the role of this descriptor.
Declaration
public virtual void SetRole(VerificationDescriptorRole role)
Parameters
role
Verify(DescriptorValueStore)
Given a value store, verify against the constraints defined by this descriptor
Declaration
public abstract VerificationResult Verify(DescriptorValueStore dataStore)
Parameters
dataStore
The data store were values are captured
Returns
The verification result.