Studio:Referring to global stride objects
Jump to navigation
Jump to search
The following variables are automatically injected when scripts are run in Studio, and must be referred to:
$ascript
$studio
$reporter
$panel
$testSuite
In Perl, these variables must be qualified with the namespace (main::) in order for the script to run under strictures (invoked by including use strict in your script):
Automatic variable | Refer to as |
$ascript | $main::ascript |
$studio | $main::reporter |
$reporter | $main::studio |
$panel | $main::panel |
$testSuite | $main::testSuite |
Using use strict in scripts is recommended, as it catches a number of potential errors that might otherwise go undetected. However, if strictures are not used, these global variables may be referred to without the main:: qualification.
For additional information on global variables on the target, click here.