Use the regression tester from the command line

Command-line support has been added for the regression tester. The C# project "RegressionTester.CmdLine.exe" within the regression tester solution provides an executable that allows a rulebase project's test scripts to be executed from the command line.

The executable produced by this C# project is named Oracle.Policy.Modeling.RegressionTester.CmdLine. It can be used in two different modes:

  1. Oracle.Policy.Modeling.RegressionTester.CmdLine rulebase-file testscript-file [options ]
    This is default mode. The tool takes the supplied compiled rulebase file (.xml) and tests it using the supplied test script file (.tsc).
  2. Oracle.Policy.Modeling.RegressionTester.CmdLine -project rulebase-project-file [options ]
    Project mode. This mode takes the supplied rulebase project, and tests it using all test scripts that are associated with the project.

The following options can be used:

Formatting of datatypes

For the tool's standard (non-XML) output, the region setting for the rulebase provided is used to determine the formatting used for data types such as date, datetime and timeofday.

For example, say we have a test case where one of the outcomes is a date. If the rulebase region is United States, then the expected and actual values for the date will be displayed in MM/DD/YYYY format. However, if the rulebase region is set to Australia, DD/MM/YYYY format will be used.