skip to main content
Corticon Server: Integration & Deployment Guide : Packaging and deploying Decision Services : Using command line utilities to compile Decision Services : Syntax of the compile and test commands : Testing a Decision Service with a Ruletest
 

Try Corticon Now
Testing a Decision Service with a Ruletest
The test option executes one or more test sheets in a Corticon ruletest (.ert) file, and produces an output file with the test results
Table 26. usage: corticonManagement --test
Argument
Description
-i,--input file
Required. The source Ruletest .ert file to run.
-o,--output file
Required. Explicit path to the preferred output folder and file name (an .xml format file in the JUnit test output style.) The output file is not overwritten if it exists, instead the new test output is appended after test execution, thus enabling multiple executions of different test sets to log their output into a single report file.
-a,--all
Required unless --sheet is stated. Runs tests for all the testsheets in the specified Ruletest in the order that they are defined in the file. Overrides any specific testsheets listed in the sheet option.
-s,--sheet sheet_names
Required unless --all is stated. Runs tests for only the one or more (in a comma-separated list) specified testsheets in the Ruletest in the order that they are listed.
-ll,--loglevel level
Sets the log level to the specified level of detail. Defaults to current server log level, typically INFO.
-lp,--logpath path
Explicit path to the folder where CcServer.log will be saved. Defaults to the server's current log location, typically [CORTICON_WORK_DIR]/logs.
Example usage:
corticonManagement --test
--input C:\MyTest.ert
-a
-o C:\MyTest_out.xml
corticonManagement -t
-i C:\MyTest.ert
-o C:\MyTest_out.xml
-s sheet1,sheet2,sheet3