carlc986

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-01-12
13:23
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
1 Reply
carlc986

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-01-12
13:33
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.
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.