|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectch.sf.htt.Httest
public class Httest
Wrapper for running httest.
| Field Summary | |
|---|---|
static java.lang.String |
VERSION_PROPERTY
Constant for name of system property which holds httest version. |
| Method Summary | |
|---|---|
java.io.File |
getBinariesDir()
Return the directory that contains the httest binaries. |
java.util.List<HttestError> |
getErrors()
Returns the errors in case there was one. |
java.io.File |
getHtntlmFile()
Gets file for htntlm executable. |
static java.lang.String |
getHtntlmFilename()
Gets file name of htntlm executable; "htntlm" on windows and "htntlm" on unix. |
java.io.File |
getHttestBinaryExecutableFile()
Gets file for httest executable. |
static java.lang.String |
getHttestBinaryExecutableFilename()
Gets file name of httest executable; "httest.exe" on windows and "httest" on unix. |
static OperatingSystem |
getOs()
Return the current operating system. |
static Httest |
instance(java.util.Properties props)
Creates a new Httest instance. |
void |
interruptExecution()
Interrupts the executed process. |
boolean |
isInterrupted()
Allows to check if this httest execution was interrupted. |
boolean |
isVerbose()
Get info if httest output is verbose, i.e. |
ExecResult |
runScript(ITestListener console,
java.lang.String scriptFileName,
java.lang.String... commandLineArgs)
Run the script with the given file name and path relative to the scriptDir. |
ExecResult |
runScript(java.lang.String scriptFileName,
java.lang.String... commandLineArgs)
Run the script with the given file name and path relative to the scriptDir. |
void |
setEnvironment(Environment environment)
Sets the environment to use when running httest. |
void |
setVerbose(boolean verbose)
Set info if httest output is verbose, i.e. |
java.lang.String |
testBinary()
Runs the httest binary with the argument "-V" and returns the version number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String VERSION_PROPERTY
| Method Detail |
|---|
public static Httest instance(java.util.Properties props)
java.lang.RuntimeException - If the instance could not be created.
public ExecResult runScript(java.lang.String scriptFileName,
java.lang.String... commandLineArgs)
throws java.io.IOException,
HttestFailedException
scriptFileName - commandLineArgs - Optional command line arguments for the executed binary.
java.io.IOException
HttestFailedException
public ExecResult runScript(ITestListener console,
java.lang.String scriptFileName,
java.lang.String... commandLineArgs)
throws java.io.IOException,
HttestFailedException
console - The console output window (for the GUI). Is null in command-line mode.scriptFileName - The name of the httest script to execute.commandLineArgs - Optional command line arguments for the executed binary.
java.io.IOException
HttestFailedException
public java.lang.String testBinary()
throws java.io.IOException
java.io.IOException
java.lang.IllegalStateExceptionpublic java.util.List<HttestError> getErrors()
public void interruptExecution()
public boolean isInterrupted()
public java.io.File getHttestBinaryExecutableFile()
public static java.lang.String getHttestBinaryExecutableFilename()
public java.io.File getHtntlmFile()
public static java.lang.String getHtntlmFilename()
public void setEnvironment(Environment environment)
environment - the environment to setpublic boolean isVerbose()
public void setVerbose(boolean verbose)
verbose - the verbose to setpublic static OperatingSystem getOs()
public java.io.File getBinariesDir()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||