SoapUI命令行方式运行

http://stackoverflow.com/questions/9220132/soapui-groovy-script-calls-to-command-line

SoapUI支持用命令行方式运行测试用例并生成测试报告,因此使用SoapUI可以很好地进行接口测试自动化测试以及持续集成。

首先查看testrunner.sh脚本支持哪些选项

直接执行testrunner.sh将给出帮助手册:
usage: testrunner [options] <soapui-project-file>
 -F    Report format. Used with -R. Valid options PDF, XLS, HTML, RTF,
       CSV, TXT, and XML (comma-separated)
 -v    Sets password for soapui-settings.xml file
 -t    Sets the soapui-settings.xml file to use
 -A    Turns on exporting of all results using folders instead of long
       filenames
 -D    Sets system property with name=value
 -E    Sets the environment
 -G    Sets global property with name=value
 -I    Do not stop if error occurs, ignore them
 -M    Creates a Test Run Log Report in XML format
 -P    Sets or overrides project property with name=value
 -R    Report to Generate
 -S    Saves the project after running the tests
 -a    Turns on exporting of all results
 -c    Sets the testcase
 -d    Sets the domain
 -e    Sets the endpoint
 -f    Sets the output folder to export results to
 -g    Sets the output to include Coverage HTML reports
 -h    Sets the host
 -i    Enables Swing UI for scripts
 -j    Sets the output to include JUnit XML reports
 -m    Sets the maximum number of TestStep errors to save for each
       testcase
 -o    Opens generated report(s) in a browser
 -p    Sets the password
 -r    Prints a small summary report
 -s    Sets the testsuite
 -u    Sets the username
 -w    Sets the WSS password type, either 'Text' or 'Digest'
 -x    Sets project password for decryption if project is encrypted
原文地址:https://www.cnblogs.com/kill0001000/p/5445389.html