Class
RecorderHostClient

Definition

Namespace:ArtOfTest.WebAii.Design.UI.RecordingSurface

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public class RecorderHostClient : DuplexClientBase<IHtmlRecorderHost>, ICommunicationObject, IDisposable, IHtmlRecorderHost, IRecorderHost

Inheritance: objectClientBase<IHtmlRecorderHost>DuplexClientBase<IHtmlRecorderHost>RecorderHostClient

Implements: ICommunicationObjectIDisposableIHtmlRecorderHostIRecorderHost

Inherited Members DuplexClientBase<IHtmlRecorderHost>.InnerDuplexChannelClientBase<IHtmlRecorderHost>.GetDefaultValueForInitialization<T>()ClientBase<IHtmlRecorderHost>.Open()ClientBase<IHtmlRecorderHost>.Abort()ClientBase<IHtmlRecorderHost>.Close()ClientBase<IHtmlRecorderHost>.DisplayInitializationUI()ClientBase<IHtmlRecorderHost>.CreateChannel()ClientBase<IHtmlRecorderHost>.InvokeAsync(ClientBase<IHtmlRecorderHost>.BeginOperationDelegate, object[], ClientBase<IHtmlRecorderHost>.EndOperationDelegate, SendOrPostCallback, object)ClientBase<IHtmlRecorderHost>.ChannelClientBase<IHtmlRecorderHost>.CacheSettingClientBase<IHtmlRecorderHost>.ChannelFactoryClientBase<IHtmlRecorderHost>.ClientCredentialsClientBase<IHtmlRecorderHost>.StateClientBase<IHtmlRecorderHost>.InnerChannelClientBase<IHtmlRecorderHost>.Endpoint

Constructors

RecorderHostClient(InstanceContext)

Declaration

cs-api-definition
public RecorderHostClient(InstanceContext callbackContext)

Parameters

callbackContext

InstanceContext

RecorderHostClient(InstanceContext, Binding, EndpointAddress)

Declaration

cs-api-definition
public RecorderHostClient(InstanceContext callbackContext, Binding binding, EndpointAddress remoteAddress)

Parameters

callbackContext

InstanceContext

binding

Binding

remoteAddress

EndpointAddress

RecorderHostClient(InstanceContext, string)

Declaration

cs-api-definition
public RecorderHostClient(InstanceContext callbackContext, string endpointConfigurationName)

Parameters

callbackContext

InstanceContext

endpointConfigurationName

string

RecorderHostClient(InstanceContext, string, EndpointAddress)

Declaration

cs-api-definition
public RecorderHostClient(InstanceContext callbackContext, string endpointConfigurationName, EndpointAddress remoteAddress)

Parameters

callbackContext

InstanceContext

endpointConfigurationName

string

remoteAddress

EndpointAddress

RecorderHostClient(InstanceContext, string, string)

Declaration

cs-api-definition
public RecorderHostClient(InstanceContext callbackContext, string endpointConfigurationName, string remoteAddress)

Parameters

callbackContext

InstanceContext

endpointConfigurationName

string

remoteAddress

string

RecorderHostClient(object)

Declaration

cs-api-definition
public RecorderHostClient(object callbackInstance)

Parameters

callbackInstance

object

RecorderHostClient(object, Binding, EndpointAddress)

Declaration

cs-api-definition
public RecorderHostClient(object callbackInstance, Binding binding, EndpointAddress remoteAddress)

Parameters

callbackInstance

object

binding

Binding

remoteAddress

EndpointAddress

RecorderHostClient(object, string)

Declaration

cs-api-definition
public RecorderHostClient(object callbackInstance, string endpointConfigurationName)

Parameters

callbackInstance

object

endpointConfigurationName

string

RecorderHostClient(object, string, EndpointAddress)

Declaration

cs-api-definition
public RecorderHostClient(object callbackInstance, string endpointConfigurationName, EndpointAddress remoteAddress)

Parameters

callbackInstance

object

endpointConfigurationName

string

remoteAddress

EndpointAddress

RecorderHostClient(object, string, string)

Declaration

cs-api-definition
public RecorderHostClient(object callbackInstance, string endpointConfigurationName, string remoteAddress)

Parameters

callbackInstance

object

endpointConfigurationName

string

remoteAddress

string

Methods

AbortPendingRecord()

Abort a pending record operation

Declaration

cs-api-definition
public void AbortPendingRecord()

Implements IRecorderHost.AbortPendingRecord()

AddIndependentElement(ElementDescriptor, Rectangle)

Add an independent element to the surface

Declaration

cs-api-definition
public void AddIndependentElement(ElementDescriptor element, Rectangle elementLocation)

Parameters

element

ElementDescriptor

Element to add

elementLocation

Rectangle

Element location - used for capturing on the element image.

Implements IRecorderHost.AddIndependentElement(ElementDescriptor, Rectangle)

BringHostToFront()

Front the host

Declaration

cs-api-definition
public void BringHostToFront()

Implements IRecorderHost.BringHostToFront()

ConfirmPendingRecord()

Finalize a pending record operation

Declaration

