soapUI JUnit integration

JUnit (http://junit.org/) is a framework to write repeatable tests in Java. As the name implies, the primary purpose of JUnit is to verify the functionality of individual units of code. However, by integrating with the external libraries, JUnit tests can be extended to verify integration as well as system tests.

Since the examples are the best way to describe something, without spending time on abstract descriptions, let's look into adding a JUnit test into our sample HotelReservation project.

  1. Open the hotel_reservation project in your favorite Integrated Development Environment (IDE). (Please revisit Chapter 2, The Sample Project to recap your memory on the project structure and location.)
  2. Create a test directory at the ...

Get Web Services Testing with soapUI 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.