|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommandLineInteraction
Provides methods for interacting with the command line.
| Method Summary | |
|---|---|
int |
create(String processType,
String processName,
int processTimeout,
int responseTimeout,
String... command)
Creates a process. |
void |
destroy(String processType,
String processName,
int processId)
Destroys the referenced process. |
void |
enter(String processType,
String processName,
int processId,
String text)
Enters a text into the referenced process' standard input. |
String |
readLineOfErrOut(String processType,
String processName,
int processId)
Reads the next line of the referenced process' error output. |
String |
readLineOfStdOut(String processType,
String processName,
int processId)
Reads the next line of the referenced process' standard output. |
void |
redirectErrOutTo(String processType,
String processName,
int processId,
OutputStream out)
Redirects the error output of the referenced process to the provided OutputStream. |
void |
redirectStdInFrom(String processType,
String processName,
int processId,
InputStream in)
Redirects provided OutputStream's output to the standard input of the referenced process. |
void |
redirectStdOutTo(String processType,
String processName,
int processId,
OutputStream out)
Redirects the standard output of the referenced process to the provided OutputStream. |
void |
setEnvironmentVariable(String processType,
String processName,
int processId,
String key,
String value)
Sets an environment variable of the specified process. |
void |
setRelativeWorkingDirectory(String processType,
String processName,
int processId,
String relativeWorkingDirectory)
Sets the working directory of the specified process. |
void |
skipErrOutUntilLineMatches(String processType,
String processName,
int processId,
org.databene.commons.Validator<String> validator)
Skips lines of the refernced process' error output until a line matches the Validator. |
void |
skipStdOutUntilLineMatches(String processType,
String processName,
int processId,
org.databene.commons.Validator<String> validator)
Skips the references process' standard output lines until a line matches the validator or the no more output is available. |
void |
start(String processType,
String processName,
int processId)
Starts the referenced process. |
int |
waitUntilFinished(String processType,
String processName,
int processId)
Waits until the references process has finished. |
| Methods inherited from interface org.aludratest.service.Action |
|---|
createAttachments, createDebugAttachments, setSystemConnector |
| Method Detail |
|---|
int create(String processType,
String processName,
int processTimeout,
int responseTimeout,
String... command)
processType - the process typeprocessName - the process nameprocessTimeout - the maximum time to wait for process terminationresponseTimeout - the maximum time to wait for process responsecommand -
void setRelativeWorkingDirectory(String processType,
String processName,
int processId,
String relativeWorkingDirectory)
processType - the process typeprocessName - the process nameprocessId - the internal id of the processrelativeWorkingDirectory - the path of the process' working directory relative to the configuration's base.directory setting
void setEnvironmentVariable(String processType,
String processName,
int processId,
String key,
String value)
processType - the process typeprocessName - the process nameprocessId - the internal id of the processkey - value -
void redirectStdOutTo(String processType,
String processName,
int processId,
OutputStream out)
OutputStream.
processType - the process typeprocessName - the process nameprocessId - the internal id of the processout -
void redirectErrOutTo(String processType,
String processName,
int processId,
OutputStream out)
OutputStream.
processType - the process typeprocessName - the process nameprocessId - the internal id of the processout -
void redirectStdInFrom(String processType,
String processName,
int processId,
InputStream in)
OutputStream's output to the standard input of the referenced process.
processType - the process typeprocessName - the process nameprocessId - the internal id of the processin -
void start(String processType,
String processName,
int processId)
processType - the process typeprocessName - the process nameprocessId - the internal id of the process
String readLineOfStdOut(String processType,
String processName,
int processId)
processType - the process typeprocessName - the process nameprocessId - the internal id of the process
void skipStdOutUntilLineMatches(String processType,
String processName,
int processId,
org.databene.commons.Validator<String> validator)
processType - the process typeprocessName - the process nameprocessId - the internal id of the processvalidator -
String readLineOfErrOut(String processType,
String processName,
int processId)
processType - the process typeprocessName - the process nameprocessId - the internal id of the process
void skipErrOutUntilLineMatches(String processType,
String processName,
int processId,
org.databene.commons.Validator<String> validator)
processType - the process typeprocessName - the process nameprocessId - the internal id of the processvalidator -
void enter(String processType,
String processName,
int processId,
String text)
processType - the process typeprocessName - the process nameprocessId - the internal id of the processtext -
int waitUntilFinished(String processType,
String processName,
int processId)
processType - the process typeprocessName - the process nameprocessId - the internal id of the process
void destroy(String processType,
String processName,
int processId)
processType - the process typeprocessName - the process nameprocessId - the internal id of the process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||