| ILOG JRules User Guide > Testing Rules with Rule Scenario Manager > Tasks > Executing Scenarios, Scenario Suites, Simulations, and RSM Archives > Executing a Scenario, Scenario Suite, or Simulation |
Executing a Scenario, Scenario Suite, or Simulation |
PREVIOUS NEXT |
After you have defined test cases for rules, by way of scenarios, scenario suites, simulations, or RSM archives containing a combination of these, you need to execute them to obtain the test results. The execution of scenarios, suites, and simulations is done in a similar way, but RSM archives are treated differently.
The objective of a scenario execution is to execute a ruleset on selected input data and apply tests on the ruleset execution results. To perform a scenario execution, you must first create or modify a scenario definition and a configuration relating to the scenario.
Scenarios can be executed individually, as part of a scenario suite or from within a simulation (a collection of scenario suites). Suites and simulations contain at least one and up to an unlimited number of scenarios. Scenarios can be executed in command-line, in JUnit, or in the Rule Scenario Manager Console (see the Rule Scenario Manager Console Online Help for details).
Scenarios, scenario suites, and simulations can be executed from the command line using Ant tasks. Examples of Ant scripts are provided in the build.xml files in the <InstallDir>/scenariomanager/samples/basics-javabinding and /basics-xmlbinding directories.
To execute through command-line:
MyScenarioSuiteJUnit is the class of the executable element to execute. An example of using run.swing can be seen in the in the build.xml file of the basics-xmlbinding sample.
For more detailed information, see Ant Commands for Scenario Execution.
Examples of Eclipse projects executing Rule Scenario Manager artifacts are provided in the <InstallDir>/scenariomanager/samples/basics-javabinding and /basics-xmlbinding directories. You can copy one of these projects and modify it for your own applications.
To execute a scenario, scenario suite, or simulation through JUnit in Eclipse:
ILOG_RSM_HOME, ILOG_EXECUTION_SERVER_HOME, and JRULES_HOME. These variables are normally created on installation of JRules.
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |