Chapter 5. Automation and Scripting

In this chapter, we will cover the following topics:

  • Running mocks from the command line
  • Running tests from the command line
  • Providing environment-specific properties
  • Generating mock WAR files from the command line
  • Running mocks and tests using Maven
  • Running tests using Java and JUnit
  • Running mocks and tests using Groovy scripts
  • Running mocks and tests using Gradle

Introduction

This chapter covers some popular ways to run SoapUI mocks and functional tests to provide the scripting building blocks for continuous integration tools such as Bamboo, Hudson, Jenkins, and TeamCity, to run integration tests.

In all approaches, it's worth understanding that the same SoapUI framework runner classes are used:

The AbstractSoapUIRunner ...

Get SoapUI Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.