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

Generating mock WAR files from the command line


As you may have seen from the Deploying mocks as WAR files recipe in Chapter 3, Developing and Deploying Dynamic REST and SOAP Mocks, SoapUI has the useful ability to package mock services as WAR files using a wizard. As part of your build process, you may find it more useful to generate your mock service WAR file directly from the SoapUI project file using a script. Like with mocks and tests, this recipe shows how to use the <SoapUI Home>/java/app/bin/wargenerator.sh command-line script to do this. You can then use a variety of means, for example, Shell, Maven, or Gradle, to generate and deploy the mock service WAR file to a servlet container or application server of your choice.

Getting ready

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

You may find it helpful to refer back to the Deploying mocks as WAR files recipe from Chapter 3, Developing and Deploying Dynamic...