[SoapUI] Command-Line Arguments
https://support.smartbear.com/readyapi/docs/soapui/running/automating/cli.html
Use the test runner to run functional SoapUI NG tests from the command line.
You can find the runner in the <Ready! API>/bin directory. The file name is testrunner.bat (Windows) or testrunner.sh(Linux and macOS).
To configure the runner’s command line visually, start it from the Ready! API user interface. For more information, see Test Runner GUI.
General Syntax
The runner’s command line has the following format:
Arguments
![]() |
Some arguments on the list below are marked with the |
test-project-file: The fully-qualified name of the project file that contains functional tests to be run. If the file name or path includes spaces, enclose the entire argument in quotes.
-a: Commands the runner to export all test results. Otherwise, it exports only information about errors.
-A: Commands the runner to organize files with test results into directories and subdirectories that match the test suites and test cases the runner executes. To specify the root directory, use the
-fargument.If you skip the
-Aargument, the runner will save all resulting files to the directory the-fargument specifies. The file names will include the test suite’s and test case’s names.The runner can ignore this attribute depending on the
-Rcommand-line argument value.-c: Specifies the test case to be run. If you skip this argument, the runner will execute all test cases in your test project.
-d: Specifies the domain that Ready! API will use for authorization.
This argument overrides the authorization domain you have specified for test steps in your project.
-D: Specifies a value of a system property for the test run. This value will override the variable’s value during the run.
Usage:
-D<variable>=<value>. If the value includes spaces, enclose the entire argument in quotes. To override several variable values, specify the-Dargument several times.-e: Specifies the endpoint to be used in test requests. The specified endpoint should include the protocol part (for example,
https://).This argument overrides the endpoints you have specified for test steps in your project. See the
-hargument description.-E
: Specifies the environment to be used in the test run.-f: Specifies the root directory, where the runner will save test result files. If the directory does not exist, Ready! API will create it.
Tip: If the directory exists, Ready! API will overwrite report files in it. -F
: Specifies the format of the reports Ready! API exports.Usage:
-F<FormatName>. Ready! API supports the following formats: PDF, XLS, HTML, RTF, CSV, TXT and XML. If you have not specified the parameter, Ready! API will use the PDF format.To export results in several formats, separate them with commas. For example:
-FPDF,XML,CSV.The runner can ignore the
-Fargument depending on the value of the-Rargument. See the-Rargument description.To export results in various formats, you need a SoapUI NG Pro license.
-g
: Commands the runner to create a coverage report (HTML format).-G: Specifies a value of the global property for the test run. This value will override the variable’s value during the run.
Usage:
-G<variable>=<value>. If the value includes spaces, enclose the entire argument in quotes. To override several variable values, specify the-Gargument several times.-h: Specifies the host and port to be used in test requests.
Usage:
-h<host>:<port>. You can specify the host by using its IP address or name.This argument overrides the endpoints you have specified in the project file. See the
-eargument description.-i: Commands the runner to enable UI components. Use this command-line argument if you use the
UISupportclass in your tests.-I: Commands the runner to ignore errors. If you put this argument to the command line, the test log will contain no information on errors occurred during the test run.
If you skip this argument, the runner will stop the run after the first error occurs and will post full information about the error to the log.
-j: Commands the runner to create JUnit-compatible reports. This argument is similar to the
-R"JUnit-style HTML Report"command-line argument.-J: Commands the runner to include JUnit XML reports with test properties to the report. For example:
<testcase name="TestCase1" time="0.35">
<properties>
<property name="BusinessRequirementId" value="BusinessRequirement1"/>
</properties>
</testcase>-M: Commands the runner to create an XML file with brief test results.
This argument does not depend on the other command-line arguments that concern the result export:
-F,-Rand-A.-o
: Commands the runner to open the reports Ready! API created in your default web browser after the test run is over.-O: Commands the runner to renounce collecting and sending usage statistics.
-P: Specifies a value of a project property for the test run. This value will override the variable’s value during the run.
Usage:
-P<variable>=<value>. If the value includes spaces, enclose the entire argument in quotes. To override several variable values, specify the-Pargument several times.-p: Specifies the password to be used for authorization during the run.
This argument overrides the authorization password settings you have specified in your project.
-R
: Specifies the type of the report data.Usage:
-R<Report type>. The Report type can be one of the following:Project Report: Generates a report in the format the
-Fargument specifies. The runner will save the report files to the directory that the-fargument specifies. Depending on the-Aargument value, the runner can organize files into subdirectories.TestSuite Report: As above, but for test suites.
TestCase Report: As above, but for test cases.
JUnit-Style HTML Report: Generates a report as JUnit-style HTML files. See JUnit-Style HTML Reports. When you use this value, the runner ignores the
-Fand-Aarguments.Data Export: Generates XML files with report data. See Data Export.
When you use this argument, the
-Fargument must be XML or not specified.Use the
-fargument to specify the directory, where the runner will save report files Ready! API creates.-r: Commands the runner to include a summary report into the test log.
-s: Specifies the test suite to be run. If you skip this argument, the runner will execute all test suites in your project.
-S: Commands the runner to save the test project after the test run finishes. Use this command-line argument if you store data within the project during the test.
-t: Specifies the Ready! API setting file to be used during the test run. If you skip this command-line argument, the runner will use the default soapui-settings.xml file which you can find in your user directory.
Use this argument to specify another setting file for the run. It helps you use different proxy, SSL, HTTP and other settings without changing them in Ready! API.
Also, see the
-vargument description.-T: Specifies test cases to be executed by their tags.
Usage:
-T"TestCase tag1[, tag2 ...]"If you specify one or several tags, the test runner will run only those test cases that have all the tags you have specified. For example, if you specify
-T"TestCase tag1, tag2", it will not run test cases that have tag1 or tag2, but it will run test cases that have both tag1 and tag2.
You should assign tags you specify to test cases from the test suite and test cases by the -sand-carguments. Otherwise, there will be no tests to execute.
https://support.smartbear.com/readyapi/docs/soapui/ui/suite.html?&#tags
-u: Specifies the user name to be used in test request authorizations.
This argument overrides user names in your test project.
-v: Specifies the password for your XML setting file.
Also, check the description of the
-targument.-w: Specifies the WSS password type.
Usage:
-w<password type>, where <password type> can be one of the following:Text: Matches the PasswordText WSS password type.
Digest: Matches the PasswordDigest WSS password type.
-x: Specifies the project password in case you have encrypted the project.
Examples
The following command runs all SoapUI NG tests from the Ready! API project you have specified:
testrunner.bat "c:\my projects\my-project.xml"The following command runs the my TestCase test case in your project and creates HTML files in a JUnit-style format:
testrunner.bat -FPDF -R"JUnit-Style HTML Report" -c"my TestCase" c:\my projects\my-project.xml
Known Issues
SPNEGO-Kerberos authorization will cause tests you start from the test runner to fail. To avoid this issue, add the following code to the end of the first set JAVA_OPTS line in the ReadyAPI.bat file:
[SoapUI] Command-Line Arguments的更多相关文章
- msiexec command line arguments
Documented command line arguments Type MSIEXEC /? and you'll get the following on-screen help: Windo ...
- Unity3d command line arguments
Options Many of these relate to Unity3d command line arguments Batch Mode - should be left enabled u ...
- xargs: How To Control and Use Command Line Arguments
参考: http://www.cyberciti.biz/faq/linux-unix-bsd-xargs-construct-argument-lists-utility/ http://linux ...
- [Node.js] Pass command line arguments to node.js
Command line arguments are often used to modify the behavior of an application or specify needed par ...
- atprogram.exe : Atmel Studio Command Line Interface
C:\Program Files\Atmel\Atmel Studio 6.1\atbackend\atprogram.exe No command specified.Atmel Studio Co ...
- An annotation based command line parser
Java命令行选项解析之Commons-CLI & Args4J & JCommander http://rensanning.iteye.com/blog/2161201 JComm ...
- Getopt::Long - Extended processing of command line options
use Getopt::Long; my $data = "file.dat"; my $length = 24; my $verbose; GetOptions (" ...
- How to build .apk file from command line(转)
How to build .apk file from command line Created on Wednesday, 29 June 2011 14:32 If you don’t want ...
- Chrome-Console( Command Line API Reference)
来源于:https://developers.google.com/web/tools/chrome-devtools/console/command-line-reference The Comma ...
- 《The Linux Command Line》 读书笔记01 基本命令介绍
<The Linux Command Line> 读书笔记01 基本命令介绍 1. What is the Shell? The Shell is a program that takes ...
随机推荐
- ORM Nhibernet 框架的 CRUD 操作
Nhibernet 的基本语法: private ISession _session; public ISession Session { set { _session = value; } } pu ...
- uva-301-枚举-组合
题意:从A市到B市有n个站点,限制火车上搭乘的乘客数目,每个站点都从有一些乘车的订单,订单信息 从x到y,乘客m人,求解最大的收入是多少 最多7个站,22个订单 选取订单的时候没有顺序问题,所以不是全 ...
- phpmyadmin快速安装
phpMyAdmin 就是一种 MySQL 数据库的管理工具,安装该工具后,即可以通过 web 形式直接管理 MySQL 数据,而不需要通过执行系统命令来管理,非常适合对数据库操作命令不熟悉的数据库管 ...
- MySQL优化order by导致的 using filesort
using filesort 一般出现在 使用了 order by 语句当中. using filesort不一定引起mysql的性能问题.但是如果查询次数非常多,那么每次在mysql中进行排序,还是 ...
- Mongodb 安装 和 启动
教程:http://www.mongodb.org.cn/tutorial/59.html 下载 >wget https://fastdl.mongodb.org/linux/mongodb-l ...
- as3 对于加载进来多层swf缩放操作
//swf实际尺寸 var oldWidth:Number = frameLder.contentLoaderInfo.content.width; var oldHeight:Number = fr ...
- python, Django 的安装
yum install zlib yum install zlib-devel yum install openssl-devel 否则导致安装setuptools出错,还需要重新编译python 如 ...
- JVM gc介绍
Java语言出来之前,大家都在拼命的写C或者C++的程序,而此时存在一个很大的矛盾,C++等语言创建对象要不断的去开辟空间,不用的时候有需要不断的去释放控件,既要写构造函数,又要写析构函数,很多时候都 ...
- 本地Facts
我们可以通过Facts来获取目标主机的系统信息,当这些信息还不能满足我们的功能需要时,可以通过编写自定义的Facts模块来实现.当然,还有一个更简单的实现方法,就是通过本地Facts来实现.只需在目标 ...
- TCP/IP知识总结(TCP/IP协议族读书笔记三)
接下来,总结传输层的两大协议UDP和TCP. 一.UDP(用户数据报协议) 讲UDP之间,先了解两个概念:有连接和无连接. 有连接:通信之前,通信双方必须建立一条通道: 无连接:不需要建立通道,发送方 ...