|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectch.sf.htt.HttestWrapper
public class HttestWrapper
Base test case for httest tests. Typically you extend this class and then set scripts dir, working dir, enviroment and verbose in a setUp() method or for individual tests.
| Field Summary | |
|---|---|
protected java.lang.String |
file
|
| Constructor Summary | |
|---|---|
HttestWrapper(java.lang.String file)
|
|
| Method Summary | |
|---|---|
static java.util.Collection<java.lang.Object[]> |
collectHttestScript(java.util.Properties props)
Collect all files below a folder like $basedir/src/test/httest |
Httest |
getHttest()
Gets httest instance. |
ExecResult |
runScript(java.lang.String scriptFileName)
Convenience method for running httest script. |
void |
setEnvironment(Environment environment)
Convenience method for setting httest environment. |
void |
setUp()
|
void |
setUp(java.util.Properties props)
|
void |
setVerbose(boolean verbose)
Convenience method for setting httest verbose. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String file
| Constructor Detail |
|---|
public HttestWrapper(java.lang.String file)
| Method Detail |
|---|
public Httest getHttest()
public void setUp()
throws java.lang.Exception
java.lang.Exception
public void setUp(java.util.Properties props)
throws java.lang.Exception
java.lang.Exception
public ExecResult runScript(java.lang.String scriptFileName)
throws java.io.IOException,
HttestFailedException
scriptFileName - httest script file name
java.io.IOException
HttestFailedExceptionpublic void setEnvironment(Environment environment)
environment - httest environmentpublic void setVerbose(boolean verbose)
verbose - httest verbosepublic static java.util.Collection<java.lang.Object[]> collectHttestScript(java.util.Properties props)
props - IN all parameters hold in properties
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||