Closed GoogleCodeExporter closed 8 years ago
Original comment by John.Jian.Fang@gmail.com
on 11 Dec 2009 at 5:34
ellurium Core 0.7.0 added support for Configuration file check as suggested by
our
user. That can be easily demonstrated by the following example, if we comment
out the
following section in TelluriumConfig.groovy
//the bundling tier
// bundle{
// maxMacroCmd = 5
// useMacroCommand = false
// }
What will happen? Tellurium will throw the following exception
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.telluriumsource.bootstrap.TelluriumSupport.class$(TelluriumSupport.groovy)
at
org.telluriumsource.bootstrap.TelluriumSupport.$get$$class$org$telluriumsource$f
ramework$TelluriumFrameworkMetaClass(TelluriumSupport.groovy)
at
org.telluriumsource.bootstrap.TelluriumSupport.addSupport(TelluriumSupport.groov
y:17)
at
org.telluriumsource.test.java.TelluriumTestNGTestCase.setUpForTest(TelluriumTest
NGTestCase.java:22)
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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:607)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:417)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:154)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:88)
at org.testng.TestRunner.beforeRun(TestRunner.java:510)
at org.testng.TestRunner.run(TestRunner.java:478)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:332)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:327)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:299)
at org.testng.SuiteRunner.run(SuiteRunner.java:204)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:867)
at org.testng.TestNG.runSuitesLocally(TestNG.java:832)
at org.testng.TestNG.run(TestNG.java:748)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
Caused by: org.telluriumsource.exception.ConfigNotFoundException: Cannot find
Tellurium Configuration tellurium.bundle.maxMacroCmd, please check
http://code.google.com/p/aost/wiki/TelluriumConfig070 for updated
TelluriumConfig.groovy, or report to Tellurium user group at
http://groups.google.com/group/tellurium-users
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.reflection.CachedConstructor.invoke(CachedConstructor.java:7
7)
at
org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCo
erce.callConstructor(ConstructorSite.java:107)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSi
teArray.java:52)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCa
llSite.java:192)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCa
llSite.java:200)
at
org.telluriumsource.config.TelluriumConfigurator.checkConfig(TelluriumConfigurat
or.groovy:41)
Original comment by John.Jian.Fang@gmail.com
on 11 Dec 2009 at 8:37
Original issue reported on code.google.com by
John.Jian.Fang@gmail.com
on 11 Dec 2009 at 3:23