Pages Navigation Menu

Coding is much easier than you think

Running functional tests from the command-line

Posted by on May 5, 2013 in Soap-UI | 0 comments


Running functional tests from the command-line is straightforward and simple using the included testrunner.bat/.sh script, which takes a number of arguments to control which tests to run, output, etc:


  • e : The endpoint to use when invoking test-requests, overrides the endpoint set in the project file
  • h : The host:port to use when invoking test-requests, overrides only the host part of the endpoint set in the project file
  • s : The TestSuite to run, used to narrow down the tests to run
  • c : The TestCase to run, used to narrow down the tests to run
  • u : The username to use in any authentications, overrides any username set for any TestRequests
  • p : The password to use in any authentications, overrides any password set for any TestRequests
  • w : Sets the WSS password type, either ‘Text’ or ‘Digest’
  • d : The domain to use in any authentications, overrides any domain set for any TestRequests
  • r : Turns on printing of a small summary report (see below)
  • f : Specifies the root folder to which test results should be exported (see below)
  • j : Turns on exporting of JUnit-compatible reports, see below
  • a : Turns on exporting of all test results, not only errors
  • : Opens the generated report in a browser (SoapUI Pro only)
  • i : Enables SoapUI UI-related components, required if you use the UISupport class for prompting or displaying information
  • t : Sets the soapui-settings.xml file to use, required if you have custom proxy, ssl, http, etc setting
  • x : Sets project password for decryption if project is encrypted
  • v : Sets password for soapui-settings.xml file
  • D : Sets system property with name=value
  • G : Sets global property with name=value
  • P : Sets project property with name=value, e.g. -Pendpoint=Value1 -PsomeOtherProperty=value2
  • S : Sets to save the project file after tests have been run
  • I : Do not stop if error occurs, ignore them
  • 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)
  • 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)
  • g : Sets the output to include Coverage HTML reports ( SoapUI Pro only )
  • E : Sets which environment to use (SoapUI Pro only)


Launching the TestRunner from within SoapUI

Before getting started, with the command line testrunner, SoapUI includes a “Launch TestRunner” action available from Project, TestSuite or TestCase popup menus, which launches the bundled command-line tools from inside SoapUI.


The IDE plugins do not include these runners, you will need to download/install SoapUI seperately and point the “TestRunner Path” option in this dialog to the install directory).



The dialog looks as follows:

Here we’ve specified some initial settings to run the current TestCase, in the Report tab we can specify which reports to generate:


Now if we run the testrunner we get:

5_start runx



Scrolling back up in the opened window we can see the actual command issued at the command-line:


8_cmd exe


Copy and paste the below highlighted into your favorite automation tool for rerun these tests as configured.

9_cmd exe paste


That is all!!! ;)


Read More

Establish JDBC connection in SOAPUI PRO

Posted by on Mar 2, 2013 in Soap-UI | 0 comments

To establish JDBC connection all you need is 3 simple things,

  • OJDBC 14 Jar File
  • Database Connection String
  • Database details

Now I am gonna tell you how to establish JDBC connection in PRO using Oracle XE (eXpress Edition). Before you start this, you have to download OJDBC 14 Jar file from oracle site and place it in the path specified.
** Update – Complete SoapUi Tutorials now available here


Now you can proceed with the below steps to work with the connection.

Step 1: Open ur SOAPUI Pro by clicking on SOAPUIPro.exe

Step 2: Now choose a project and double click on it.

Step 3: In the Project editor window we have many tabs. Choose JDBC connections tab.

Step 4: Click on Add a New Data Connection icon.

Step 5: Specify a name for your connection.

Step 6: Now configure your database connection by providing the following details.

Driver : Choose the driver based on the type of Database (Eg: Oracle, MySql, MSAccess, etc.,)

User : Your Database username

Password : Your Database password

Database : Database Name

Note: For some of the databases like Oracle, it will prompt for another field called SID (System Identification)

The query to find the above details is as follows:

select ora_database_name from dual;

select * from v$database;

select * from global_name;

JDBC connection

Step 7: Now test your connection by clicking on the run button.

The connection will be established successfully.


Read More