Test a Decision Table
Test conditions in a Decision Table.
Test a Decision Table
Test the conditions in a Decision Table to ensure they work as expected. If desired, use the Sample Input panel to mock Request variables and Magic Variables enclosed in mustache syntax to test how the Decision Table runs using data you expect.
Follow these guidelines to mock data coming into your Decision Table:
View Decision Tables. The Decision Tables tab displays all Decision Tables.
Select a Decision Table to edit in which to test conditions.
Paste the JSON data model into the Sample Input panel in the Decision Table Editor. If you use any variables as defined in the JSON data model in your Decision Table, the Decision Table Editor uses those variable values during testing.
Mock the variables enclosed in mustaches that your Inputs would reference.
Click Run.
In the Output panel, view the mocked data. If the Decision Table evaluates successfully, its output displays in the Output panel. If the Decision Table does not evaluate successfully, the language engine evaluating the Decision Table displays an error.