InterfaceIRunnerController
Definition
Namespace:ArtOfTest.WebAii.Design.Execution.Interfaces
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public interface IRunnerController : IDisposable
Inherited Members
Properties
IsRunnerResponding
Gets a value indicating whether this instance is runner responding.
Declaration
bool IsRunnerResponding { get; }
Property Value
true if this instance is runner responding; otherwise, false.
RunnerProc
The runner proc
Methods
Exit()
Notifies the runner to cleanup all connections (but the process stays alive)
Declaration
void Exit()
ForceShutdown(bool)
Force shut down of the runner
Declaration
void ForceShutdown(bool performCleanup)
Parameters
performCleanup
Launch(int, string, bool, BrowserType, double, out int, bool, bool)
Launch the remote runner
Declaration
bool Launch(int waitForReadyTimeout, string pathToRunner, bool isManual, BrowserType browser, double runnerResponseTimeout, out int runnerProcId, bool hideConsole = false, bool isDesignTimeRun = false)
Parameters
waitForReadyTimeout
pathToRunner
isManual
browser
runnerResponseTimeout
runnerProcId
hideConsole
isDesignTimeRun
Returns
RaiseResetBrowser()
Notifies the runner that the browser needs to be reset for the next test
Declaration
void RaiseResetBrowser()
RaiseRunCompleted()
Notifies the runner that the client is done processing the test completion event
Declaration
void RaiseRunCompleted()
Run(Test, Settings, DesignTimeExecutionParams, string, string, ExecutionType, Guid, Guid, IntPtr, DebuggerOptions, bool, string)
Starts test execution on the runner
Declaration
void Run(Test test, Settings settings, DesignTimeExecutionParams designTimeExecutionParams, string binaryFolder, string deploymentFolder, ExecutionType exeType, Guid firstStepGuid, Guid lastStepGuid, IntPtr existingBrowserHandle, DebuggerOptions debuggerOptions, bool rerun, string trafficLogFilename = null)
Parameters
test
settings
designTimeExecutionParams
binaryFolder
deploymentFolder
exeType
firstStepGuid
lastStepGuid
existingBrowserHandle
debuggerOptions
rerun
Indicates if the test is rerun
trafficLogFilename
Events
ExecutionError
Occurs when an unexpected error occurs during execution.
Declaration
event EventHandler<ExecutionErrorEventArgs> ExecutionError
Event Value
Exited
Successfully aborted/exited the remote runner.
OutputDataReceived
Occurs when data is written to the hidden console window
Declaration
event EventHandler<DataReceivedEventArgs> OutputDataReceived
Event Value
PingResponded
When calling ping if the runner is responsive, then this event will be called.
TestCompleted
Occurs when a test execution is complete
Declaration
event EventHandler<TestCompletedEventArgs> TestCompleted
Event Value
TestFailedToCompleteError
Occurs when an unexpected error occurs in the middle or end of test execution
Declaration
event EventHandler<ExecutionErrorEventArgs> TestFailedToCompleteError
Event Value