Forum Discussion

nastester's avatar
nastester
Regular Contributor
3 years ago

Running loadtestrunner from PowerShell

I am trying to create a PowerShell script that will run my ReadyAPI Performance project (loadtestrunner). 

I see this documentation that shows an example for testrunner:

https://support.smartbear.com/readyapi/docs/integrations/azure/command-line.html#script

 

But I can't get the arguments quite right for loadtest in PowerShell.

 

This is what I have in batch format (which works): 

"C:\Program Files\SmartBear\ReadyAPI-3.7.0\bin\loadtestrunner.bat" C:\Zookeeper\ZookeeperAutomation\ReportsAPIAutomation\Stress\ReportsAPIStress-readyapi-project.xml -n2kReportsPOST "-EDefault environment" -rD:\Reports\ReportsAPIStress
 
And I think I need something like this in this format based on the above documentation:
$loadtestrunner = 'C:\Program Files\SmartBear\ReadyAPI-3.7.0\bin\loadtestrunner.bat'
$project = 'D:\EOD_StressTest\EOD_STRESS-readyapi-project.xml'
$arguments = *arguments here* 
Start-Process -FilePath $loadtestrunner -ArgumentList $arguments -Wait
 
I keep getting unexpected token errors for anything I try for arguments. 
No RepliesBe the first to reply