Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-5230

Managing a List of structures in Test Scenario editor produces an Exception

XMLWordPrintable

    • 2020 Week 16-18 (from Apr 13), 2020 Week 52-03 (from Dec 21), 2021 Week 04-06 (from Jan 25)
    • 3
    • Hide
      1. Import the attached project into business central
      2. Open the test scenario `Test Math Functions`
      3. Double-click on the the `List(3)` in the first row under the `numbers` value in the `Given` Column
      4. Use the "trashcan" icon to delete the first item in the list
      5. Click the `Save` button
      6. The following error is presented: `Uncaught exception: Exception caught: (TypeError) : Cannot read property 'Tc' of undefined Caused by: (TypeError) : Cannot read property 'Tc' of undefined`
      7. Once this error is presented, the list becomes corrupted. The entire list can be removed by choosing the `Define List` radio button, clicking `Save`, and then choosing the `Create List` radio button.
      Show
      Import the attached project into business central Open the test scenario `Test Math Functions` Double-click on the the `List(3)` in the first row under the `numbers` value in the `Given` Column Use the "trashcan" icon to delete the first item in the list Click the `Save` button The following error is presented: `Uncaught exception: Exception caught: (TypeError) : Cannot read property 'Tc' of undefined Caused by: (TypeError) : Cannot read property 'Tc' of undefined` Once this error is presented, the list becomes corrupted. The entire list can be removed by choosing the `Define List` radio button, clicking `Save`, and then choosing the `Create List` radio button.
    • NEW
    • NEW

      When trying to delete an item from a list of structures with nested structures in the scenario editor, an exception is thrown with a message that is not helpful to the end user.

      Log entry is:
      ```
      [[0m[[31m17:16:51,564 ERROR [org.kie.workbench.common.services.backend.logger.GenericErrorLoggerServiceImpl] (default task-415) Error from user: xxxxx Error ID: -881202734 Location: LibraryPerspective|$ProjectScreen[!Worg.kie.dmn.decision.navigator,EDiagramEditorPropertiesScreen,Eorg.drools.scenariosimulation.TestTools?scesimeditorid=1,!Eorg.drools.scenariosimulation.TestTools?scesimeditorid=2,Eorg.docks.PlaceHolder?name=testRunnerReportingPanel,Worg.kie.guvnor.explorer,],DMNDiagramEditor?path_uri=default://master@dm-ai/XmlValidationBug/src/main/resources/Math%2520Functions.dmn&file_name=Math%20Functions.dmn&has_version_support=true,DMNDiagramEditor?path_uri=default://master@dm-ai/XmlValidationBug/src/main/resources/Divide.dmn&file_name=Divide.dmn&has_version_support=true,org.kie.workbench.common.screens.messageconsole.MessageConsole,,AddAssetsScreen,ScenarioSimulationEditor?path_uri=default://master@dm-ai/XmlValidationBug/src/test/resources/Test%2520Math%2520Functions.scesim&file_name=Test%20Math%20Functions.scesim&has_version_support=true Exception: Uncaught exception: Exception caught: (TypeError) : Cannot read property 'Tc' of undefined Caused by: (TypeError) : Cannot read property 'Tc' of undefined
      ```

      From UI I could see: `Uncaught exception: Exception caught: (TypeError) : Cannot read property 'Tc' of undefined Caused by: (TypeError) : Cannot read property 'Tc' of undefined`

      (Screenshot is attached)

              yamer@redhat.com Yeser Amer
              tracyhires Tracy Hires (Inactive)
              Jan Stastny Jan Stastny
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: