jesseejames
2 years agoOccasional Contributor
TestComplete Commandline with multiple variables
What's the best way to pass multiple variables in Powershell to run TestComplete commandline
$myVariables is a array list which has multiple variables like "XXX=123", "YYY=345", "ZZZ=567"
So I assumed if you need multiple variables in command line, you just add multiple "/pv:xxx=123"
Start-Process 'C:\Program Files (x86)\SmartBear\TestComplete 15\Bin\TestComplete.exe' -ArgumentList """$TestCompleteFilePath"" /project:""$myTestProjectName"" /test:""$myTestName"" /pv:""$myVariables[0]"" /pv:""$myVariables[1]"" /pv:""$myVariables[2]"" /run " -Wait