nikgoodley-ibboost / aost

Automatically exported from code.google.com/p/aost
0 stars 0 forks source link

Tellurium TestCase in Eclipse: ExceptionInInitializerError #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I followed the steps in the page "CustomTelluriumEclipseProject" (link:
http://code.google.com/p/aost/wiki/CustomTelluriumEclipseProject" (Remark:
I removed only the passage "datadriven" in the file TelluriumConfig.groovy
because this test is not datadriven.)
2. I tried to run the file GoogleStartPageJavaTestCase.java by "Run as
JUnit Test"
3. Now I got the failed test (see below)

What is the expected output? What do you see instead?
At the Eclipse Console:
Parse configuration file: TelluriumConfig.groovy
Configure UI Object Builders using configuration file
Configure widget modules using configuration file

At the JUnit-Failure Trace in Eclipse:
java.lang.ExceptionInInitializerError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at org.tellurium.bootstrap.TelluriumSupport.class$(TelluriumSupport.groovy)
    at
org.tellurium.bootstrap.TelluriumSupport.addSupport(TelluriumSupport.groovy:17)
    at org.tellurium.test.java.TelluriumJavaTestCase.setUpForClass(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java
:44)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:
15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:4
1)
    at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReferen
ce.java:45)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner
.java:460)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner
.java:673)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java
:386)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.jav
a:196)
Caused by: groovy.lang.MissingMethodException: No signature of method:
org.tellurium.widget.WidgetConfigurator.configWidgetModule() is applicable
for argument types: (groovy.util.ConfigObject) values: {[:]}
    at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.j
ava:55)
    at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.j
ava:60)
    at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAd
apter.java:172)
    at
org.tellurium.widget.WidgetConfigurator.invokeMethod(WidgetConfigurator.groovy)
    at
org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:78
4)
    at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758)
    at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAd
apter.java:170)
    at
org.tellurium.config.TelluriumConfigurator.configWidgetModule(TelluriumConfigura
tor.groovy:116)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
    at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptB
ytecodeAdapter.java:78)
    at
org.tellurium.config.TelluriumConfigurator.config(TelluriumConfigurator.groovy:1
86)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
    at
org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:77
8)
    at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758)
    at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAd
apter.java:170)
    at
org.tellurium.framework.TelluriumFramework.<init>(TelluriumFramework.groovy:73)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI
mpl.java:39)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorA
ccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at
org.codehaus.groovy.runtime.MetaClassHelper.doConstructorInvoke(MetaClassHelper.
java:595)
    at groovy.lang.MetaClassImpl.doConstructorInvoke(MetaClassImpl.java:2359)
    at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1255)
    at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1185)
    at
org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHelper.java
:809)
    at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNewN(ScriptBytecodeAdapt
er.java:230)
    at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNew0(ScriptBytecodeAdapt
er.java:237)
    at
org.tellurium.framework.TelluriumFrameworkMetaClass.<clinit>(TelluriumFrameworkM
etaClass.groovy:11)
    ... 21 more

What version of the product are you using? On what operating system?
- OS: Windows XP
- IDE: Eclipse 3.4 (Ganymede)
- JUnit 4.5 (junit-4.5.jar)
- Groovy 1.5.7 (groovy-all-1.5.7.jar, an Eclipse Plugin)
- Tellurium 0.5.0 (tellurium-0.5.0.jar)
- Selenium 1.0-beta-2 (selenium-server.jar and selenium-java-client-driver.jar)

Please provide any additional information below.

Original issue reported on code.google.com by rossi...@gmail.com on 4 Feb 2009 at 10:26

GoogleCodeExporter commented 9 years ago
Haroon or Quan, could you take care of this issue? We three are busy working on 
TrUMP
now.

Thanks,

Jian

Original comment by John.Jian.Fang@gmail.com on 4 Feb 2009 at 4:15

GoogleCodeExporter commented 9 years ago
rossiweb,

I posted your problem to our Tellurium user group at

http://groups.google.com/group/tellurium-users

Please join our user group and follow up with the problem.

Thanks,

Jian

Original comment by John.Jian.Fang@gmail.com on 5 Feb 2009 at 6:19

GoogleCodeExporter commented 9 years ago

Original comment by John.Jian.Fang@gmail.com on 6 Feb 2009 at 3:06