Setting Element Results

TDD4C runs only Groovy elements. All other elements must be set in advance, otherwise the logic execution will fail.

To do so, use the .withElementResult method on TestRun. Setting the result for the Groovy element will ensure that the Groovy element will not be evaluated and the provided value will be used instead.

TestRun testRun = TestRun.builder() .withElementResult("NotComputedElement", "HardCodedValue") .buildLogicTest("MyLogic3")

Found an issue in documentation? Write to us.

Â