Concordion uses expressions to reference fields and call methods of the corresponding test fixture and to set specification variables.
In order to keep your specifications simple and maintainable, Concordion deliberately restricts the expression format that is allowed when instrumenting specifications. Complexity should be moved into the fixture code, and then evolved into a DSL, where it is easier to maintain. The idea is to have the fixture do all the work of fetching and munging the data and then return exactly the data that the spec needs, which helps to decouple the spec from the implementation.
The following expressions are available within Concordion commands:
However, if you really want to remove this restriction you can apply the annotation
@FullOGNL to your fixture class to allow
This would allow you to do things like
pass property values of Java beans into methods
, or use constant values in concordion:execute commands.