Forum Discussion
Hi,
I tried running test execute specific unit from powershell , this is how i have scripted. but its just starting testexecute but not opening project please guide me how to proceed
$testexecute = "C:\Program Files (x86)\SmartBear\TestExecute 11\Bin\TestExecute.exe"
$projectpath = "800xA Autotest Project"
$unitPath = "DL_PointOfControl"
$routinepath = "DL_POC_Send_Request_User2"
$p = Start-Process -FilePath $testexecute -ArgumentList '"I:\800xA Autotest Project.pjs"',/run,'/p:$projectpath','/u:$unitPath','/rt:$routinepath',/exit,/SilentMode -Verb runas -Wait
Your project path does not include any drive or directory information. Therefore, it assumes that the project MDS file is going to be in whatever path the context of the powershell command is being run in. If your MDS does not exist in that path, it won't open.
Change your project path value to include the full path to the file and this should work.
Related Content
- 7 years ago
Recent Discussions
- 2 days ago