[SoapUI]怎样配置SoapUI运行的不同环境,并在Jenkins上面通过命令调用不用的环境
2014-08-28 15:06
1121 查看
配置SoapUI运行的不同环境
Groovy 脚本来控制environment
在Jenkins上面通过命令调用不用的环境
http://www.soapui.org/Test-Automation/cli-functional-tests.html
通过运行参数E指定environment
Running functional tests from the command-line is straightforward using the included testrunner.bat/.sh script, which takes a number of arguments to control which tests to run, output, etc:
a : Turns on exporting of all test results, not only errors
A : Turns on exporting of all results using folders instead of long
c : The TestCase to run, used to narrow down the tests to run
D : Sets system property with name=value
d : The domain to use in any authentications, overrides any domain set for any TestRequests
e : The endpoint to use when invoking test-requests, overrides the endpoint set in the project file
E : Sets which environment to use (SoapUI Pro only)
F : Sets the format of the report specified with the -R option, for Printable reports this is one of PDF, XLS, HTML, RTF, CSV, TXT, and XML. For Data Export this is either XML or CSV (SoapUI Pro only)
f : Specifies the root folder to which test results should be exported (see below)
G : Sets global property with name=value
g : Sets the output to include Coverage HTML reports ( SoapUI Pro only )
h : The host:port to use when invoking test-requests, overrides only the host part of the endpoint set in the project file
I : Do not stop if error occurs, ignore them
i : Enables SoapUI UI-related components, required if you use the UISupport class for prompting or displaying information
j : Turns on exporting of JUnit-compatible reports, see below
M : Creates a Test Run Log Report in XML format
m : Sets the maximum number of TestStep errors to save for each
o : Opens the generated report in a browser (SoapUI Pro only)
P : Sets project property with name=value, e.g. -Pendpoint=Value1 -PsomeOtherProperty=value2
p : The password to use in any authentications, overrides any password set for any TestRequests
r : Turns on printing of a small summary report (see below)
R : Selects which report to generate for the test objects executed, for example if running the entire project, this could specify the name of a test-suite-level report that would be generated for each TestSuite. The report is saved as specified with the -F option to the folder specified with the -f option. (SoapUI Pro only)
S : Sets to save the project file after tests have been run
s : The TestSuite to run, used to narrow down the tests to run
t : Sets the soapui-settings.xml file to use, required if you have custom proxy, ssl, http, etc setting
u : The username to use in any authentications, overrides any username set for any TestRequests
v : Sets password for soapui-settings.xml file
w : Sets the WSS password type, either 'Text' or 'Digest'
x : Sets project password for decryption if project is encrypted
So for example:
testrunner.bat -FPDF -R"Project Report" c:\projects\my-soapui-project.xml
Runs all tests in the specified my-soapui-project.xml file and creates the default project report available with SoapUI Pro.
Groovy 脚本来控制environment
在Jenkins上面通过命令调用不用的环境
http://www.soapui.org/Test-Automation/cli-functional-tests.html
通过运行参数E指定environment
Running functional tests from the command-line is straightforward using the included testrunner.bat/.sh script, which takes a number of arguments to control which tests to run, output, etc:
a : Turns on exporting of all test results, not only errors
A : Turns on exporting of all results using folders instead of long
c : The TestCase to run, used to narrow down the tests to run
D : Sets system property with name=value
d : The domain to use in any authentications, overrides any domain set for any TestRequests
e : The endpoint to use when invoking test-requests, overrides the endpoint set in the project file
E : Sets which environment to use (SoapUI Pro only)
F : Sets the format of the report specified with the -R option, for Printable reports this is one of PDF, XLS, HTML, RTF, CSV, TXT, and XML. For Data Export this is either XML or CSV (SoapUI Pro only)
f : Specifies the root folder to which test results should be exported (see below)
G : Sets global property with name=value
g : Sets the output to include Coverage HTML reports ( SoapUI Pro only )
h : The host:port to use when invoking test-requests, overrides only the host part of the endpoint set in the project file
I : Do not stop if error occurs, ignore them
i : Enables SoapUI UI-related components, required if you use the UISupport class for prompting or displaying information
j : Turns on exporting of JUnit-compatible reports, see below
M : Creates a Test Run Log Report in XML format
m : Sets the maximum number of TestStep errors to save for each
o : Opens the generated report in a browser (SoapUI Pro only)
P : Sets project property with name=value, e.g. -Pendpoint=Value1 -PsomeOtherProperty=value2
p : The password to use in any authentications, overrides any password set for any TestRequests
r : Turns on printing of a small summary report (see below)
R : Selects which report to generate for the test objects executed, for example if running the entire project, this could specify the name of a test-suite-level report that would be generated for each TestSuite. The report is saved as specified with the -F option to the folder specified with the -f option. (SoapUI Pro only)
S : Sets to save the project file after tests have been run
s : The TestSuite to run, used to narrow down the tests to run
t : Sets the soapui-settings.xml file to use, required if you have custom proxy, ssl, http, etc setting
u : The username to use in any authentications, overrides any username set for any TestRequests
v : Sets password for soapui-settings.xml file
w : Sets the WSS password type, either 'Text' or 'Digest'
x : Sets project password for decryption if project is encrypted
So for example:
testrunner.bat -FPDF -R"Project Report" c:\projects\my-soapui-project.xml
Runs all tests in the specified my-soapui-project.xml file and creates the default project report available with SoapUI Pro.
相关文章推荐
- 持续集成:Jmeter+Maven+Jenkins自动化框架搭建(五):不同环境配置及运行结果判断
- [SoapUI] Jenkins 配置不同环境(TP, LIVE)
- 通过宏在不同编译环境下的不同调用lib
- Tomcat启动时一闪而过,但是jdk环境变量配置正确,并使用java或者javac命令多可以运行,但是tomcat不能运行解决办法。
- 日常总结(十一)maven配置环境变量提示:mvn不是内部或外部命令,也不是可运行的程序或批处理文件
- LNMP环境通过apt-get命令配置
- dos命令行下不同包的方法类与调用类的编译与运行
- 通过Maven配置测试环境和开发环境连接不同的数据库
- Maven项目中通过profile定义使不同环境使用不同配置信息
- Linux环境下通过gstack命令查看进程的运行堆栈信息
- Laravel在不同的环境调用不同的配置文件
- C/C++/VC++/MFC怎样通过代码运行Dos窗口或以管理员身份运行DOS窗口,并执行一条指令或命令参数
- 第1章 Java基本概念及环境配置——FAQ1.17 怎样制作鼠标双击就可以运行的Jar文件?
- Sublime Text3配置java程序运行环境(引入不同jar包、输入)
- DJANGO:根据不同的环境,配置不同的SETTINGS文件,读取不同的DB,JENKINS,SALT配置
- Zend Framework 2.1.5 中根据服务器的环境配置调用数据库等的不同配置
- 通过 spring 的 EL 表达式解决不同环境的部署参数配置问题
- 01_JNI是什么,为什么使用,怎么用JNI,Cygwin环境变量配置,NDK案例(使用Java调用C代码),javah命令使用
- 通过调用System.getProperty()方法来获得不同环境变量的值。
- CGI程序里调用system、popen运行命令需要root权限---boa配置需要注意的问题