lac*_*dev 5 web-services soapui
我正在使用soapUI的testrunner.bat来从命令行执行测试.我想检查对Web服务调用的响应.这可以通过UI轻松完成,但我还没有看到将响应转储到文件的选项.这是我正在使用的命令:
testrunner.bat -sSuite -cPingProduction -r -I"C:\ Program Files\eviware\Projects\Project-webchecker-soapui-project.xml"
此命令确实生成了一个日志文件,但它没有响应/请求.
谢谢.
小智 6
我通过创建测试步骤(在测试用例中)并使用此Groovy脚本来完成此操作:
def response = context.expand( '${request#Response}' )
// where request is the name of your request
new File( "C:/response.txt" ).write( response )
Run Code Online (Sandbox Code Playgroud)
您调用testrunner.bat的语法是正确的,我已经确认它对我有用.
| 归档时间: |
|
| 查看次数: |
3458 次 |
| 最近记录: |