1. Home
  2. FlexRule Designer
  3. Testing
  4. Testing Rules Expressions Syntax

Testing Rules Expressions Syntax

◷ Reading Time: 3 minutes

This type of test allows you to build a test case for all expressions in your logic. The big difference between this Expression Tree test case and the other Logic test case is that this test will ignore:

  1. the logical order of Boolean expressions
  2. the Boolean operators of the Decision Table

This test case is designed specifically to cover expression testing on Decision Table logic.

Create new Expression Testcase

To add this type of test document, you simply need to add a new type of logic as shown below:

Rules expressions-Create new Expression Testcase

Providing data

When building an expression test you should still provide data for checking the expression syntax. To create and set data in a test logic document, visit the test builder section.

Importing from a Decision Table

  1. Create a new test document (described above)
  2. Add a Section node under TestCase


  3. Select TestCase node and set the Logic File Property


  4. Add a Test under the Section node


  5. Select the new Test node in the tree
  6. From the document toolbar select Import all logic document expressions for test


    The following window will appear:

  7. Select all rows using CTRL+A key
  8. Press the OK button and all the expressions will be loaded

Run the Test

  1. Click on TestCase


  2. Click on Run Tests


  3. You will see the completed tests


  4. Click on any of the tests to see more details

Download Sample Project

Download the following sample project which contains the sample expression tree explained in the above steps.

Updated on December 4, 2020

Article Attachments

Was this article helpful?

Related Articles