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

Test scenarios fails with default values

XMLWordPrintable

    • Hide

      1) Create a data model object with a numeric filed like int, double, etc. and sample rule
      eg -: Obj (id==0) of type int.

      2) In the test scenario

      For Given section, pass the value for id as 0.

      For expect section, select the data object and id field, by default the edit box would be populated by default value 0. Don't edit it.

      3) Run the test scenario, the test case will fail (refer attachment).

      4) Edit the field to some random value and run the test. Now change field value back to 0 and run the test. Now the test will pass (refer attachment).

      Show
      1) Create a data model object with a numeric filed like int, double, etc. and sample rule eg -: Obj (id==0) of type int. 2) In the test scenario For Given section, pass the value for id as 0. For expect section, select the data object and id field, by default the edit box would be populated by default value 0. Don't edit it. 3) Run the test scenario, the test case will fail (refer attachment). 4) Edit the field to some random value and run the test. Now change field value back to 0 and run the test. Now the test will pass (refer attachment).
    • Hide

      You can edit the default value and type the same value again to run the test case successfully.

      Show
      You can edit the default value and type the same value again to run the test case successfully.
    • NEW
    • NEW

      In test scenarios (Legacy test scenario) expect section, if we don't edit the default numeric values in expect section then test scenario fails, but if we edit and enter the same value it passes, sometimes we have to type a different value, run the test, then retype 0/0.0 for it to pass.

      The issue is always reproducible.

      Acceptance test

      • Default empty text
      • Default int zero , passed in re-review
      • Default double zero , passed in re-review
      • Default boolean true

        1. latestjbpmfailed.png
          126 kB
          Sudhish Nair
        2. latestjbpmpassed.png
          122 kB
          Sudhish Nair
        3. sample.drl
          0.2 kB
          Jozef Marko
        4. Screenshot from 2019-09-16 12-34-12.png
          69 kB
          Jozef Marko

            trikkola Toni Rikkola
            rhn-support-sudnair Sudhish Nair
            Jozef Marko Jozef Marko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: