Question
Anamata
NL
Last activity: 30 Jun 2018 3:30 EDT
WHEN rule with parameters failing unittest
My dear colleague @Bopstal presented me the follow problem.
Given:
A WHEN rule containing the follow advanced condition:
Input is a text property. The conditions are both configured as 'Expressions evaluates to true'.
Expected:
When the follow Inputs are entered and ran manually, the outcomes are as following:
My dear colleague @Bopstal presented me the follow problem.
Given:
A WHEN rule containing the follow advanced condition:
Input is a text property. The conditions are both configured as 'Expressions evaluates to true'.
Expected:
When the follow Inputs are entered and ran manually, the outcomes are as following:
- FooBar --> True
- FooBal --> True
- BooBar --> True
- BooBab --> False.
Pretty straight forward. Next, we created atestcase for this WHEN rule using multiple input conditions with in- and output as show above.
Actual:
When I run the test case, it fails. The last three inputs now return false instead of true. The outcome was true when I ran it manually. Can someone explain why?