Forum Discussion
These are the ps lines I use:
$logpath = "C:\TestExecuteLogs\RunlogRegressie.mht"
$testexecute = "C:\Program Files (x86)\SmartBear\TestExecute 11\Bin\TestExecute.exe"
$p = Start-Process -filepath $testexecute -ArgumentList "`"C:\Regressie XL\RegressieTest\Regressie.pjs`"", /run, /exit, /SilentMode, /ExportLog:$logpath -verb runas -wait
the -verb runas makes it run as administrator
the -wait keeps the powershell session alive while testexecute is running
You can lose these if you don't need them.
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