Forum Discussion

PERSIN's avatar
PERSIN
Contributor
7 years ago

Error in Powershell script:

Hi,

 

I am trying to integrate SOAPUI in my release pipeline in VSTS and for that I have written a powershell script:

 

$testrunner = '<C:\Program Files\SmartBear\SoapUI-5.4.0\bin\testrunner.bat>'
$project = '$(System.DefaultWorkingDirectory)/_XYZ Project/XYZ.xml'
$arguments = $project, '"-sTestSuite 1"', '"-RJUnit-Style HTML Report"'
Start-Process $testrunner -filePath $project -ArgumentList $arguments -wait

 

When I am executing this I am getting below error:

Start-Process : A positional parameter cannot be found that accepts argument '<C:\Program Files\SmartBear\SoapUI-5.4.0\bin\testrunner.bat>'.
 D:\a\r1\a\_SOAPUI Project\SOAPUISCRIPT\soap.ps1:4 char:1

 

Can anyone help on this.

No RepliesBe the first to reply