|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqat.common.TestObject
The TestObject class represents all the information required to execute a single test on a single agent.
Constructor Summary | |
TestObject()
This constructor creates a blank TestObject. |
|
TestObject(java.lang.String instanceId,
java.lang.String[] executeCommand,
java.util.Properties executeEnvironment,
java.lang.String workDirectory,
int timeOut)
|
Method Summary | |
void |
addProperty(java.lang.Object key,
java.lang.Object value)
This method adds a property to the TestObject properties. |
java.io.File |
getEnvFileName()
This method returns the name and path of the file used to store this test object's. |
java.lang.String[] |
getExecuteCommand()
This method returns the execute command of this TestObject. |
java.util.Properties |
getExecuteEnvironment()
This method returns the execute environment of this TestObject. |
java.io.File |
getStdErrFileName()
This method returns the name and path of the file used to store this test object's. |
java.io.File |
getStdOutFileName()
This method returns the name and path of the file used to store this test object's. |
java.lang.String |
getTestID()
|
int |
getTimeout()
This method sets the length of time this TestObject is allowed to run before it will be forcibly killed. |
java.lang.String |
getWorkDirectory()
This method returns the work directory of this TestObject. |
void |
readObject(java.io.DataInputStream in)
|
void |
setExecuteCommand(java.lang.String[] c)
This method sets the execute command for this TestObject. |
void |
setExecuteEnvironment(java.util.Properties p)
This method sets the execute enviroment to be used when the execute command is executed.. |
void |
setTimeout(int t)
This method sets the length of time this TestObject is allowed to run before it will be forcibly killed. |
void |
setWorkDirectory(java.lang.String w)
This method sets the path of the work directory for agent to unzip any sent zip files into, and to create/delete test directories. |
void |
writeObject(java.io.DataOutputStream out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TestObject()
public TestObject(java.lang.String instanceId, java.lang.String[] executeCommand, java.util.Properties executeEnvironment, java.lang.String workDirectory, int timeOut)
Method Detail |
public java.lang.String getTestID()
public void addProperty(java.lang.Object key, java.lang.Object value)
key
- the name of the key to be added or modified.value
- the value of the key to be added or modified.public void setExecuteCommand(java.lang.String[] c)
c
- the command which will be executed when this TestObject is run.public void setExecuteEnvironment(java.util.Properties p)
p
- a Property object containing the relevant environment settings.public void setWorkDirectory(java.lang.String w)
w
- the absolute path of the work directory, on the agent.public void setTimeout(int t)
public java.lang.String[] getExecuteCommand()
public java.util.Properties getExecuteEnvironment()
public java.io.File getEnvFileName()
public java.io.File getStdOutFileName()
public java.io.File getStdErrFileName()
public java.lang.String getWorkDirectory()
public int getTimeout()
public void writeObject(java.io.DataOutputStream out) throws java.io.IOException
java.io.IOException
public void readObject(java.io.DataInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |