Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-5476

.scesim tests fail in windows but pass in mac

XMLWordPrintable

    • False
    • False
    • Undefined
    • 2022 Week 08-10 (from Feb 21)

      I have multiple dmns, but only one .scesim file to run the test. When I run my 'mvn clean test' it passes in mac os but fails on my windows.

      Please find the sample project attached for reproducing the issue

      Error:

      [INFO] Running com.tutotial.dmn.KogitoScenarioJunitActivatorTest
      [ERROR] Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.348 s <<< FAILURE! - in com.tutotial.dmn.KogitoScenarioJunitActivatorTest
      [ERROR] #1: Above speed limit: 10km/h and 30 km/h Time elapsed: 0.173 s <<< ERROR!
      org.drools.scenariosimulation.backend.runner.IndexedScenarioException: #1 Above speed limit: 10km/h and 30 km/h: Could not locate required dependency while importing DMN for namespace: com.tutorial.dmn.mortgageCalc.functions, name: mortg-funcs, modelName: null. (TrafficViolationTest)
      Caused by: java.lang.RuntimeException: Could not locate required dependency while importing DMN for namespace: com.tutorial.dmn.mortgageCalc.functions, name: mortg-funcs, modelName: null.

      [ERROR] #2: Above speed limit: more than 30 km/h Time elapsed: 0.041 s <<< ERROR!
      org.drools.scenariosimulation.backend.runner.IndexedScenarioException: #2 Above speed limit: more than 30 km/h: Could not locate required dependency while importing DMN for namespace: com.tutorial.dmn.mortgageCalc.functions, name: mortg-funcs, modelName: null. (TrafficViolationTest)
      Caused by: java.lang.RuntimeException: Could not locate required dependency while importing DMN for namespace: com.tutorial.dmn.mortgageCalc.functions, name: mortg-funcs, modelName: null.

      [ERROR] #3: Parking violation Time elapsed: 0.042 s <<< ERROR!
      org.drools.scenariosimulation.backend.runner.IndexedScenarioException: #3 Parking violation: Could not locate required dependency while importing DMN for namespace: com.tutorial.dmn.mortgageCalc.functions, name: mortg-funcs, modelName: null. (TrafficViolationTest)
      Caused by: java.lang.RuntimeException: Could not locate required dependency while importing DMN for namespace: com.tutorial.dmn.mortgageCalc.functions, name: mortg-funcs, modelName: null.

      [ERROR] #4: DUI violation Time elapsed: 0.037 s <<< ERROR!
      org.drools.scenariosimulation.backend.runner.IndexedScenarioException: #4 DUI violation: Could not locate required dependency while importing DMN for namespace: com.tutorial.dmn.mortgageCalc.functions, name: mortg-funcs, modelName: null. (TrafficViolationTest)
      Caused by: java.lang.RuntimeException: Could not locate required dependency while importing DMN for namespace: com.tutorial.dmn.mortgageCalc.functions, name: mortg-funcs, modelName: null.

      [ERROR] #5: Driver suspended Time elapsed: 0.036 s <<< ERROR!
      org.drools.scenariosimulation.backend.runner.IndexedScenarioException: #5 Driver suspended: Could not locate required dependency while importing DMN for namespace:
      com.tutorial.dmn.mortgageCalc.functions, name: mortg-funcs, modelName: null. (TrafficViolationTest)
      Caused by: java.lang.RuntimeException: Could not locate required dependency while importing DMN for namespace: com.tutorial.dmn.mortgageCalc.functions, name: mortg-funcs, modelName: null.

      [INFO]
      [INFO] Results:
      [INFO]
      [ERROR] Errors:
      [ERROR] KogitoScenarioJunitActivatorTest » IndexedScenario #1 Above speed limit: 10km/...
      [ERROR] KogitoScenarioJunitActivatorTest » IndexedScenario #2 Above speed limit: more ...
      [ERROR] KogitoScenarioJunitActivatorTest » IndexedScenario #3 Parking violation: Could...
      [ERROR] KogitoScenarioJunitActivatorTest » IndexedScenario #4 DUI violation: Could not...
      [ERROR] KogitoScenarioJunitActivatorTest » IndexedScenario #5 Driver suspended: Could ...
      [INFO]
      [ERROR] Tests run: 6, Failures: 0, Errors: 5, Skipped: 0
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 19.541 s
      [INFO] Finished at: 2021-07-06T12:12:32-04:00
      [INFO] ------------------------------------------------------------------------

              yamer@redhat.com Yeser Amer
              ravim786 Ravi Mangalagiri (Inactive)
              Jan Stastny Jan Stastny
              Jan Stastny Jan Stastny
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: