Description
The Runner
object is used to control script execution from the script. It includes methods that allow you to stop the script execution and to run routines by their names.
Runner
does not implement methods, properties and actions common for all tested objects.
Members
Example
The following example demonstrates how to use the Runner.Pause
method to pause the test execution and enable the debugging mode.
JavaScript, JScript
function Test()
{
// Launches the tested application and performs testing actions
TestedApps.SampleApp.Run();
…
// Pauses testing and activates step-by-step debugging
Runner.Pause();
// Performs testing actions
…
}
{
// Launches the tested application and performs testing actions
TestedApps.SampleApp.Run();
…
// Pauses testing and activates step-by-step debugging
Runner.Pause();
// Performs testing actions
…
}
Python
def Test():
# Launches the tested application and performs testing actions
TestedApps.SampleApp.Run()
# ...
# Pauses testing and activates step-by-step debugging
Runner.Pause()
# Performs testing actions
VBScript
Sub Test
' Launches the tested application and performs testing actions
TestedApps.SampleApp.Run
…
' Pauses testing and activates step-by-step debugging
Runner.Pause
' Performs testing actions
…
End Sub
' Launches the tested application and performs testing actions
TestedApps.SampleApp.Run
…
' Pauses testing and activates step-by-step debugging
Runner.Pause
' Performs testing actions
…
End Sub
DelphiScript
procedure Test();
begin
// Launches the tested application and performs testing actions
TestedApps.SampleApp.Run;
…
// Pauses testing and activates step-by-step debugging
Runner.Pause;
// Performs testing actions
…
end;
begin
// Launches the tested application and performs testing actions
TestedApps.SampleApp.Run;
…
// Pauses testing and activates step-by-step debugging
Runner.Pause;
// Performs testing actions
…
end;
C++Script, C#Script
function Test()
{
// Launches the tested application and performs testing actions
TestedApps["SampleApp"]["Run"]();
…
// Pauses testing and activates step-by-step debugging
Runner["Pause"]();
// Performs testing actions
…
}
{
// Launches the tested application and performs testing actions
TestedApps["SampleApp"]["Run"]();
…
// Pauses testing and activates step-by-step debugging
Runner["Pause"]();
// Performs testing actions
…
}