Description
The TestedApp.AutorunOnRecording
property specifies whether the given tested application will be launched automatically every time you start the recording. The property value corresponds to the Autorun application on recording option specified for the application in the TestedApps editor.
Declaration
TestedAppObj.AutorunOnRecording
Read-Write Property | Boolean |
TestedAppObj | An expression, variable or parameter that specifies a reference to a TestedApp object |
Applies To
The property is applied to the following objects:
AIRTestedApp, AndroidTestedApp, iOSTestedApp and 3 more objects, JavaTestedApp, JavaWebStartTestedApp, TestedApp « Collapse the list
Property Value
True if the application will be launched automatically when the recording starts, and False, otherwise.
Remarks
To launch the tested application when you start the recording, TestComplete calls the TestedApps.RunAll
or TestedApp.Run
method.
Example
The following example demonstrates how to enable the AutorunOnRecording
property from script. After you run this script, TestComplete will automatically select the Autorun application on recording check box for the SampleApp tested application. To make sure that the script was executed successfully, switch to the TestedApps editor after the test execution is over and check that the appropriate check box is selected.
JavaScript, JScript
function Test()
{
var testedApp = TestedApps.SampleApp;
testedApp.AutorunOnRecording = true;
// ...
}
Python
def Test():
testedApp = TestedApps.SampleApp
testedApp.AutorunOnRecording = True
# ...
VBScript
Sub Test
Dim testedApp
Set testedApp = TestedApps.SampleApp
testedApp.AutorunOnRecording = True
' ...
End Sub
DelphiScript
procedure Test;
var testedApp;
begin
testedApp := TestedApps.SampleApp;
testedApp.AutorunOnRecording := true;
// ...
end;
C++Script, C#Script
function Test()
{
var testedApp = TestedApps["SampleApp"];
testedApp["AutorunOnRecording"] = true;
// ...
}
See Also
Count Property
Run Method
RunAll Method
LaunchTestedApplication Method
LaunchAllTestedApplications Method