apache / incubator-kie-tools

Tools for KIE
Apache License 2.0
248 stars 183 forks source link

More informative SCESIM Error messages #888

Closed Sciumo closed 2 years ago

Sciumo commented 2 years ago

Testing is driven by understanding errors and correcting them. It is very difficult to use SCESIM for meaningful testing, due to the lack of meaningful error messages. I can't diagnose anything from the simple "NoSuchElementException". Which element? The DMN file works fine from the command line using 'jbang'. Takes 1 string, returns 1 string translated.

-------------------------------------------------------------------------------
Test set: com.example.KogitoScenarioJunitActivatorTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.004 s <<< FAILURE! - in com.example.KogitoScenarioJunitActivatorTest
initializationError  Time elapsed: 0.002 s  <<< ERROR!
org.drools.scenariosimulation.backend.runner.ScenarioException: Issue on parsing file: /src/DMN_Test/target/test-classes/abrtest.scesim
Caused by: java.util.NoSuchElementException
yesamer commented 2 years ago

Hi @Sciumo can you please share a DMN/Scesim file that reproduces the issue? Not necessary the one you're using, but I need it to reproduce it.

yesamer commented 2 years ago

@Sciumo It seems you are facing the same issue reported here https://github.com/kiegroup/kie-tools/issues/884. Can you please try to update your asset to Kogito 1.18.0 version?

yesamer commented 2 years ago

@Sciumo Can you please confirm updating to kogito-runtime version 1.18.0 solved the issue?

Sciumo commented 2 years ago

I've updated to 1.18, but I was forced to move over just to using DMN builder test classes. I'll check again when I can. But in general, please capture more of the error when reporting, so I can provide better feedback or fix it myself.

ederign commented 2 years ago

@Sciumo I'm closing this issue due to inactivity. Feel free to reopen it if necessary.

Sciumo commented 2 years ago

What is there to reproduce? There is very little information in the message. I'm not reporting any more issues.