Class
Sentence

The structure representation of a sentence

Definition

Namespace:ArtOfTest.Common.Design.Extensibility

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public sealed class Sentence

Inheritance: objectSentence

Properties

Descriptor

Gets the descriptor associated with this Sentence.

Declaration

cs-api-definition
public AutomationDescriptor Descriptor { get; }

Property Value

AutomationDescriptor

DisplayName

Gets the display name for this sentence.

Declaration

cs-api-definition
public string DisplayName { get; }

Property Value

string

ExtendedEditParamInfo

Exteneded EditParam info

Declaration

cs-api-definition
public DescriptorValueStore ExtendedEditParamInfo { get; }

Property Value

DescriptorValueStore

HasLiveDescriptor

Gets whether the descriptor associated with this sentence has a live descriptor (i.e. has its Targets[] collection initialized with live Elements)

Declaration

cs-api-definition
public bool HasLiveDescriptor { get; }

Property Value

bool

IsExecutionContext

Get whether the sentence is build in the execution context (for instance the logical step execution). ///

Declaration

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

Property Value

bool

IsValid

Whether all the sentence param are set.

Declaration

cs-api-definition
public bool IsValid { get; }

Property Value

bool

Params

Gets the dictionary of params. The key is the parameter PropertyName.

Declaration

cs-api-definition
public IDictionary<string, SentenceParam> Params { get; }

Property Value

IDictionary<string, SentenceParam>

ParamsList

Gets the SentenceParam list of this Sentence (in correct order as per the definition)

Declaration

cs-api-definition
public IList<SentenceParam> ParamsList { get; }

Property Value

IList<SentenceParam>

PreviewString

Get a string representation of this sentence. Ignore properties that are not set

Declaration

cs-api-definition
public string PreviewString { get; }

Property Value

string

The string representation

Methods

AssignDescriptor(AutomationDescriptor)

Assign a descriptor to this sentence

Declaration

cs-api-definition
public void AssignDescriptor(AutomationDescriptor descriptor)

Parameters

descriptor

AutomationDescriptor

Clone()

Clone this sentence

Declaration

cs-api-definition
public Sentence Clone()

Returns

Sentence

CreateNew(AutomationDescriptor, bool, bool)

Given a descriptor, build a sentence from it. Will use the first sentence definition if multiple is defined.

Declaration

cs-api-definition
public static Sentence CreateNew(AutomationDescriptor descriptor, bool throwOnError, bool isExecutionContext)

Parameters

descriptor

AutomationDescriptor

throwOnError

bool

isExecutionContext

bool

Returns

Sentence

GeneratePreviewList()

Generate a list of preview sentences

Declaration

cs-api-definition
public Sentence[] GeneratePreviewList()

Returns

Sentence[]

The list of preview sentences

GetSentenceDefinitions(Type)

Given a type, return any sentence definitions set on it.

Declaration

cs-api-definition
public static SentenceAttribute[] GetSentenceDefinitions(Type type)

Parameters

type

Type

Returns

SentenceAttribute[]

OnLoad()

Called when the UI is about to load this sentence

Declaration

cs-api-definition
public void OnLoad()

PerformVerificationValidation()

If the descritpor associated with this sentence if a VerificationDescriptor and has a live descriptor, this method will perform the validation as if the descriptor is being executed

Declaration

cs-api-definition
public string PerformVerificationValidation()

Returns

string

String.Empty or an error message

PersistToDescriptor()

Persist the values of this sentence to its associated descritpr

Declaration

cs-api-definition
public void PersistToDescriptor()

PopulateExtendEditInfo()

Populates any extended edit parameter info.

Declaration

cs-api-definition
public void PopulateExtendEditInfo()

PopulateParamValues()

Populate the param values of the sentence from the associated descriptor

Declaration

cs-api-definition
public void PopulateParamValues()

PopulateParamValues(DescriptorValueStore, bool)

Given a value store, populate the sentence param values

Declaration

cs-api-definition
public void PopulateParamValues(DescriptorValueStore valuesStore, bool populateMissingValuesFromDescriptor)

Parameters

valuesStore

DescriptorValueStore

The param values (if any) else null

populateMissingValuesFromDescriptor

bool

When set, the function will populate the sentence values from their corresponding descriptor property values. Else will use the valueStore only.

ToString()

The sentence defintion

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()