이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 69. Using list and map collections in test scenarios


The test scenarios designer supports list and map collections for both DMN-based as well as rules-based test scenarios. You can create and define a collection like a list or a map ​as the value of a particular cell in both GIVEN and EXPECT columns.

For rules-based test scenarios, the designer supports the following collections:

  • java.util.Collection
  • java.util.List
  • java.util.ArrayList
  • java.util.LinkedList
  • java.util.Map
  • java.util.HashMap
  • java.util.LinkedHashMap
  • java.util.TreeMap
Note

The test scenarios designer does not support java.util.Set collections. For map entries, you must set the entry key as a String data type.

To pass the parameter in the EXPECT column of Rule-based collection editor use the actualValue keyword whereas use the ? keyword in DMN-based test scenario.

Procedure

  1. Set the column type first (use a field whose type is a list or a map).
  2. Double click a cell in the column to input a value.
  3. To create the list values for the data objects in the collection editor popup:

    1. Select Create List.
    2. Click Add new item.
    3. Enter the required value and click the check icon dmn datatype constraints tickmark to save each collection item that you add.
    4. Click Save.
    5. To edit an item from the collection, click the pencil icon in the collection popup editor.
    6. Click Save changes.
    7. To delete an item from the collection, click the bin icon in the collection popup editor.
  4. To define the list values for the data objects in the collection editor popup:

    1. Select Define List.
    2. Use the MVEL or FEEL expression to define a list value in the text field.

      Rule-based test scenario uses MVEL expression language and DMN-based test scenario uses FEEL expression language.

    3. Click Save.
  5. To create the map values for the data objects in the collection editor popup:

    1. Select Create Map.
    2. Click Add new item.
    3. Enter the required value and click the check icon dmn datatype constraints tickmark to save each collection item that you add.
    4. Click Save.
    5. To edit an item from the collection, click the pencil icon in the collection popup editor.
    6. Click Save changes.
    7. To delete an item from the collection, click the bin icon in the collection popup editor.
  6. To define the map values for the data objects in the collection editor popup:

    1. Select Define Map.
    2. Use the MVEL or FEEL expression to define a map value in the text field.

      Rule-based test scenario uses MVEL expression language and DMN-based test scenario uses FEEL expression language.

    3. Click Save.

      Note

      To define the map values for DMN-based test scenario, you can add a fact and use the FEEL expression, instead of using the collection editor.

  7. Click Remove to delete the entire collection.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat