Absent Member.
Absent Member.
1281 views

How do you pass in the Target URL of the Web Application under Test using SCTM and ST Classic Plan Files?

[Migrated content. Thread originally posted on 11 November 2011]

We currently pass Runtime Arguments to Test Plans via the command line. We process those arguments when the script starts, one them being the Target URL under Test. We are now using SCTM 2011. In SCTM 2011, we have created Test Definitions and Execution Definitions that are tied to the SilkTest Classic Plan files. How do we pass in runtime arguments to those plan files using the Execution Definitions when we schedule them to run?

Example of old way: runtime.exe -opt MyOptionSet -q -r "C:\MyPath\MyTestPlan.pln" http://google.com
0 Likes
1 Reply
Absent Member.
Absent Member.

Solution:

1. Setup a ProcessExecutor to c:\Windows\System32\cmd.exe with the arguments:

/c echo ${targetURL} ${role} ${emailList} > C:\Temp\RuntimeArgs.txt

2. The parameters can be setup at the Container level with the values that these args refer to.
3. This test definition must be assigned as part of Setup for each Execution Definition Test Suite.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.