|
Rule Designer API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectilog.rules.studio.dvs.execution.IlrDVSRunner
public abstract class IlrDVSRunner
An abstract implementation used to execute scenarios. This class provides convenience methods for running scenarios.
Subclass IlrDVSRunner when you implement a custom
DVS launch configuration.
| Field Summary | |
|---|---|
protected boolean |
localExecution
|
protected BufferedWriter |
out
|
protected String |
url
|
protected PrintWriter |
writer
|
| Constructor Summary | |
|---|---|
IlrDVSRunner()
|
|
| Method Summary | |
|---|---|
void |
closeOutput()
Closes the output report file. |
protected void |
closeTable()
Closes the table in the report opened by calling openTable(). |
protected void |
createOutput(String destFilePath)
Creates the HTML output report. |
protected void |
displayFooter(String title,
String name)
Displays the footer that corresponds to the header written in the HTML report. |
protected void |
displayHeader(String title,
String name)
Displays a header in the HTML report |
protected void |
displayLine(String title,
String value)
Displays a row in the table opened in openTable(). |
protected void |
displayReport(IlrScenarioSuiteTestResult report)
Stores the execution report in the output report. |
protected void |
displayTrace(IlrScenarioSuiteTestResult report)
Called after the output report is generated in order to add the Decision Warehouse traces. |
protected String[] |
extractCustomArgs(String[] args)
Extracts custom arguments from the argument list. |
protected IlrDWTrace |
getDWTrace(IlrScenarioTestResult result)
Returns the Decision Warehouse trace extracted from the result of a scenario run. |
protected void |
openTable()
Starts to display a table in the report. |
void |
run(String[] args,
IlrScenarioSuiteDescriptor scenarioSuite)
Runs scenarios either locally or remotely depending on the parameters set automatically in the program arguments. |
void |
storeExceptionInOutput(Exception e)
Stores an exception that should be generated during execution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BufferedWriter out
protected PrintWriter writer
protected boolean localExecution
protected String url
| Constructor Detail |
|---|
public IlrDVSRunner()
| Method Detail |
|---|
protected String[] extractCustomArgs(String[] args)
args - The arguments provided to the main method.
public void run(String[] args,
IlrScenarioSuiteDescriptor scenarioSuite)
throws IOException
IOException - if there is a problem opening the ruleset archive.args - The arguments provided in the main method.scenarioSuite - The scenario suite descriptor.protected IlrDWTrace getDWTrace(IlrScenarioTestResult result)
throws IlrTestingException
IlrTestingException - if the trace cannot be extracted.result - The result of a scenario run. The trace is extracted from
this parameter.
result.protected void createOutput(String destFilePath)
throws IOException
Redefine the following methods to change the output display:
closeOutput()createOutput(String)displayReport(IlrScenarioSuiteTestResult)storeExceptionInOutput(Exception)
IOException - if there is a problem writing to the HTML report.destFilePath - The absolute path to the report file.protected void displayHeader(String title,
String name)
throws IOException
IOException - if the report cannot be written.title - The report title.name - The referenced name to be used in the HTML. This parameter
must not have any spaces.protected void openTable()
throws IOException
IOException - if the report cannot be written.protected void displayLine(String title,
String value)
throws IOException
openTable().
IOException - if the report cannot be written.title - The label in the table.value - The value corresponding to the label.openTable()protected void closeTable()
throws IOException
openTable().
IOException - if the report cannot be written.openTable()protected void displayFooter(String title,
String name)
throws IOException
IOException - if the report cannot be written.title - The title to display in the report.name - The referenced name that will be used in the HTML. This parameter
must not have any spaces.protected void displayTrace(IlrScenarioSuiteTestResult report)
throws IlrTestingException
IlrTestingException - if there is a problem retrieving the trace
for a scenario.report - The execution report sent by the SSP after execution.protected void displayReport(IlrScenarioSuiteTestResult report)
throws IOException,
IlrTestingException
Redefine the following methods to change the output display:
closeOutput()createOutput(String)displayReport(IlrScenarioSuiteTestResult)storeExceptionInOutput(Exception)
IOException - if there is a problem writing to the HTML report.
IlrTestingException - if the Decision Warehouse trace cannot be extractedreport - The execution report sent by SSP after execution.public void storeExceptionInOutput(Exception e)
throws IOException
Redefine the following methods to change the output display:
closeOutput()createOutput(String)displayReport(IlrScenarioSuiteTestResult)storeExceptionInOutput(Exception)
IOException - if there is a problem writing to the HTML report.e - The exception to be generated.public void closeOutput()
throws IOException
closeOutput()createOutput(String)displayReport(IlrScenarioSuiteTestResult)storeExceptionInOutput(Exception)
IOException - if there is a problem closing the output report file.
|
Rule Designer API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||