Question

3
Replies
525
Views
Michel Kraaij Member since 2016 21 posts
Valori B.V.
Posted: 2 years ago
Last activity: 2 years 3 months ago
Closed

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:

  • 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?

Low-Code App Development Testing Applications
Moderation Team has archived post
Share this page LinkedIn