|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectremoteTester.runner.TestRunner
This testRunner allows to execute runner TestCase on server side, even if the
TestCase class is only available on runner side.
This is done by uploading the class codebyte on the server
To be able to locate the server a jndi.properties file
must be available in the client classpath
Field Summary | |
static java.lang.String |
JNDI_TESTRUNNER
the JNDI name of the TestRunner SB Service |
Constructor Summary | |
TestRunner()
|
Method Summary | |
protected static TestRunnerRemote |
getTestRunnerRemoteService()
retrieve the TestRunner Service on the server |
static void |
main(java.lang.String[] args)
|
static boolean |
run(java.lang.String className)
runTC the class on server side (class must be accessible to server classloader) |
static boolean |
uploadAndRun(java.lang.Class classToTest)
upload the class from runner on server side and run it |
static boolean |
uploadAndRun(java.lang.Class classToTest,
java.lang.Class[] helperClasses)
upload the class from runner on server side and run it |
static boolean |
uploadAndRun(java.lang.String className)
upload the class from runner on server side and run it |
static boolean |
uploadAndRun(java.lang.String className,
java.lang.String[] helperClassNames)
upload the class and its helper classes from client to server side and run it |
static TestResultSerializable |
uploadAndRunWithResult(java.lang.Class clazz,
java.lang.Class[] helperClasses,
java.lang.String testMethodName)
upload the class from runner on server side and run a test method on it |
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 JNDI_TESTRUNNER
Constructor Detail |
public TestRunner()
Method Detail |
public static TestResultSerializable uploadAndRunWithResult(java.lang.Class clazz, java.lang.Class[] helperClasses, java.lang.String testMethodName) throws java.lang.Exception
clazz
- the name of a class accessible on runner classloaderhelperClasses
- testMethodName
- the method to test
java.lang.Exception
- can be thrown by the execution of the TestCasepublic static boolean run(java.lang.String className) throws java.lang.Exception
className
- name of the class to test
java.lang.Exception
- can be thrown by the execution of the TestCasepublic static boolean uploadAndRun(java.lang.String className) throws java.lang.Exception
className
- the name of a class accessible on runner classloader
java.lang.Exception
- can be thrown by the execution of the TestCasepublic static boolean uploadAndRun(java.lang.Class classToTest) throws java.lang.Exception
classToTest
- the class accessible on runner classloader
java.lang.Exception
- can be thrown by the execution of the TestCasepublic static boolean uploadAndRun(java.lang.Class classToTest, java.lang.Class[] helperClasses) throws java.lang.Exception
classToTest
- the class accessible on runner classloaderhelperClasses
- helper classes
java.lang.Exception
- can be thrown by the execution of the TestCasepublic static boolean uploadAndRun(java.lang.String className, java.lang.String[] helperClassNames) throws java.lang.Exception
className
- the name of a class accessible on runner classloaderhelperClassNames
- full qualified helper class name
java.lang.Exception
protected static TestRunnerRemote getTestRunnerRemoteService() throws java.lang.Exception
javax.ejb.CreateException
java.rmi.RemoteException
java.lang.Exception
public static void main(java.lang.String[] args)
args
- indique le nom de la classe à tester.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |