Open topic with navigation
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:
- 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).
- 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:
- -javaengine - Optional. Indicates that the java version of the rule engine should be used to run the regression test. By default the .NET version of the rule engine is used.
- -outputfile path - Optional. Specifies that output should be written to the supplied file. By default output is written to the console.
- -verbose - Optional. Provide verbose output. When this option is used, the result of every test case outcome is reported. By default, only those outcomes that fail are reported on.
- -xml - Optional. Results are output in JUnit XML format
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.