此内容没有您所选择的语言版本。

Chapter 78. Feature comparison of legacy and new test scenario designer


Red Hat Process Automation Manager supports both the new test scenario designer and the former test scenario (Legacy) designer.

The default designer is the new test scenario designer, which supports testing of both rules and DMN models, and provides an enhanced overall user experience with test scenarios. You can continue to use the legacy test scenario designer, which only supports rule-based test scenarios.

Important

The new test scenario designer has an improved layout and feature set and continues to be developed. However, the legacy test scenario designer is deprecated with Red Hat Process Automation Manager 7.3.0 and will be removed in a future Red Hat Process Automation Manager release.

The following table highlights the main features of legacy and new test scenario designer, which are supported in Red Hat Process Automation Manager to help you decide a suitable test scenario designer in your project.

  • + indicates that the feature is present in the test scenario designer.
  • - indicates that the feature is not present in the test scenario designer.
Table 78.1. Main features of legacy and new test scenario designer
Feature & highlightsNew designerLegacy designerDocumentation

Creating and running a test scenario

  • You can create test scenarios in Business Central to test the functionality of business rule data before deployment.
  • A basic test scenario must have at least a related data objects, GIVEN facts, and EXPECT results.
  • You can run the tests to validate your business rules and data.

+

+

Adding GIVEN facts in test scenarios

  • You can insert and verify the GIVEN facts for the test.

+

+

Adding EXPECT results in test scenarios

  • The EXPECT section defines the expected results based on the GIVEN input facts.
  • It represents the objects and their fields whose exact values are checked based on the provided information.

+

+

KIE session

  • You can set KIE session on test scenario level settings.

+

+

NA

KIE base on test scenario level

  • You can set KIE base on test scenario level settings.

-

+

NA

KIE base on project level

  • You can set KIE base on project level settings.

+

+

NA

Simulated date and time

  • You can set a simulated date and time for the legacy test scenario designer.

-

+

NA

Rule flow group

  • You can specify a rule flow group to be activated to test all the rules within that group.

+

+

Global variables

  • Global variables are named objects that are visible to the decision engine but are different from the objects for facts.
  • Setting global variables for new test scenario is deprecated .
  • In case you want to reuse data sets for different scenarios, you can use the Background instance.

-

+

Call method

  • You can use this to invoke a method from another fact when the rule execution is initiated.
  • You can invoke any Java class methods from the Java library or from a JAR that was imported for the project.

+

+

Modify an existing fact

  • You can modify a previously inserted fact in the decision engine between executions of the scenario.

-

+

For more information about modifying an existing fact in test scenarios (legacy), see Section 77.1.1, “Adding GIVEN facts in test scenarios (legacy)”.

Bound variable

  • You can set the value of a field to the fact bound to a selected variable.
  • In the new test scenario designer, you can not define a variable inside a test scenario grid and reuse it inside GIVEN or EXPECTED cells.

-

+

For more information about how to set bound variables in test scenarios (legacy), see Section 77.1.1, “Adding GIVEN facts in test scenarios (legacy)”.

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.