public class IlrRBTTraceTester extends java.lang.Object implements IlrTraceTester
IlrRBTTraceTester instance to handle
calls to the testing ruleset and to build the results for a scenario.| Constructor and Description |
|---|
IlrRBTTraceTester(java.lang.String scenarioName,
java.util.Map<java.lang.String,java.lang.Boolean> placeHoldersStatus,
java.util.Map<java.lang.String,java.lang.Object> placeHoldersValues,
java.util.Map<java.lang.String,java.lang.Throwable> testsInError)
Creates a new
IlrRBTTraceTester instance. |
| Modifier and Type | Method and Description |
|---|---|
static IlrPath |
computeTestRulesetPath(IlrPath prodRulesetPath)
Compute the name of the test ruleset to use to test a ruleset.
|
java.util.Map<java.lang.String,java.lang.Boolean> |
getPlaceHoldersStatus()
Returns the placeholder status
Map. |
java.util.Map<java.lang.String,java.lang.Object> |
getPlaceHoldersValues()
Returns the placeholder values
Map. |
java.lang.String |
getScenarioName()
Returns the name of the scenario.
|
java.util.Map<java.lang.String,java.lang.Throwable> |
getTestsWithDataError()
Returns a
Map containing the tests with data errors. |
java.util.List<IlrTestResult> |
test(IlrScenarioSuiteExecutionContext context,
IlrSessionRequest request,
IlrSessionResponse response)
Performs the scenario tests and returns a list of test results.
|
public IlrRBTTraceTester(java.lang.String scenarioName,
java.util.Map<java.lang.String,java.lang.Boolean> placeHoldersStatus,
java.util.Map<java.lang.String,java.lang.Object> placeHoldersValues,
java.util.Map<java.lang.String,java.lang.Throwable> testsInError)
IlrRBTTraceTester instance.scenarioName - The name of the scenario.placeHoldersStatus - A Map containing the
placeholder_name/status entries that reflect the status of the placeholders.
For example, for the empty cells in an Excel provider.placeHoldersValues - A Map containing the
placeholder_name/value entries with the value of each placeholder.testsInError - A Map containing the tests with data errors.public java.lang.String getScenarioName()
public java.util.Map<java.lang.String,java.lang.Boolean> getPlaceHoldersStatus()
Map.Map.public java.util.Map<java.lang.String,java.lang.Object> getPlaceHoldersValues()
Map.Map.public java.util.Map<java.lang.String,java.lang.Throwable> getTestsWithDataError()
Map containing the tests with data errors.Map containing the tests with data errors. The
key is the name of the test, the value is the data error.public java.util.List<IlrTestResult> test(IlrScenarioSuiteExecutionContext context, IlrSessionRequest request, IlrSessionResponse response) throws java.lang.Exception
test in interface IlrTraceTesterIlrSessionException - if a problem occurs while creating or
controlling the rule session used to run the test ruleset.java.lang.Exception - if a problem occurs at the scenario verification level.
A global error for the scenario is added to the test report.context - The scenario suite execution context.request - The session request used to invoke the production
(tested) ruleset.response - The session response returned by calling
the production (tested) ruleset.© Copyright IBM Corp. 1987, 2017