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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM