Question

3
Replies
555
Views
Close popover
Michel Kraaij - van den Berg (Michel Kraaij)
Valori B.V.
ChapterLead Pega, Testconsultant, Pega Certified ATP Instructor
Valori B.V.
NL
Michel Kraaij Member since 2016 22 posts
Valori B.V.
Posted: June 28, 2018
Last activity: June 30, 2018
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?

DevOps Testing Applications
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.