unit-testingilogjrules

How to test ILOG JRules Ruleset without using DVS?


I'm trying to use JRules BRMS 7.1 for a project. And I found out that DVS has some limitation in testing Ruleset.

It is that it cannot test the content in collections of complex type in Excel scenario file templates.

But I understand it is normal as that kind of content is too complex for an Excel table format.

So anyone has any idea what is the best way to test a ruleset that need tons of test cases with lots of complex type input without using DVS?


Solution

  • If developers are doing the testing, then use JUnit with an embedded rule engine. If non-technical users need to perform testing, it may be simplest to upgrade to WODM 7.5 which does not have this limitation. If that is not an option, then it is possible to use JRules 7.1 DVS, but it is somewhat complex and involves creating a separate wrapper rule project that takes the output collections as input and in its XOM, performs the comparison with the actual results.