Bug 724305 (BRMS-250) - Add data to collection field of facts in test scenario
Summary: Add data to collection field of facts in test scenario
Keywords:
Status: VERIFIED
Alias: BRMS-250
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRM (Guvnor)
Version: 5.0.0 GA
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ER1
: BRMS 5.3.1 GA
Assignee: manstis
QA Contact: Jiri Locker
URL: http://jira.jboss.org/jira/browse/BRM...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-19 06:04 UTC by Toshiya Kobayashi
Modified: 2021-02-16 02:47 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Feature Request


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker BRMS-250 0 Major Closed Add data to collection field of facts in test scenario 2015-09-28 13:46:52 UTC

Description Toshiya Kobayashi 2010-01-19 06:04:15 UTC
Help Desk Ticket Reference: https://enterprise.redhat.com/issue-tracker/394443
securitylevel_name: Public

I can't configure relationship between facts through collection field in "Given" section of BRMS test scenario editor.

e.g. I have facts has relationship through collection field.

=======
public class Section {
...
}

public class Company {
private ArrayList<Section> SectionList;
...
}
========

In case of a java test case, I can setup facts like:

Company company = new Company();
Section sectionA = new Section();
company.getSectionList().add(sectionA);

But, in BRMS test scenario editor, When I tried to set "sectionList" field of Company, I saw a simple textbox. There is no way to add multiple sections to a company.

Comment 1 Toshiya Kobayashi 2010-01-19 06:05:07 UTC
Link: Added: This issue incorporates GUVNOR-441


Comment 2 Toshiya Kobayashi 2012-08-28 05:43:32 UTC
This has been already fixed in BRMS 5.3.0. You can use "Guided List" since BRMS 5.1.0 for Collection field.

Comment 3 Lukáš Petrovický 2012-08-28 06:20:39 UTC
(In reply to comment #2)
> This has been already fixed in BRMS 5.3.0. You can use "Guided List" since
> BRMS 5.1.0 for Collection field.

OK, let's verify it in a release.

Comment 4 Jiri Locker 2012-09-12 16:00:14 UTC
Guided List works fine in 5.3.1.

I also checked Guided List in latest 5.1, but the feature seems to be broken there. However, in any version, if Guided List is missing or broken, it is always possible to use the textbox (Literal value) to populate the collection field with

=[a, b, c]

where a, b, c are fact names of the given facts.


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