InterfaceIRecorderHost
Interface implemented by host wishing to interact with the recorder and consume recording results.
Definition
Namespace:ArtOfTest.Common.Design.UI.RecordingSurface
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[ServiceContract(Namespace = "http://artoftest.webaii.designcanvas.11")]
[ServiceKnownType("GetKnownTypes", typeof(Loader))]
public interface IRecorderHost
Derived Classes:
Methods
AbortPendingRecord()
Abort a pending record operation
Declaration
[OperationContract(IsOneWay = true)]
void AbortPendingRecord()
AddIndependentElement(ElementDescriptor, Rectangle)
Add an independent element to the surface
Declaration
[OperationContract(IsOneWay = true)]
void AddIndependentElement(ElementDescriptor element, Rectangle elementLocation)
Parameters
element
Element to add
elementLocation
Element location - used for capturing on the element image.
BringHostToFront()
Front the host
Declaration
[OperationContract(IsOneWay = true)]
void BringHostToFront()
ConfirmPendingRecord()
Finalize a pending record operation
Declaration
[OperationContract(IsOneWay = true)]
void ConfirmPendingRecord()
GetDisabledTranslatorGroupNames()
Get the currently disabled translator group names from the host.
GetMappingNodes()
Invoke showing the mapping mode of the recorder.
GetParentMappingState(TechnologyType)
Gets the mapping state of the parent recorder.
Declaration
[OperationContract]
bool GetParentMappingState(TechnologyType techType)
Parameters
techType
Type of the tech.
Returns
GetParentRecorderState(TechnologyType)
Gets the state of the parent recorder.
Declaration
[OperationContract]
bool? GetParentRecorderState(TechnologyType techType)
Parameters
techType
Type of the tech.
Returns
bool?
InvalidatePinnedScreenshot()
Invalidates pinned screenshot.
Declaration
[OperationContract]
void InvalidatePinnedScreenshot()
IsRecorderConnecting()
Shows whether the recorder is still connecting
MapElement(INodeData, ElementDescriptor, Rectangle)
Map dummy element
Declaration
[OperationContract(IsOneWay = true)]
void MapElement(INodeData nodeData, ElementDescriptor descriptor, Rectangle elementLocation)
Parameters
nodeData
descriptor
elementLocation
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
[OperationContract(IsOneWay = true)]
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
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
[OperationContract(IsOneWay = true)]
void UnregisterInstance(IntPtr hwnd)
Parameters
hwnd
UpdateElementImage(ElementImageData)
Update currently selected element image, index and threshold.
Declaration
[OperationContract]
void UpdateElementImage(ElementImageData data)
Parameters
data