Test automation means that a program executes and evaluates tests. To do so, it calls the application with defined inputs, compares the result with the expected one, and reports every deviation. Once written, such a test can be repeated as often as needed, in the same order and with the same data. Regression tests are particularly well suited. They confirm that a change has not affected anything elsewhere and are run again with every new version. The benefit lies in fast feedback, because a defect becomes apparent shortly after the change that caused it. That is a prerequisite for delivering software at short intervals. On the other side is the effort of writing the tests and maintaining them together with the application. The test strategy defines which tests justify this effort.
Which test levels are there?
For software testing, the ISTQB Certified Tester syllabus describes five test levels. Component testing, also called unit testing, verifies individual building blocks in isolation. Component integration testing verifies the interfaces and the interaction between components. System testing looks at the behavior of the entire system, and system integration testing at its interfaces to other systems and external services. Acceptance testing shows whether the system meets the needs of the business. The test types cut across these levels. Functional tests verify what a system does, and non-functional tests verify how well it does it. A load test is a non-functional test. It measures how the application behaves under many concurrent calls.
The test pyramid, with many fast tests and few broad ones
The test pyramid is a model for how automated tests are distributed across the layers of an application. Mike Cohn described it in 2009 in his book “Succeeding with Agile” with the three layers of unit tests, service tests, and UI tests. Tests in the bottom layer are small, isolated, and fast. Each one verifies a small piece of functionality, which is why many of them are needed. The top layer consists of end-to-end tests, which run through a large part of the application and take longer, so a few of them are enough. The number and names of the layers differ depending on the presentation. For test automation, the model sets a direction. Whatever can be verified at a lower level is verified there.
Quality engineering and quality assurance
Software testing and quality assurance are often treated as the same thing, but they mean different things. The ISTQB syllabus describes testing as a product-oriented, corrective approach that evaluates the product and uncovers defects. Quality assurance, by that definition, is a process-oriented, preventive approach that improves the processes in development and testing. Quality engineering is our name for the service that combines both in day-to-day development. It includes a test strategy, automated tests at every level, checks in the pipeline, and acceptance criteria that are settled before implementation. Our article Quality Assurance in Agile Software Development describes how quality assurance is anchored in agile teams. We offer test automation for custom software, with a focus on Java. The project examples on this page come from integration projects on the Anypoint Platform, whose Mule runtime runs on the JVM.