Summary
Test automation is not another Nice-to-Have task when it comes to service-oriented solutions. In order to achieve the real advantages of SOA adoption, automated testing should play a key role and it must be part of the mainstream build process. In this chapter, we discussed the necessities of having automated tests in SOA projects. Then, we summarized the steps involved in Continuous Integration (CI) systems and why CI is important in SOA. soapUI facilitates the automatic execution of tests using multiple approaches. First, we looked into the integration of soapUI with the JUnit test framework and invoked soapUI tests as part of JUnit tests. Then, we discussed how those JUnit tests can be run continuously from Apache Ant. We also looked into the command line testrunner
scripts provided by soapUI. Finally, we went through a sample Maven project to demonstrate how the Maven soapUI plugin can be used to run soapUI tests as part of the Maven build cycle.