Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-939

Support for multiple instances of the same class in Test Scenarios

XMLWordPrintable

      In Test Scenarios (not legacy) is not possible to have more than one instance per class in GIVEN or EXPECTED table cells. Hence, it's impossible to test scenarios where the user have to insert more than one fact of the same class into the scenario.

      There's a "trick" to add the same class again to the Test Scenario, that is searching for the class in the search input in the tree view. Once the class appears after the search, one could add it again to the scenario. This method doesn't work since the engine only recognizes as a instance the most right instance in the cell (see attached image).

      For reference, please see this repository (authored in 7.4.0). There is a test scenario using the legacy version, which works perfectly when inserting more than one instance of the same fact into the scenario.

        1. screencast-23-04-19-2.webm
          844 kB
          Klara Bezdekova
        2. Screenshot from 2019-04-22 16-37-24.png
          52 kB
          Ricardo Zanini

              gcardosi Gabriele Cardosi (Inactive)
              rhn-support-zanini Ricardo Zanini
              Klara Bezdekova Klara Bezdekova
              Klara Bezdekova Klara Bezdekova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: