public abstract class IlrDVSRunner
extends java.lang.Object
Subclass IlrDVSRunner when you implement a custom
DVS launch configuration.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HTTPCLIENT3_FALLBACK_PROPERTY |
protected boolean |
localExecution |
protected java.io.BufferedWriter |
out |
protected java.lang.String |
url |
protected java.io.PrintWriter |
writer |
| Constructor and Description |
|---|
IlrDVSRunner() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeOutput()
Closes the output report file.
|
protected void |
closeTable()
Closes the table in the report opened by calling
openTable(). |
protected void |
createOutput(java.lang.String destFilePath)
Creates the HTML output report.
|
protected void |
displayFooter(java.lang.String title,
java.lang.String name)
Displays the footer that corresponds to the header written in the HTML report.
|
protected void |
displayHeader(java.lang.String title,
java.lang.String name)
Displays a header in the HTML report
|
protected void |
displayLine(java.lang.String title,
java.lang.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 java.lang.String[] |
extractCustomArgs(java.lang.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 IlrRulesetVerbalizationProvider |
getRulesetVerbalizationProvider() |
static boolean |
isHttpClient4() |
protected void |
openTable()
Starts to display a table in the report.
|
void |
run(java.lang.String[] args,
IlrScenarioSuiteDescriptor scenarioSuite)
Runs scenarios either locally or remotely depending on the parameters
set automatically in the program arguments.
|
void |
storeExceptionInOutput(java.lang.Exception e)
Stores an exception that should be generated during execution.
|
public static final java.lang.String HTTPCLIENT3_FALLBACK_PROPERTY
protected java.io.BufferedWriter out
protected java.io.PrintWriter writer
protected boolean localExecution
protected java.lang.String url
protected IlrRulesetVerbalizationProvider getRulesetVerbalizationProvider()
protected java.lang.String[] extractCustomArgs(java.lang.String[] args)
args - The arguments provided to the main method.public void run(java.lang.String[] args,
IlrScenarioSuiteDescriptor scenarioSuite)
throws java.io.IOException
java.io.IOException - if there is a problem opening the ruleset archive.args - The arguments provided in the main method.scenarioSuite - The scenario suite descriptor.public static boolean isHttpClient4()
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(java.lang.String destFilePath)
throws java.io.IOException
Redefine the following methods to change the output display:
java.io.IOException - if there is a problem writing to the HTML report.destFilePath - The absolute path to the report file.protected void displayHeader(java.lang.String title,
java.lang.String name)
throws java.io.IOException
java.io.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 java.io.IOException
java.io.IOException - if the report cannot be written.protected void displayLine(java.lang.String title,
java.lang.String value)
throws java.io.IOException
openTable().java.io.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 java.io.IOException
openTable().java.io.IOException - if the report cannot be written.openTable()protected void displayFooter(java.lang.String title,
java.lang.String name)
throws java.io.IOException
java.io.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 java.io.IOException, IlrTestingException
Redefine the following methods to change the output display:
java.io.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(java.lang.Exception e)
throws java.io.IOException
Redefine the following methods to change the output display:
java.io.IOException - if there is a problem writing to the HTML report.e - The exception to be generated.public void closeOutput()
throws java.io.IOException
java.io.IOException - if there is a problem closing the output report file.© Copyright IBM Corp. 1987, 2017