ClassRecorderHostClient
Definition
Namespace:ArtOfTest.WebAii.Design.UI.RecordingSurface
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public class RecorderHostClient : DuplexClientBase<IHtmlRecorderHost>, ICommunicationObject, IDisposable, IHtmlRecorderHost, IRecorderHost
Inheritance: objectClientBase<IHtmlRecorderHost>DuplexClientBase<IHtmlRecorderHost>RecorderHostClient
Implements:
Inherited Members
Constructors
RecorderHostClient(InstanceContext)
Declaration
public RecorderHostClient(InstanceContext callbackContext)
Parameters
callbackContext
RecorderHostClient(InstanceContext, Binding, EndpointAddress)
Declaration
public RecorderHostClient(InstanceContext callbackContext, Binding binding, EndpointAddress remoteAddress)
Parameters
callbackContext
binding
remoteAddress
RecorderHostClient(InstanceContext, string)
Declaration
public RecorderHostClient(InstanceContext callbackContext, string endpointConfigurationName)
Parameters
callbackContext
endpointConfigurationName
RecorderHostClient(InstanceContext, string, EndpointAddress)
Declaration
public RecorderHostClient(InstanceContext callbackContext, string endpointConfigurationName, EndpointAddress remoteAddress)
Parameters
callbackContext
endpointConfigurationName
remoteAddress
RecorderHostClient(InstanceContext, string, string)
Declaration
public RecorderHostClient(InstanceContext callbackContext, string endpointConfigurationName, string remoteAddress)
Parameters
callbackContext
endpointConfigurationName
remoteAddress
RecorderHostClient(object)
Declaration
public RecorderHostClient(object callbackInstance)
Parameters
callbackInstance
RecorderHostClient(object, Binding, EndpointAddress)
Declaration
public RecorderHostClient(object callbackInstance, Binding binding, EndpointAddress remoteAddress)
Parameters
callbackInstance
binding
remoteAddress
RecorderHostClient(object, string, EndpointAddress)
Declaration
public RecorderHostClient(object callbackInstance, string endpointConfigurationName, EndpointAddress remoteAddress)
Parameters
callbackInstance
endpointConfigurationName
remoteAddress
Methods
AbortPendingRecord()
Abort a pending record operation
Declaration
public void AbortPendingRecord()
Implements
AddIndependentElement(ElementDescriptor, Rectangle)
Add an independent element to the surface
Declaration
public void AddIndependentElement(ElementDescriptor element, Rectangle elementLocation)
Parameters
element
Element to add
elementLocation
Element location - used for capturing on the element image.
Implements
BringHostToFront()
Front the host
Declaration
public void BringHostToFront()
Implements
ConfirmPendingRecord()
Finalize a pending record operation
Declaration
public void ConfirmPendingRecord()
Implements
GetDisabledTranslatorGroupNames()
Get the currently disabled translator group names from the host.
GetHostType()
Get the host type.
GetMappingNodes()
Invoke showing the mapping mode of the recorder.
GetParentMappingState(TechnologyType)
Gets the mapping state of the parent recorder.
Declaration
public bool GetParentMappingState(TechnologyType techType)
Parameters
techType
Type of the tech.
Returns
Implements
GetParentRecorderState(TechnologyType)
Gets the state of the parent recorder.
Declaration
public bool? GetParentRecorderState(TechnologyType techType)
Parameters
techType
Type of the tech.
Returns
bool?
Implements
GetSerializableTypes()
The client cannot instantiate all the types in its running assemblies, so we'll just inform it of the types that are serializable
GetUserSettings()
Get the current user settings from the host.
InvalidatePinnedScreenshot()
Invalidates pinned screenshot.
Declaration
public void InvalidatePinnedScreenshot()
Implements
IsRecorderConnecting()
Shows whether the recorder is still connecting
MapElement(INodeData, ElementDescriptor, Rectangle)
Map dummy element
Declaration
public void MapElement(INodeData data, ElementDescriptor descriptor, Rectangle elementLocation)
Parameters
data
descriptor
elementLocation
Implements
PinScreenshot(Rectangle, DateTime)
Pin most recent screenshot. The screenshot is kept until this method is invoked with another area or InvalidatePinnedScreenshot is called.
RecordDescriptorsInProject(AutomationDescriptor[], bool, Rectangle, DateTime?)
Record a set of descriptors in the project
Declaration
public void RecordDescriptorsInProject(AutomationDescriptor[] descriptors, bool requiresConfirmation, Rectangle elementLocation, DateTime? timestamp = null)
Parameters
descriptors
requiresConfirmation
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
Element location - used for capturing on the storyboard
timestamp
Implements
RegisterInstance(int, TestType)
Register an instance with the recorder.
ShowRecordingNotification(string, TestType)
Show notification for the recorded step
UnregisterInstance(IntPtr)
Unregister an instance with a recorder
Declaration
public void UnregisterInstance(IntPtr hwnd)
Parameters
hwnd
Implements
UpdateElementImage(ElementImageData)
Update currently selected element image, index and threshold.
Declaration
public void UpdateElementImage(ElementImageData data)
Parameters
data
Implements