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

Chapter 68. Background instance in test scenarios


In test scenario designer, you can use the Background tab to add and set background data for rules-based and DMN-based test scenarios. You can add and define the GIVEN data which is common for the entire test scenario simulation, based on the available data objects. Background tab has the ability to add and share the data among every test scenario. Data added using the Background tab can not be overridden by Model tab data.

For example, if the test scenario example requires the same value for the person Age in all test scenarios, you can define the Age value in the Background page and exclude that column from the test scenario table template. In this case, the Age is set to 25 for all test scenarios.

Figure 68.1. Example test scenarios with repeated value for Age

test scenarios with repeated value for Age

Figure 68.2. Example background definition of repeated value for Age

background definition of repeated value for Age

Figure 68.3. Modified test scenario template with excluded Age column

Modified test scenario template with excluded Age column
Note

The GIVEN data which is defined in the Background tab can only be shared between the test scenarios of the same *.scesim file and will not be shared among different test scenarios.

68.1. Adding a background data in rule-based test scenarios

Follow the procedure below to add and set a background data in rule-based test scenarios.

Prerequisites

Procedure

  1. Open the rule-based test scenarios in the test scenario designer.
  2. Click the Background tab of the test scenarios designer.
  3. Select an instance header cell in the GIVEN section to add a background data object field.
  4. From the Test Tools panel, select the data object.
  5. Click Insert Data Object.
  6. Select a property header cell to add a background data object field.
  7. From the Test Tools panel, select the data object.
  8. Click Insert Data Object.
  9. To add more properties to the data object, right-click the property header cell and select Insert column right or Insert column left as required.
  10. Use the contextual menu to add or remove columns and rows as needed.
  11. Run the defined test scenarios.

68.2. Adding a background data in DMN-based test scenarios

Follow the procedure below to add and set a background data in DMN-based test scenarios.

Prerequisites

Procedure

  1. Open the DMN-based test scenarios in the test scenario designer.
  2. Click the Background tab of the test scenarios designer.
  3. Select an instance header cell in the GIVEN section to add a background data object field.
  4. From the Test Tools panel, select the data object.
  5. Click Insert Data Object.
  6. Select a property header cell to add a background data object field.
  7. From the Test Tools panel, select the data object.
  8. Click Insert Data Object.
  9. To add more properties to the data object, right-click the property header cell and select Insert column right or Insert column left as required.
  10. Use the contextual menu to add or remove columns and rows as needed.
  11. Run the defined test scenarios.
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

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

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

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

Red Hat 소개

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

© 2024 Red Hat, Inc.