2.7. Working with Actionhandlers

Actionhandlers are a way to execute actions without creating a CAP manually first, they create and validate the CAP internally when a method is called.

The idea behind using Actionhandlers is to easier modularize tests. If a parameter of a method is null the action will not be executed, you can therefore create modules where not all actions are executed if the data for them is null. This allows to cover a wide range of potential tests with a single method call.

The general setup for API usage is the same as in the previous section. However beign able to execute a test we need to first register the AUT at the AUTRegistry, otherwise upon executing a test an Exception will occur.

Figure 2.8. Executing a test using an Actionhandler



Copyright BREDEX GmbH 2015. Made available under the Eclipse Public License v1.0.