Book Image

SoapUI Cookbook

By : Rupert Anderson
Book Image

SoapUI Cookbook

By: Rupert Anderson

Overview of this book

Table of Contents (19 chapters)
SoapUI Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Running tests from the command line


SoapUI tests can be run from the command line in a similar way to mocks using the <SoapUI Home>/java/app/bin/testrunner.sh script. This recipe builds on the previous one, in that it shows how to run the tests in the SOAPMock-soapui-project.xml project against it's mock.

Getting ready

Like before, we just need to install SoapUI and access the SOAPMock-soapui-project.xml project from the chapter 3 samples.

How to do it…

If you run testrunner without any parameters, you should see the help options, as shown in the following screenshot:

Tip

Pro version options are E, -F, -g, -o, –R, and -l.

Like with the mock command-line script, the only mandatory parameter is <soapui project file>, which makes this the simplest command to run all test cases in a project, for example:

./testrunner.sh /soapui-cookbook/chapter3/SOAPMock-soapui-project.xml

To run this, either start the mock in a separate shell using the command line (explained in the previous recipe), or...