public class TestCaseStartFinishSocketClient
extends java.lang.Object
| Constructor and Description |
|---|
TestCaseStartFinishSocketClient()
Construct a session object connecting to the local execution server with a communication timeout of 10 seconds.
|
TestCaseStartFinishSocketClient(java.lang.String hostName)
Construct a session object to the execution server on a arbitrary machine with a communication timeout of 10 seconds.
|
TestCaseStartFinishSocketClient(java.lang.String hostName,
int socketTimeout)
Construct a session object connecting to the execution server on a arbitrary machine with a user defined timeout.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this session when all test cases finished.
|
protected void |
finalize() |
boolean |
indicateTestStart(java.lang.String testCaseName,
java.lang.String extId)
Used to communicate to the execution server, that a test case is about to start.
|
boolean |
indicateTestStop(java.lang.String testName,
java.lang.String extId,
boolean success)
Used to communicate to the execution server, that a test case has completed.
|
public TestCaseStartFinishSocketClient()
throws java.net.UnknownHostException,
java.io.IOException
java.net.UnknownHostExceptionjava.io.IOExceptionpublic TestCaseStartFinishSocketClient(java.lang.String hostName)
throws java.net.UnknownHostException,
java.io.IOException
hostName - the host name or IP address of the execution serverjava.net.UnknownHostExceptionjava.io.IOExceptionpublic TestCaseStartFinishSocketClient(java.lang.String hostName,
int socketTimeout)
throws java.net.UnknownHostException,
java.io.IOException
hostName - the host name or IP address of the execution serversocketTimeout - the time in milliseconds after which calls stop waiting for a response from the execution server.java.net.UnknownHostExceptionjava.io.IOExceptionprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void close()
public boolean indicateTestStart(java.lang.String testCaseName,
java.lang.String extId)
throws java.io.IOException
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' filejava.io.IOExceptionpublic boolean indicateTestStop(java.lang.String testName,
java.lang.String extId,
boolean success)
throws java.io.IOException
testName - 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' filesuccess - indicates if the completed test case passed.java.io.IOExceptionCopyright © Micro Focus 2004-2019. All rights reserved.