public class IlrExcel2003ScenarioProvider extends IlrRBTScenarioProviderBase
initialize(IlrScenarioSuiteExecutionContext) to
see the kind of scenario suite descriptor expected by this scenario
provider.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXCEL2003_BINARY_SCENARIO_SUITE_RESOURCE_ID
The name of the resource expected by the
initialize(IlrScenarioSuiteExecutionContext) method in its
scenario suite descriptor argument. |
context| Constructor and Description |
|---|
IlrExcel2003ScenarioProvider()
Creates a new
IlrExcel2003ScenarioProvider instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
checkSignatureCompatibility(IlrRulesetSignature theSignatureOfTheRulesetToTest,
IlrRulesetSignature theSignatureOfTheRulesetTheScenarioSuiteWasGeneratedFor)
Tests if the scenario suite can be run against the requested ruleset.
|
void |
close()
Undeploys a test RuleApp.
|
protected IlrExcel2003ScenarioSuiteReader |
getReader()
Returns the internal Excel scenario suite reader implementation.
|
IlrScenario |
getScenarioAt(int theScenarioIndex)
Returns a scenario from the suite.
|
IlrScenario |
getScenarioByName(java.lang.String theScenarioName)
Returns a scenario from the suite.
|
int |
getScenarioCount()
Returns the number of scenarios in the suite.
|
protected java.lang.String |
getScenarioDescription(int theScenarioIndex)
Returns the description of a scenario in the suite.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getScenarioInputParameters(int theScenarioIndex)
Returns the values of the input parameters of the ruleset to test for
a scenario.
|
protected java.lang.String |
getScenarioName(int theScenarioIndex)
Returns the name of a scenario in the suite.
|
java.util.List<java.lang.String> |
getScenarioNames()
Returns the list of scenario names.
|
protected IlrTraceTester |
getScenarioTraceTester(int theScenarioIndex)
Returns the trace tester for a scenario.
|
IlrRulesetArchive |
getTestRulesetArchive(IlrRulesetArchive theRulesetToTest)
Returns the ruleset archive to be deployed with the tested ruleset
prior to running the scenarios.
|
void |
initialize(IlrScenarioSuiteExecutionContext context)
Initializes the scenario suite.
|
getObjectModelServicesOnTestRulesetB2Xpublic static final java.lang.String EXCEL2003_BINARY_SCENARIO_SUITE_RESOURCE_ID
initialize(IlrScenarioSuiteExecutionContext) method in its
scenario suite descriptor argument.public IlrExcel2003ScenarioProvider()
IlrExcel2003ScenarioProvider instance.public void initialize(IlrScenarioSuiteExecutionContext context) throws IlrInitializationException
initialize in interface IlrInitializableinitialize in class IlrRBTScenarioProviderBaseIlrInitializationException - if an error occurs while initializing.context - The scenario suite execution context. This method
uses the scenario suite descriptor stored in the context to define
a resource named excel2003BinaryData that provides Excel 2003
binary data in one of the following forms:
public IlrRulesetArchive getTestRulesetArchive(IlrRulesetArchive theRulesetToTest) throws IlrScenarioProviderException
IlrScenarioProviderException - if an error occurs while
generating the test archive.theRulesetToTest - The tested ruleset.public void close()
close in interface IlrScenarioProviderclose in class IlrRBTScenarioProviderBasepublic int getScenarioCount()
throws IlrScenarioProviderException
IlrScenarioProviderException - if an error occurs while
reading the scenario suite.public IlrScenario getScenarioAt(int theScenarioIndex) throws IlrScenarioProviderException
IlrScenarioProviderException - if an error occurs while reading
the scenario suite.theScenarioIndex - The index of the scenario in the suite. Indexing
starts at 0.theScenarioIndex.public java.util.List<java.lang.String> getScenarioNames()
throws IlrScenarioProviderException
IlrScenarioProviderException - if an error occurs while reading
the scenario suite.public IlrScenario getScenarioByName(java.lang.String theScenarioName) throws IlrScenarioProviderException
IlrScenarioProviderException - if an error occurs reading the
scenario, or if there is no scenario matching
theScenarioName in the suite.theScenarioName - The name of the scenario.public void checkSignatureCompatibility(IlrRulesetSignature theSignatureOfTheRulesetToTest, IlrRulesetSignature theSignatureOfTheRulesetTheScenarioSuiteWasGeneratedFor) throws IlrScenarioProviderException
Use this method to populate a ruleset parameter with the code in the scenario provider rather than the Excel scenario file.
Delete the columns corresponding to the ruleset parameter from the Excel scenario file so that users do no need to fill them in.
IlrScenarioProviderException - if the signatures are not
compatible.theSignatureOfTheRulesetToTest - The signature of the requested
ruleset. Retrieve this value by calling
getRulesetSignature() on the context.theSignatureOfTheRulesetTheScenarioSuiteWasGeneratedFor - The
signature of the ruleset the scenario suite was generated for.
This value is read from the scenario suite.protected java.lang.String getScenarioName(int theScenarioIndex)
throws IlrScenarioProviderException
IlrScenarioProviderException - if an error occurs while reading
the scenario suite.theScenarioIndex - The index of the scenario in the suite. Indexing
starts at 0.theScenarioIndex.protected java.lang.String getScenarioDescription(int theScenarioIndex)
throws IlrScenarioProviderException
IlrScenarioProviderException - if an error occurs while reading
the scenario suite.theScenarioIndex - The index of the scenario in the suite. Indexing
starts at 0.null is returned.protected java.util.Map<java.lang.String,java.lang.Object> getScenarioInputParameters(int theScenarioIndex)
throws IlrScenarioProviderException
IlrScenarioProviderException - if an error occurs while reading the
scenario suite.theScenarioIndex - The index of the scenario in the suite. Indexing
starts at 0.protected IlrTraceTester getScenarioTraceTester(int theScenarioIndex) throws IlrScenarioProviderException
IlrScenarioProviderException - if an error occurs while reading the
scenario suite.theScenarioIndex - The index of the scenario in the suite. Indexing
starts at 0.protected IlrExcel2003ScenarioSuiteReader getReader()
© Copyright IBM Corp. 1987, 2017