Interface
IHostInteraction

Implemented by each host to offer abstraction for interacting with the host UI

Definition

Namespace:ArtOfTest.WebAii.Design.ProjectModel

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public interface IHostInteraction

Properties

ActiveView

Get the active context.

Declaration

cs-api-definition
UIWindowsContext ActiveView { get; }

Property Value

UIWindowsContext

MainWindowHandle

Get the host's main window handle

Declaration

cs-api-definition
IntPtr MainWindowHandle { get; }

Property Value

IntPtr

OwnerWindow

Declaration

cs-api-definition
Window OwnerWindow { get; }

Property Value

Window

Methods

GetContextView(UIWindowsContext)

Return the command handler of a specific context view.

Declaration

cs-api-definition
ICommandHandler GetContextView(UIWindowsContext context)

Parameters

context

UIWindowsContext

Returns

ICommandHandler

LaunchRecorder()

Launch the recorder

Declaration

cs-api-definition
void LaunchRecorder()

LogMessage(string, bool)

Log a message to the host's logging mechanizm.

Declaration

cs-api-definition
void LogMessage(string message, bool includeTimestamp)

Parameters

message

string

The message to log.

includeTimestamp

bool

ReloadPerformanceHistory()

Reloads the preformance history.

Declaration

cs-api-definition
void ReloadPerformanceHistory()

SetHostStatus(string, bool)

Set the status of the host

Declaration

cs-api-definition
void SetHostStatus(string status, bool showProgressBar)

Parameters

status

string

The status to set the host to.

showProgressBar

bool

SetResultContext(RunResult, bool)

Declaration

cs-api-definition
void SetResultContext(RunResult runResult, bool drillDown = true)

Parameters

runResult

RunResult

drillDown

bool

SetStepContext(AutomationStep)

Set the step's test to be in context

Declaration

cs-api-definition
void SetStepContext(AutomationStep step)

Parameters

step

AutomationStep

SetTestContext(TestBase)

Set a test to be in context

Declaration

cs-api-definition
void SetTestContext(TestBase test)

Parameters

test

TestBase

The test to host the UI in.

ShowModalBusyIndicator(bool, string)

Declaration

cs-api-definition
void ShowModalBusyIndicator(bool bShow, string strMessage)

Parameters

bShow

bool

strMessage

string

SwitchUIContext(UIWindowsContext)

Switch the UI Context for the Host (for standalone)

Declaration

cs-api-definition
void SwitchUIContext(UIWindowsContext context)

Parameters

context

UIWindowsContext