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

Problems when defining a test scenario in Spanish with a Date field

XMLWordPrintable

    • Hide

      1. Create a Data object with at least one Date field.
      2. Create a rule file with no when part and in the then part we do a System.out.println of the Date field.

      In Spanish workbench:
      3. Create a test scenario in which we inform the Date field of the Data object with the provided calendar UI.
      4. Run the test scenario and observe the result in WildFly console. The Date field is null.

      In English workbench:
      3. Create a test scenario in which we inform the Date field of the Data object with the provided calendar UI.
      4. Run the test scenario and observe the result in WildFly console. The Date field has a value.
      5. Open the test scenario defined in Spanish to observe it does not load.

      We have the project in GitHub.
      Data object -> myorganization.myproject.bom.MyObject. It has a field myDate.
      Rule file -> myorganization.myproject.rules.MyFirstRule
      Rule -> "WHAT DATA DOES THIS HAVE"
      Test scenario -> myorganization.myproject.tests.MyTestSpanish, myorganization.myproject.tests.MyTestEnglish

      Show
      1. Create a Data object with at least one Date field. 2. Create a rule file with no when part and in the then part we do a System.out.println of the Date field. In Spanish workbench: 3. Create a test scenario in which we inform the Date field of the Data object with the provided calendar UI. 4. Run the test scenario and observe the result in WildFly console. The Date field is null. In English workbench: 3. Create a test scenario in which we inform the Date field of the Data object with the provided calendar UI. 4. Run the test scenario and observe the result in WildFly console. The Date field has a value. 5. Open the test scenario defined in Spanish to observe it does not load. We have the project in GitHub . Data object -> myorganization.myproject.bom.MyObject . It has a field myDate. Rule file -> myorganization.myproject.rules.MyFirstRule Rule -> "WHAT DATA DOES THIS HAVE" Test scenario -> myorganization.myproject.tests.MyTestSpanish, myorganization.myproject.tests.MyTestEnglish
    • NEW
    • NEW

      We detect two bugs:
      1. When executing a test scenario in a KIE workbench in Spanish, a field defined as Date seems not to be parsed correctly and always enters the rule file as null.
      2. When switching to English in the KIE workbench the test scenario we defined in Spanish does not load. When we change back to Spanish the page with the test scenario loads again.

      Why is this a bug?
      1. When we create the same test scenario in a KIE workbench in English, the field defined as Date has a value in the rule file and this value is the one that is provided in the test scenario .
      2. When we switch the KIE workbench to Spanish, the test scenario defined in English does not load.

            trikkola Toni Rikkola
            rudyatleti R D (Inactive)
            Jozef Marko Jozef Marko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: