Bug 725302 - List of String values not displayed correctly in given fact of Test Scenario
Summary: List of String values not displayed correctly in given fact of Test Scenario
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: User Interface
Version: 5.1.0 GA
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Toni Rikkola
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-25 03:16 UTC by Jason Shepherd
Modified: 2018-11-14 11:30 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
When adding test scenarios to a 'Given' fact with a field value of type string, the literal values added were not always displayed correctly in the guided editor.
Clone Of:
Environment:
Last Closed:
Type: ---


Attachments (Terms of Use)
Example repository (51.17 KB, application/zip)
2011-07-25 03:16 UTC, Jason Shepherd
no flags Details
Actual result, showing the entered value is not dislayed (288.25 KB, image/jpeg)
2011-07-25 03:17 UTC, Jason Shepherd
no flags Details
Screenshot showing the value I entered, and expect to be displayed after saving (287.07 KB, image/jpeg)
2011-07-25 03:18 UTC, Jason Shepherd
no flags Details

Description Jason Shepherd 2011-07-25 03:16:20 UTC
Created attachment 514959 [details]
Example repository

Description of problem:

When creating a test scenario, and adding a given fact, with a field of type java.util.List<String>, the literal values added are not displaying correctly in the guided editor.

Version-Release number of selected component (if applicable):


How reproducible:

See the attached repository. View the 'testList' test scenario, and attached screen shot of the fact I added.

Steps to Reproduce:
1. Add a POJO model with a field of type java.util.List<String>
2. Create a rule that fires if a value in that list is equal to literal value (see attached repo MyListRule) 
3. Create a test case with a 'Given' fact of the type imported in step 1. 
4. Insert a value for the fact like '="hello"'
  
Actual results:

The value entered in step 4 is not displayed

Expected results:

The value entered in step4 should be displayed

Additional info:

If you run the test scenario, it passes, so the given fact was inserted without problems, even though it doesn't display correctly.

Comment 1 Jason Shepherd 2011-07-25 03:17:19 UTC
Created attachment 514960 [details]
Actual result, showing the entered value is not dislayed

Comment 2 Jason Shepherd 2011-07-25 03:18:10 UTC
Created attachment 514961 [details]
Screenshot showing the value I entered, and expect to be displayed after saving

Comment 3 Jason Shepherd 2011-07-25 03:22:27 UTC
This is known to occur in Firefox versions 3 and 5, as well as Chrome.

Comment 4 Anne-Louise Tangring 2011-08-12 15:51:18 UTC
Candidate only

Comment 5 Toni Rikkola 2011-09-19 11:18:03 UTC
It works for me when I use "Guided list" for the myList field and "hello" without the =.

To make it work with the =, I used "literal value" for myList field and placed =["hello"] into the textbox.

There has been some changes to the codes around this section so it is possible that the behavior described in this ticket is gone now.

Comment 6 Jiri Locker 2011-09-22 13:30:09 UTC
Reproduced with BRMS 5.1.0, cannot reproduce with BRMS 5.2.0 ER4.

Comment 7 lcarlon 2011-09-23 01:03:36 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
When adding test scenarios to a 'Given' fact with a field value of type string, the literal values added were not always displayed correctly in the guided editor.


Note You need to log in before you can comment on or make changes to this bug.