I'm using SoapUI with TFS and have made a custom task in PowerShell (and TFS variables) to do so.
I've written the following code:
cd "C:\Program Files\SmartBear\ReadyAPI-2.1.0\bin\"
.\testrunner.bat -a -j -f"$env:Build.ArtifactStagingDirectory" "-RTestSuite Report" -EDEV\APIMGT_DEV "$env:Build.BinariesDirectory\_soapui\project.xml"
$env:Build.ArtifactStagingDirectory"
is the path where the Test Results report will be sent; $env:Build.BinariesDirectory\\_soapui\\project.xml
is the path where the project used by SoapUI is.
My problem is that, yes the report is searched at the right place ( Build.ArtifactStagingDirectory => D:\\test\\t01\\_work\\5\\a\\**\\report.xml'
), but the project is searched at the wrong place ( C:\\Program Files\\SmartBear\\ReadyAPI-2.1.0\\bin\\.BinariesDirectory\\_soapui\\project.xml
), combining the variable and the path to the binaries of the software ReadyAPI.
The errors are:
[SoapUI] File [C:\\Program Files\\SmartBear\\ReadyAPI-2.1.0\\bin.BinariesDirectory_soapui\\project.xml] does not exist, trying URL instead
No test result files were found using search pattern 'D:\\test\\t01_work\\5\\a**\\report.xml'
$env:Build_BinariesDirectory
和$env:Build_ArtifactStagingDirectory
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.