DMN, xml parsing, autogenerating tescase

312 views Asked by At

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?

1

There are 1 answers

0
tarilabs On

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.