|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.lightest.core.LightestContextAware
com.googlecode.lightest.core.LightestTestCase
public class LightestTestCase
The base class for all testcase classes runnable in the Lightest framework. In order to enable any domain specific API's in this testcase, an implementation of IDomainSpecificApi should be set with setApi(). One technique to do this is to subclass this class, set the API in a @BeforeTest method (or constructor), and derive test classes from that subclass.
| Constructor Summary | |
|---|---|
LightestTestCase()
|
|
| Method Summary | |
|---|---|
void |
assign(ITestContext context)
Assigns this test class instance to a task dispatcher. |
boolean |
canRunIn(ITestEnvironment env)
Used to indicate whether the current test class can run in the given environment; i.e. whether the environment satisfies the basic requirements for the test. |
IDomainSpecificApi |
getApi()
|
TaskNodeBuilder |
getBuilder()
Returns the builder this task provider uses to create task nodes to be sent for dispatch. |
groovy.lang.MetaClass |
getMetaClass()
|
Object |
getProperty(String name)
|
Object |
invokeMethod(String name,
Object args)
|
void |
setApi(IDomainSpecificApi value)
|
void |
setMetaClass(groovy.lang.MetaClass metaClass)
|
void |
setProperty(String name,
Object value)
|
void |
setUp()
Performs per-method setup. |
void |
tearDown(ITestContext testngContext)
Here we tamper with the TestNG suite internals so the suite result is available for intermediate report generation. |
void |
unassign()
Unbinds the assigned task dispatcher from this test class. |
| Methods inherited from class com.googlecode.lightest.core.LightestContextAware |
|---|
getContext, getDispatcher, getEnv, getPrefs, setDispatcher |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LightestTestCase()
| Method Detail |
|---|
public IDomainSpecificApi getApi()
public void setApi(IDomainSpecificApi value)
public final void assign(ITestContext context)
public final void setUp()
public final void tearDown(ITestContext testngContext)
public final void unassign()
public TaskNodeBuilder getBuilder()
ITaskProvider
getBuilder in interface ITaskProviderpublic boolean canRunIn(ITestEnvironment env)
env - the environment for which to tell whether this test can runpublic groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectgetMetaClass in class LightestContextAwarepublic void setMetaClass(groovy.lang.MetaClass metaClass)
setMetaClass in interface groovy.lang.GroovyObjectsetMetaClass in class LightestContextAware
public Object invokeMethod(String name,
Object args)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class LightestContextAwarepublic Object getProperty(String name)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class LightestContextAware
public void setProperty(String name,
Object value)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class LightestContextAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||