Question

2
Replies
72
Views
JeffGo Member since 2017 14 posts
Appriss, Inc
Posted: July 30, 2018
Last activity: August 14, 2018
Closed

Running a When rule gives different result than test case result when using a Text param that receives a number.

I believe I found a bug when considering a param that is set as a Text vs as an Integer.

SETUP:
1. Create a When rule "When Param.EmployeeType = 4", but make the Param.EmployeeType a "Text".

CREATE THE TEST CASE

  1. Click on the "Actions" -> "Run" for the When rule
  2. Enter the number 3 for the Value
  3. Click Run *Note that "false" is returned.
  4. Click Convert to Test
  5. Run the test and see it fail stating that the actual result is true.

FOLLOW-UP

  1. Now change Param.EmployeeType to Integer
  2. Re-run the test and it will pass.

The curious thing here is that when running the rule from "When", it works whether or not the param is a Text or Integer, but fails in the Test Case if the param is a Text.

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