public interface TestLaunchResultDrain
TestLaunchBean.execute(long, com.segue.tm.published.api.testlaunch.TestLaunchResultDrain) giving the plugin implementation a
chance to report back occurred errors, warnings, messages, files and log info.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OUTPUT_XML_RESULT_FILE
The file name of the xml result file which contains result information that can be rendered by SCTM ("output.xml").
|
static int |
SEVERITY_ERROR |
static int |
SEVERITY_FATAL |
static int |
SEVERITY_INFO |
static int |
SEVERITY_SUCCESS |
static int |
SEVERITY_WARNING |
| Modifier and Type | Method and Description |
|---|---|
boolean |
codeAnalysisIsOn()
Returns true if the "Code Analysis" setting is switched on.
|
java.io.File |
createFullCodeCoverageFile()
Creates a full code coverage file associated to the execution plan run to be written in xml code coverage standard format by a plugin.
|
java.io.File |
createTestCodeCoverageFile()
Creates a code coverage file associated to the current test to be written in xml code coverage standard format by a plugin.
|
void |
digestCodeCoverageResults()
Deprecated.
code coverage recording with remote access to OptimizeIt controller not supported anymore. Use
createTestCodeCoverageFile() |
ExecutionContextInfo |
getExecutionContextInfo()
Used to obtain execution related properties (e.g.
|
java.io.PrintStream |
getLog()
Provides a stream to publish log information into a log file and for online run info.
|
java.io.File |
getTempResultsDir()
Returns the path to a temporary directory exclusive for one execution.
|
void |
indicateTestCaseFinished(java.lang.String testCaseName,
java.lang.String extId,
boolean wasSuccess)
Used to communicate to SCTM, that a test case has completed.
|
void |
indicateTestCaseStart(java.lang.String testCaseName,
java.lang.String extId)
Used to communicate to SCTM, that a test case is about to start.
|
void |
parseStdResultFile(java.io.File file)
Parses errors, warnings and messages from a standard result description xml file and publishes
all messages.
|
void |
parseStdResultFile(java.io.File file,
int minimalPublishMessageSeverity)
Parses errors, warnings and messages from a standard result description xml file and publishes
messages with a severity equal or higher than the given minimalPublishMessageSeverity.
|
void |
publishErrors(int errors,
int warnings)
Reports the number of errors and warnings of a test execution.
|
void |
publishMessage(int severity,
java.lang.String msg)
Adds a message to the list of messages for one execution.
|
void |
startCodeCoverageRecording(int port)
Deprecated.
|
void |
startCodeCoverageRecording(java.lang.String fullCoverageID,
int port)
Deprecated.
code coverage recording with remote access to OptimizeIt controller not supported anymore. Use
createTestCodeCoverageFile() |
boolean |
testCaseStartFinishIndicationRequired()
If true, the plugin is required to indicate beginning and ending of each sub test case, when executing multiple test cases within one test (for screen or video capturing).
|
void |
updateErrors(int errors,
int warnings)
Updates (increments) the number of errors and warnings of a test execution.
|
static final int SEVERITY_INFO
static final int SEVERITY_SUCCESS
static final int SEVERITY_WARNING
static final int SEVERITY_ERROR
static final int SEVERITY_FATAL
static final java.lang.String OUTPUT_XML_RESULT_FILE
void publishErrors(int errors,
int warnings)
errors - the number of errors occuredwarnings - the number of warnings occuredvoid updateErrors(int errors,
int warnings)
errors - the amount to increment the error countwarnings - the amount to increment the warning countvoid publishMessage(int severity,
java.lang.String msg)
severity - the severity of the message being one of the SEVERITY_<XXX> constants.msg - an arbitrary message displayed to the user.void parseStdResultFile(java.io.File file)
file - the path to the standard result filevoid parseStdResultFile(java.io.File file,
int minimalPublishMessageSeverity)
file - the path to the standard result fileminimalPublishMessageSeverity - only messages with this or a higher severity will be publishedjava.io.File getTempResultsDir()
java.io.PrintStream getLog()
ExtProcessTestLaunchBean.runExternalProcess(java.lang.String[], java.lang.String[], java.io.File, java.io.PrintStream)
to store and publish stdout and strerr output of the process.
As the framework may also access this stream always synchronize on the object while writing to it
in order to prevent concurrent access.boolean codeAnalysisIsOn()
java.io.File createTestCodeCoverageFile()
throws java.io.IOException
java.io.IOExceptionjava.io.File createFullCodeCoverageFile()
throws java.io.IOException
java.io.IOExceptionExecutionContextInfo getExecutionContextInfo()
boolean testCaseStartFinishIndicationRequired()
indicateTestCaseStart(String, String) and indicateTestCaseFinished(String, String, boolean).
If the test runs in a separate process, messages must be sent to the port stored in ExecutionContextInfo.ExecProperty.PORT_TESTCASE_START_FINISH
(see API help and TestCaseStartFinishSocketClient.indicateTestStart(java.lang.String, java.lang.String)).void indicateTestCaseStart(java.lang.String testCaseName,
java.lang.String extId)
ExecutionContextInfo.ExecProperty.PORT_TESTCASE_START_FINISH
(see API help and TestCaseStartFinishSocketClient.indicateTestStart(java.lang.String, java.lang.String)).testCaseName - test case name that will appear in the video file name, characters not allowed for file names will be replaced.extId - not used yet, should in future match the id of the test case as generated in the output.xml fileindicateTestCaseFinished(String, String, boolean)void indicateTestCaseFinished(java.lang.String testCaseName,
java.lang.String extId,
boolean wasSuccess)
testCaseName - test case name that will appear in the video file name, characters not allowed for file names will be replaced.extId - not used yet, should in future match the id of the test case as generated in the output.xml filewasSuccess - indicates if the completed test case passed.indicateTestCaseStart(String, String)@Deprecated
void startCodeCoverageRecording(java.lang.String fullCoverageID,
int port)
createTestCodeCoverageFile()fullCoverageID - if multiple test executions pass an equal value, full
coverage is only fetched for the first call, saving time.port - the tcp port on which the code coverage controller can be accessed.@Deprecated void startCodeCoverageRecording(int port)
startCodeCoverageRecording(String, int)port - the tcp port on which the code coverage controller can be accessed.@Deprecated void digestCodeCoverageResults()
createTestCodeCoverageFile()startCodeCoverageRecording(java.lang.String, int)
has been called before.Copyright © Micro Focus 2004-2019. All rights reserved.