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

[Test Scenario] Rules are not loaded into 'New expectation' dialogue

XMLWordPrintable

    • Hide
      1. Create new project
      2. Navigate to some package of the new project
      3. Create new data object Person with one String attribute name
      4. Next in the same package create new Guided Decision Table that:
        • Has one condition column. Condition column will check Person's name for equality
        • Has one action column. Action column will set Person's name to some value
      5. Append one row into the table. The row will check if the name of the person equal to "john" and then set the name of the person to "JOHN"
      6. Save the decision table
      7. Next in the same package create new Test Scenario
      8. In the GIVEN part insert new Person with name "john"
      9. Invoke New expectation dialogue
      10. Click on the (show list)
        • No rules loaded
      11. In the same New expectation dialogue add Any fact that matches: Person
      12. In the EXPECT part set that you expect the Person's name equals to "JOHN"
      13. Click on the Run scenario
      14. The run will success
      15. Click on the Show rules fired
        • There will be shown rule that is expected in the step highlighted by red
      Show
      Create new project Navigate to some package of the new project Create new data object Person with one String attribute name Next in the same package create new Guided Decision Table that: Has one condition column. Condition column will check Person's name for equality Has one action column. Action column will set Person's name to some value Append one row into the table. The row will check if the name of the person equal to "john" and then set the name of the person to "JOHN" Save the decision table Next in the same package create new Test Scenario In the GIVEN part insert new Person with name "john" Invoke New expectation dialogue Click on the (show list) No rules loaded In the same New expectation dialogue add Any fact that matches: Person In the EXPECT part set that you expect the Person's name equals to "JOHN" Click on the Run scenario The run will success Click on the Show rules fired There will be shown rule that is expected in the step highlighted by red
    • NEW
    • NEW

      There is (show list) button in the New expectation dialogue. This button should show list of rules available in the current package. However my rules from the same package are not loaded. For more details, please see steps to reproduce.

            trikkola Toni Rikkola
            rh-ee-jomarko Jozef Marko
            Jozef Marko Jozef Marko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: