A complete test automation scenario
We have looked at a number of different ways of working with test automation. Assembling the pieces into a cohesive whole can be daunting.
In this section, we will have a look at a complete test automation example, continuing from the user database web application for our organization, Matangle.
You can find the source code in the accompanying source code bundle for the book.
The application consists of the following layers:
- A web frontend
- A JSON/REST service interface
- An application backend layer
- A database layer
The test code will work through the following phases during execution:
- Unit testing of the backend code
- Functional testing of the web frontend, performed with the Selenium web testing framework
- Functional testing of the JSON/REST interface, executed with soapUI
All the tests are run in sequence, and when all of them succeed, the result can be used as the basis for a decision to see whether the application stack is deemed healthy enough to deploy to a test...