'DMN, xml parsing, autogenerating tescase

A simple dmn model is created with one input and a decision for that . How to parse the xml of the dmn model using saxon and autogenerate testcase?



Solution 1:[1]

To only parse the DMN model definition, you can use the marshalling modules of the Drools DMN Engine, specifically the marshalling module is called kie-dmn-backend, which uses plain java object definition from kie-dmn-model module.

A good entry-point could be for you to have a look at this JUnit test.

To auto-generate some test cases, specifically for Decision Tables, you might want to consider MC/DC algorithm such as the one presented in this talk.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 tarilabs