cs-api-definition
public void ConfirmPendingRecord()

Implements IRecorderHost.ConfirmPendingRecord()

GetDisabledTranslatorGroupNames()

Get the currently disabled translator group names from the host.

Declaration

cs-api-definition
public List<string> GetDisabledTranslatorGroupNames()

Returns

List<string>

Implements IRecorderHost.GetDisabledTranslatorGroupNames()

GetHostType()

Get the host type.

Declaration

cs-api-definition
public HostType GetHostType()

Returns

HostType

Implements IHtmlRecorderHost.GetHostType()

GetMappingNodes()

Invoke showing the mapping mode of the recorder.

Declaration

cs-api-definition
public List<INodeData> GetMappingNodes()

Returns

List<INodeData>

Implements IRecorderHost.GetMappingNodes()

GetParentMappingState(TechnologyType)

Gets the mapping state of the parent recorder.

Declaration

cs-api-definition
public bool GetParentMappingState(TechnologyType techType)

Parameters

techType

TechnologyType

Type of the tech.

Returns

bool

Implements IRecorderHost.GetParentMappingState(TechnologyType)

GetParentRecorderState(TechnologyType)

Gets the state of the parent recorder.

Declaration

cs-api-definition
public bool? GetParentRecorderState(TechnologyType techType)

Parameters

techType

TechnologyType

Type of the tech.

Returns

bool?

Implements IRecorderHost.GetParentRecorderState(TechnologyType)

GetSerializableTypes()

The client cannot instantiate all the types in its running assemblies, so we'll just inform it of the types that are serializable

Declaration

cs-api-definition
public List<string> GetSerializableTypes()

Returns

List<string>

Implements IHtmlRecorderHost.GetSerializableTypes()

GetUserSettings()

Get the current user settings from the host.

Declaration

cs-api-definition
public UserSettings GetUserSettings()

Returns

UserSettings

Implements IHtmlRecorderHost.GetUserSettings()

InvalidatePinnedScreenshot()

Invalidates pinned screenshot.

Declaration

cs-api-definition
public void InvalidatePinnedScreenshot()

Implements IRecorderHost.InvalidatePinnedScreenshot()

IsRecorderConnecting()

Shows whether the recorder is still connecting

Declaration

cs-api-definition
public bool IsRecorderConnecting()

Returns

bool

Implements IRecorderHost.IsRecorderConnecting()

MapElement(INodeData, ElementDescriptor, Rectangle)

Map dummy element

Declaration

cs-api-definition
public void MapElement(INodeData data, ElementDescriptor descriptor, Rectangle elementLocation)

Parameters

data

INodeData

descriptor

ElementDescriptor

elementLocation

Rectangle

Implements IRecorderHost.MapElement(INodeData, ElementDescriptor, Rectangle)

PinScreenshot(Rectangle, DateTime)

Pin most recent screenshot. The screenshot is kept until this method is invoked with another area or InvalidatePinnedScreenshot is called.

Declaration

cs-api-definition
public void PinScreenshot(Rectangle area, DateTime timestamp)

Parameters

area

Rectangle

timestamp

DateTime

The time of the screenshot.

Implements IRecorderHost.PinScreenshot(Rectangle, DateTime)

RecordDescriptorsInProject(AutomationDescriptor[], bool, Rectangle, DateTime?)

Record a set of descriptors in the project

Declaration

cs-api-definition
public void RecordDescriptorsInProject(AutomationDescriptor[] descriptors, bool requiresConfirmation, Rectangle elementLocation, DateTime? timestamp = null)

Parameters

descriptors

AutomationDescriptor[]

requiresConfirmation

bool

If true, the descriptors will not be added to the test's descriptors until ConfirmPendingRecord() is called. If false, the descriptors will be immediately added to the test's descriptors.

elementLocation

Rectangle

Element location - used for capturing on the storyboard

timestamp

DateTime?

Implements IRecorderHost.RecordDescriptorsInProject(AutomationDescriptor[], bool, Rectangle, DateTime?)

RegisterInstance(int, TestType)

Register an instance with the recorder.

Declaration

cs-api-definition
public void RegisterInstance(int instanceId, TestType type)

Parameters

instanceId

int

type

TestType

Implements IRecorderHost.RegisterInstance(int, TestType)

ShowRecordingNotification(string, TestType)

Show notification for the recorded step

Declaration

cs-api-definition
public void ShowRecordingNotification(string text, TestType testType)

Parameters

text

string

testType

TestType

Related test type.

Implements IRecorderHost.ShowRecordingNotification(string, TestType)

UnregisterInstance(IntPtr)

Unregister an instance with a recorder

Declaration

cs-api-definition
public void UnregisterInstance(IntPtr hwnd)

Parameters

hwnd

IntPtr

Implements IRecorderHost.UnregisterInstance(IntPtr)

UpdateElementImage(ElementImageData)

Update currently selected element image, index and threshold.

Declaration

cs-api-definition
public void UpdateElementImage(ElementImageData data)

Parameters

data

ElementImageData

Implements IRecorderHost.UpdateElementImage(ElementImageData)