Predefined Parameters

Silk Central provides information on execution plan run properties during test executions as parameters.
These parameters can be read by your test automation tool as environment variables (see Test Parameters). Additionally, any JUnit test class can access a test parameter of the underlying test as a Java system property (see Accessing Silk Central Parameters through Java System Properties). Use the AttributeGet methods to read these parameters in a Silk Performer script.

These parameter values can also be referenced in placeholders, as described in Parameter-Token Replacement Upon Execution.

The following predefined parameters can be accessed:

Parameter
Description
#sctm_execdef_name
The name of the execution plan that is currently executed. If the execution was triggered from the Tests area, the parameter has the value Unassigned Tests.
#sctm_execdef_id
The numeric identifier (database key) of the execution plan that is currently executed.
#sctm_product
The name of the product as defined in the executed test container.
#sctm_version
The name of the version to which the results of the execution are associated.
#sctm_build
The name of the version to which the results of the execution are associated.
#sctm_keywords
A comma separated list which contains the keywords that are defined for this execution plan.
#sctm_regular_execdef_run_id
The numeric identifier (database key) of the regular execution plan run. For setup and cleanup tests this property contains the run ID of the regular run.
#sctm_test_results_dir
The path of the directory where the result files of the test reside.
#sctm_test_name
The name of the Silk Central test being executed.
#sctm_test_id
The numeric identifier (database key) of the test being executed.
#sctm_source_root_dir
The local path of the test container's root directory, where all files under version-control reside.
#external_id
The unique identifier of a test case in a test package to be executed. You can use this as a filter if only specific test cases in a test package should be executed.

#is_test_package_root
If true, the test being executed is the root node of the test package (default). If false, only specific test cases in a test package specified by #external_id are executed
#sctm_data_driven_parent_test_name
The name of the parent test, if the executed test is a data driven row.
#sctm_data_driven_parent_test_id
The numeric identifier (database key) of the parent test, if the executed test is a data driven row.