Parameters Property

Applies to TestComplete 15.70, last modified on December 17, 2024
This property is obsolete. See the Remarks section below.

Description

A tested application can be run in Simple mode. The TestedApp.Parameters property specifies the string of the command-line parameters to be passed to the executable or batch file of the given tested application. This is the same value as the one specified in the Command-line parameters field for the application in the TestedApps editor.

Declaration

TestedAppObj.Parameters

Read-Write Property String
TestedAppObj An expression, variable or parameter that specifies a reference to a TestedApp object

Applies To

The property is applied to the following object:

Property Value

The string of the application’s command-line parameters.

Remarks

This property is obsolete. It is supported for backward-compatibility only and will not be available in future releases. It is not displayed in the Code Completion window.

To specify command-line arguments for the tested application to be launched in Simple mode, use the TestedApp.AppName.Params.SimpleParams.CommandLineParameters property.

The string of the tested application’s command-line parameters may contain project or project suite variables. The variable must also be a string type.

In the string specifying the command-line parameters, the variable name must be enclosed in parenthesis and follow the dollar sign:

$(var_name)

For example, “$(WorkingDirectory)\$(FileName)”.

When evaluating the value of the Parameters property, TestComplete first searches for the specified variable in the project variables, then in the project suite variables. Note this if you have project suite and project variables with the same name.

For more information on project and project suite variables, see Local Variables.

See Also

Path Property
WorkFolder Property
Run Method
TestedApps.RunAll
CommandLineParameters Property
Run Modes and Parameters
CommandLineParameters Property
CommandLineParameters Property
Passing Command-Line Arguments to Tested Applications

Highlight search results