Hi
Using the Shell Script option and an RMA I want to pass the "Params" property in the test to the shell script I have. Does anyone have an example of how this works and how I can them read the parameter in a powershell script?
Thanks in advance
Passing Parameter in Shell Script Test (Powershell)
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
For powershell you may use $args[N]. Where N - parameter index starting from 0.
E.g.
E.g.
Code: Select all
$statusOk="ScriptRes:Ok:"
$res=$args[0]
echo $statusOk$res