Test classes, test suites and test steps can be annotated with
Conditional
. Parameters are injected by tapir at Test execution
runtime. There are several ways how to provide the data:
- unparameterized @Parameter: You have to implement a method which's name is derived from the field / parameter name in
the test class which returns the parameter
value()
or method()
: You have to implement a method with the given name in the test class which returns
the parameter
conditionalClass()
: The given providerClass has to provide a method which returns the parameter. The method name
can be derived from the field / parameter name or explicitly specified by using value()
/method()
.