Creating a test case for Decision Table fails with execution error
I created a decision table which has over 500 cells. I used the Import option to do that. The decision table passes completeness and conflict tests. I save and check in the code with no issues. It has a Param.Code that I use to check the value in the row to return that row of data.
I realize I need to create a test case for the dec. table. I click Run and get the following error:
I'm not really sure how to fix this, so I turn the tracer on to see what that might tell me:
Clicking on one of the FAILs, I get:
I had expected when I clicked run, it would show me the screen to allow me to enter a value for the missing parameter. What am I doing incorrectly?
Decision table's run functionality is not comprehensive. It doesn't prompt for parameters and some of the non-scalar properties. Despite of the result you see in the run dialog, you can go ahead and click on "Convert to test" button which opens the test case rule form for the decision table. In the rule form, you would be able to see all the properties & parameters that were validated to produce the output. You may give all possible combinations of inputs & expected outputs, to save the test case. Please refer to the PDN article mentioned above to find more info on this.