
Important
InformationWhen specifying a non-executable file, the file opens in the associated application.
Note: A SystemUtil.Run statement is automatically added to your test when you run an application from the Start menu or the Run dialog box while recording a test.
Tip: You can also use this method to perform operations on the specified file, similar to the usage of the Windows ShellExecute command.
object.Run file, [params], [dir], [op], [mode]
Syntax
Details| Argument | Description |
| object | A test object of type SystemUtil. |
| file | Required. A String value.
The name of the file you want to run. |
| params | Optional. A String value.
If the specified file argument is an
executable file, use the params argument to specify any
parameters to be passed to the application. |
| dir | Optional. A String value.
The default directory of the application or file.
|
| op | Optional. A String value. The action to be performed. If this
argument is blank ( ""), the open operation is performed. The following operations can be specified for the op argument: |
| mode | Optional. An Integer value.
Specifies how the application is displayed when it opens. You can specify one
of the modes in the table below. |
Return
Type