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 within 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:

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

  • Create a new test document (described above)
  • Add a Section node under TestCase
  • Select TestCase node and set the Logic File Property
  • Add a Test under the Section node
  • Select the new Test node in the tree

From the document toolbar select Import all logic document expressions for test

The following window will appear:

Select all rows using CTRL+A key

Press the OK button and all the expressions will be loaded

Run the Test

  • Click on TestCase

  • Click on Run Tests

  • The completed tests will be listed
  • 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 April 12, 2022

Article Attachments

Was this article helpful?

Related Articles