Chapter 6. Decision testing and simulation 125
by a developer. This archive is used when errors occur in the ruleset during the execution of a
scenario suite, and the business user needs help from a support team to understand what
Scenario suite formats
When creating a test suite or a simulation in Decision Center, the business user is presented
with a list of supported formats by the scenario suite creation wizard (Figure 6-2). These
formats are the scenario suite formats. They encapsulate the information that is required by
the testing and simulation features to understand how a scenario suite is defined and needs
Figure 6-2 Selection of a scenario suite format when creating a scenario suite in Decision Center
The scenario suite format defines the following information:
The scenario provider implementation to use at run time. The scenario provider is a Java
class that implements the ilog.rules.dvs.core.IlrScenarioProvider interface. The scenario
provider performs the following actions:
– The scenario provider retrieves scenario data and returns a set of input parameter
values for each scenario case.
– If the scenario is a test suite, the scenario provider provides the set of tests to be run
on each scenario case execution result.
– The scenario provider typically retrieves the scenario data and the test specification
from a dedicated data store (a relational database or a file, for example) that is
provided at creation time by the user running a test suite or simulation. Testing and
simulation for decision services on z/OS come with a predefined scenario provider.
This scenario provider retrieves both the scenario data and test specifications from a
Microsoft Excel workbook that was previously generated for a ruleset in Decision
Center or in Rule Designer. This scenario provider is referred to as the
. Information about the data store to use for a scenario provider is retrieved
from a dedicated graphical user interface in Decision Center and Rule Designer. For
Decision Center, this user interface is defined by a scenario suite resource renderer
class. This scenario suite resource renderer class is a Java class that implements the
interface. For Rule Designer, this user interface is defined by an Eclipse launch
Both the rendered class and the launch configuration plug-in fully qualified names are
stored in the scenario suite format, along with the scenario provider implementation fully
The precision (number of meaningful digits after decimal point) to use when testing
numbers. For example, you might want number comparison to be only meaningful up to
two digits after the decimal point; consider that an observed value of 2.55457 matches an
expected value of 2.55.
The list of execution details that can be tested when using this format to create a test suite.