|
Rule Designer API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.dvs.rbtesting.IlrRBTScenarioReport
public class IlrRBTScenarioReport
Represents the out parameter for the ruleset being tested. Use this class to write failure instructions inside the rules being tested.
Constructor Summary | |
---|---|
IlrRBTScenarioReport(String executionId,
String scenarioName)
Creates a new IlrRBTScenarioReport instance. |
Method Summary | |
---|---|
void |
failOrSkip(String testName,
String messageKey,
Object[] messageParameters,
String messageLocale,
boolean fail)
Adds a test failure or a test skipped report. |
String |
getExecutionId()
Returns the execution ID. |
String |
getScenarioName()
Returns the name of the scenario. |
List<IlrTestResult> |
getTestResults()
Returns the results for the tests run in this scenario. |
void |
succeed(String testName,
String messageKey,
Object[] messageParameters,
String messageLocale)
Adds a test success report. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrRBTScenarioReport(String executionId, String scenarioName)
IlrRBTScenarioReport
instance.
executionId
- The execution ID.scenarioName
- The name of the scenario.Method Detail |
---|
public String getExecutionId()
public String getScenarioName()
public void failOrSkip(String testName, String messageKey, Object[] messageParameters, String messageLocale, boolean fail)
testName
- The name of the test.messageKey
- The message key in the messages bundle.messageParameters
- The message parameters.messageLocale
- The locale for the message in the following format: [language][_COUNTRY[_variant]]
. Tokens between the brackets []
are optional.fail
- Set to true
if this is a failure report. Set to false
for a skip report.public void succeed(String testName, String messageKey, Object[] messageParameters, String messageLocale)
testName
- The name of the test.messageKey
- The message key in the messages bundle.messageParameters
- The message parameters.messageLocale
- The locale for the message in the following format: [language][_COUNTRY[_variant]]
. Tokens between the brackets []
are optional.public List<IlrTestResult> getTestResults()
|
Rule Designer API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |