|
Rule Designer API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IlrExcel2003ScenarioSuiteReader
Reads Excel 2003 scenario files.
Call the IlrExcel2003ScenarioSuiteReaderFactory
singleton to create an instance of the reader.
A code example showing how the use the reader and the factory is available in the package description ilog.rules.dvs.excel.
To be usable with IlrExcel2003ScenarioSuiteReaderFactory,
implementations of this reader must define
a constructor which takes an InputStream and an
IlrScenarioSuiteExecutionContext instance as parameters. This
constructor may throw the IlrExcel2003ScenarioSuiteIOException
exception.
| Method Summary | |
|---|---|
void |
close()
Frees the resources used by this reader to access Excel 2003 scenario file data. |
int |
getScenarioCount()
Returns the number of scenarios in the file. |
String |
getScenarioDescription(int theIndexOfTheScenario)
Returns the description of a scenario in the scenario file. |
Map<String,Object> |
getScenarioInputParameters(int theIndexOfTheScenario)
Returns the values of the input parameters for the ruleset to test in a scenario. |
String |
getScenarioName(int theIndexOfTheScenario)
Returns the ID of a scenario in the scenario file. |
List<String> |
getScenarioNames()
Returns the list of scenario IDs. |
IlrTraceTester |
getScenarioTraceTester(int theIndexOfTheScenario)
Deprecated. the returned trace tester won't be able to test collections of complex object when using an XML XOM. Use instead getScenarioTraceTester(int, IlrObjectModelServices),
providing an IlrObjectModelServices instance on the B2X layer of the deployed test ruleset. |
IlrTraceTester |
getScenarioTraceTester(int theIndexOfTheScenario,
IlrObjectModelServices theObjectModelServicesInstanceToUseToCreateExpectedValues)
Returns the trace tester for a scenario. |
IlrRulesetSignature |
getSignatureOfTheRulesetToTest()
Returns the signature of the ruleset to test. |
List<IlrTestRule> |
getTestRules()
Returns the test rules. |
| Method Detail |
|---|
int getScenarioCount()
throws IlrExcel2003ScenarioSuiteIOException,
IlrExcel2003ScenarioSuiteDataException
IlrExcel2003ScenarioSuiteIOException - when there is an IO
error.
IlrExcel2003ScenarioSuiteDataException - when invalid data is
found in an Excel 2003 scenario file.
String getScenarioName(int theIndexOfTheScenario)
throws IlrExcel2003ScenarioSuiteIOException,
IlrExcel2003ScenarioSuiteDataException
IlrExcel2003ScenarioSuiteIOException - when there is an IO
error.
IlrExcel2003ScenarioSuiteDataException - when invalid data is
found in the Excel 2003 scenario file.theIndexOfTheScenario - The index of the scenario in the scenario file. Indexing
starts at 0.
List<String> getScenarioNames()
throws IlrExcel2003ScenarioSuiteIOException,
IlrExcel2003ScenarioSuiteDataException
IlrExcel2003ScenarioSuiteIOException - when there is an IO
error.
IlrExcel2003ScenarioSuiteDataException - when invalid data is
found in an Excel 2003 scenario file.
String getScenarioDescription(int theIndexOfTheScenario)
throws IlrExcel2003ScenarioSuiteIOException,
IlrExcel2003ScenarioSuiteDataException
IlrExcel2003ScenarioSuiteIOException - when there is an IO
error.
IlrExcel2003ScenarioSuiteDataException - when invalid data is
found in an Excel 2003 scenario file.theIndexOfTheScenario - The index of the scenario in the scenario file.
Indexing starts at 0.
null is returned.Map<String,Object> getScenarioInputParameters(int theIndexOfTheScenario)
throws IlrExcel2003ScenarioSuiteIOException,
IlrExcel2003ScenarioSuiteDataException
IlrExcel2003ScenarioSuiteIOException - when there is an IO
error.
IlrExcel2003ScenarioSuiteDataException - when invalid data is
found in an Excel 2003 scenario file.theIndexOfTheScenario - The index of the scenario in the scenario file. Indexing
starts at 0.
IlrTraceTester getScenarioTraceTester(int theIndexOfTheScenario)
throws IlrExcel2003ScenarioSuiteIOException,
IlrExcel2003ScenarioSuiteDataException
getScenarioTraceTester(int, IlrObjectModelServices),
providing an IlrObjectModelServices instance on the B2X layer of the deployed test ruleset.
IlrExcel2003ScenarioSuiteIOException - when there is an IO
error.
IlrExcel2003ScenarioSuiteDataException - when invalid data is
found in an Excel 2003 scenario file.theIndexOfTheScenario - The index of the scenario in the scenario file. Indexing
starts at 0.
IlrTraceTester getScenarioTraceTester(int theIndexOfTheScenario,
IlrObjectModelServices theObjectModelServicesInstanceToUseToCreateExpectedValues)
throws IlrExcel2003ScenarioSuiteIOException,
IlrExcel2003ScenarioSuiteDataException
IlrExcel2003ScenarioSuiteIOException - when there is an IO
error.
IlrExcel2003ScenarioSuiteDataException - when invalid data is
found in an Excel 2003 scenario file.theIndexOfTheScenario - The index of the scenario in the scenario file. Indexing
starts at 0.theObjectModelServicesInstanceToUseToCreateExpectedValues - the IlrObjectModelServices
instance to use to create instances of the expected values (based on the B2X layer of the
deployed test ruleset)
IlrRulesetSignature getSignatureOfTheRulesetToTest()
throws IlrExcel2003ScenarioSuiteIOException,
IlrExcel2003ScenarioSuiteDataException
IlrExcel2003ScenarioSuiteIOException - when there is an IO
error.
IlrExcel2003ScenarioSuiteDataException - when invalid data is
found in an Excel 2003 scenario file.
List<IlrTestRule> getTestRules()
throws IlrExcel2003ScenarioSuiteIOException,
IlrExcel2003ScenarioSuiteDataException
IlrExcel2003ScenarioSuiteIOException - when there is an IO
error.
IlrExcel2003ScenarioSuiteDataException - when invalid data is
found in an Excel 2003 scenario file.
void close()
|
Rule Designer API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||