Please check the configuration file for 0.7.0 here: http://code.google.com/p/aost/wiki/TelluriumSampleConfigurationFile
For 0.7.0, you also need the Apache POI - the Java API for Microsoft Documents because we added the excel reader for the data driving test. Please download it from (unpack and you need the poi-VERSION.jar): http://poi.apache.org/download.html Thanks, Jian On Tue, Nov 24, 2009 at 7:02 AM, khush <[email protected]> wrote: > Hello Hari, > > Following is my tellurium config file: > /** > * For configuring Tellurium > */ > > tellurium { > > embeddedserver { > > port = "4444" > useMultiWindows = false > runInternally = true > profile = "" > userExtension = "target/classes/extension/user-extensions.js" > } > eventhandler { > checkElement = false > extraEvent = true > } > //data accessor > accessor { > checkElement = true > } > connector { > serverHost = "localhost" > > port = "4444" > > baseUrl = "http://localhost:8082" > browser = "*chrome" > customClass = "" > } > datadriven { > dataprovider { > reader = "PipeFileReader" > } > } > test { > result { > reporter = "XMLResultReporter" > output = "Console" > > filename = "TestResult.output" > } > exception { > captureScreenshot = true > filenamePattern = "Screenshot?.png" > } > } > uiobject { > builder { > } > } > widget { > module { > //define your widget modules here, for example Dojo or ExtJs > // included="dojo, extjs" > included = "" > } > } > } > > And the set of lib file i am using is as follow: > > 1) json_simple-r1.jar > 2) selenium-grid-tools-1.0.2.jar > 3)selenium-java-client-driver-1.0.1.jar > 4) selenium-server-1.0.1-te-2.jar > 5) stringtree-json-2.0.10.jar > 6) tellurium-core-0.7.0-20090529.134708-1.jar files. > > Alos if i revert back to my previous jar files of selenium and > tellurium it works fine. > > Please help me in figure out the problem. > Thanks. > > On Nov 24, 4:56 pm, Harihara Vinayakaram <[email protected]> wrote: > > Hi > > This seems to be an error in the JUnit methods. I don't think it > should > > be so difficult to migrate to a new version. > > > > There seems to be a problem in the TelluriumConfig.groovy . Can you > post > > that also > > > > Regards > > Hari > > > > On Tue, Nov 24, 2009 at 5:02 PM, khush <[email protected]> > wrote: > > > Hello Hari, > > > > > After using IE that problem goes now i get the following err: > > > > > Wrong test finished. Last started: null stopped: Method Adapter: class > > > com.basware.bt.web.user.UserTest#testUserLang; class > > > com.intellij.rt.junit4.Junit4TestMethodAdapter > > > > > 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.$get$$class$org$tellurium > > > $framework$TelluriumFrameworkMetaClass(TelluriumSupport.groovy) > > > at org.tellurium.bootstrap.TelluriumSupport.addSupport > > > (TelluriumSupport.groovy:17) > > > at org.tellurium.test.java.TelluriumJavaTestCase.setUpForClass > > > (TelluriumJavaTestCase.java:22) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at sun.reflect.NativeMethodAccessorImpl.invoke > > > (NativeMethodAccessorImpl.java:39) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke > > > (DelegatingMethodAccessorImpl.java:25) > > > at > > > org.junit.internal.runners.ClassRoadie.runBefores(ClassRoadie.java: > > > 49) > > > at org.junit.internal.runners.ClassRoadie.runProtected > > > (ClassRoadie.java:36) > > > at org.junit.internal.runners.JUnit4ClassRunner.run > > > (JUnit4ClassRunner.java:42) > > > at com.intellij.rt.junit4.Junit4TestMethodAdapter.run > > > (Junit4TestMethodAdapter.java:62) > > > at com.intellij.rt.execution.junit.JUnitStarter.main > > > (JUnitStarter.java:40) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at sun.reflect.NativeMethodAccessorImpl.invoke > > > (NativeMethodAccessorImpl.java:39) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke > > > (DelegatingMethodAccessorImpl.java:25) > > > at > com.intellij.rt.execution.application.AppMain.main(AppMain.java: > > > 90) > > > Caused by: > > > org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot > > > cast object '{}' with class 'groovy.util.ConfigObject' to class > > > 'java.lang.Number' > > > at > > > > > > org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber > > > (DefaultTypeTransformation.java:135) > > > at > > > > > > org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber > > > (DefaultTypeTransformation.java:117) > > > at > > > > org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.intUnbox > > > (DefaultTypeTransformation.java:56) > > > at > > > > > > org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType > > > (DefaultTypeTransformation.java:305) > > > at org.codehaus.groovy.reflection.CachedField.setProperty > > > (CachedField.java:61) > > > at > groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:2341) > > > at > groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:3291) > > > at org.tellurium.bundle.CommandBundleProcessor.setProperty > > > (CommandBundleProcessor.groovy) > > > at groovy.lang.GroovyObject$setProperty.call(Unknown Source) > > > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall > > > (CallSiteArray.java:40) > > > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > > > (AbstractCallSite.java:117) > > > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > > > (AbstractCallSite.java:129) > > > at > > > org.tellurium.config.TelluriumConfigurator.configCommandBundleProcessor > > > (TelluriumConfigurator.groovy:46) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at sun.reflect.NativeMethodAccessorImpl.invoke > > > (NativeMethodAccessorImpl.java:39) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke > > > (DelegatingMethodAccessorImpl.java:25) > > > at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite > > > $PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java: > > > 266) > > > at > > > org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent > > > (PogoMetaMethodSite.java:51) > > > at > > > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent > > > (CallSiteArray.java:44) > > > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent > > > (AbstractCallSite.java:143) > > > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent > > > (AbstractCallSite.java:151) > > > at org.tellurium.config.TelluriumConfigurator.config > > > (TelluriumConfigurator.groovy:219) > > > at org.tellurium.config.Configurator$config.call(Unknown Source) > > > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall > > > (CallSiteArray.java:40) > > > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > > > (AbstractCallSite.java:117) > > > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > > > (AbstractCallSite.java:125) > > > at org.tellurium.framework.TelluriumFramework.<init> > > > (TelluriumFramework.groovy:86) > > > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > > Method) > > > at sun.reflect.NativeConstructorAccessorImpl.newInstance > > > (NativeConstructorAccessorImpl.java:39) > > > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance > > > (DelegatingConstructorAccessorImpl.java:27) > > > at > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > > > at org.codehaus.groovy.reflection.CachedConstructor.invoke > > > (CachedConstructor.java:77) > > > at org.codehaus.groovy.runtime.callsite.ConstructorSite > > > $ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java: > > > 107) > > > at > > > > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor > > > (CallSiteArray.java:52) > > > at > > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor > > > (AbstractCallSite.java:192) > > > at > > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor > > > (AbstractCallSite.java:196) > > > at org.tellurium.framework.TelluriumFrameworkMetaClass.<clinit> > > > (TelluriumFrameworkMetaClass.groovy:11) > > > ... 25 more > > > > > I never knew that for implementing the diagnosis utility i have to go > > > through a number of errs. > > > I am just trying to use the jar files recomended. Do not know what is > > > the problem with them. > > > > > Thanks, > > > Khush. > > > > > On Nov 24, 4:16 pm, Harihara Vinayakaram <[email protected]> wrote: > > > > I get this error on Linux too . Not sure where the problem is . But > this > > > > goes away when you delete the lock file in the profile directory > > > > > > Can you shutdown firefox and then try to delete the file > > > > > > C:\DOCUME~1\KHUSHW~1\LOCALS~1\Temp\customProfileDirb21e1a26f6154d049b59face5449cab1\parent.lock > > > > > > using Windows Explorer or whatever and then try again > > > > > > Is there any work around that anybody has > > > > > > Regards > > > > Hari > > > > > > On Tue, Nov 24, 2009 at 4:43 PM, khush <[email protected]> > > > wrote: > > > > > Hi, > > > > > > > now i am having following files in my project's lib directory: > > > > > > > 1) json_simple-r1.jar > > > > > 2) selenium-grid-tools-1.0.2.jar > > > > > 3)selenium-java-client-driver-1.0.1.jar > > > > > 4) selenium-server-1.0-te-2.jar > > > > > 5) stringtree-json-2.0.10.jar > > > > > 6) tellurium-core-0.7.0-20090529.134708-1.jar files. > > > > > > > When i try to run my web test i get this awkward err: > > > > > > > ERROR [SocketListener0-1] 11-24 16:39:55 Failed to start new > browser > > > > > session, shutdown browser and clear all session data > > > > > (BrowserSessionFactory.java:367) > > > > > java.lang.RuntimeException: Firefox refused shutdown while > preparing a > > > > > profile > > > > > at > > > > > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated > > > > > (FirefoxChromeLauncher.java:267) > > > > > at > > > > > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory > > > > > (FirefoxChromeLauncher.java:119) > > > > > at > > > > > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch > > > > > (FirefoxChromeLauncher.java:96) > > > > > at > > > > > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession > > > > > (FirefoxChromeLauncher.java:310) > > > > > at > > > > > > org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession > > > > > (BrowserSessionFactory.java:351) > > > > > at > > > > > > org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession > > > > > (BrowserSessionFactory.java:119) > > > > > at > > > > > > org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession > > > > > (BrowserSessionFactory.java:82) > > > > > at > > > > > > org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession > > > > > (SeleniumDriverResourceHandler.java:658) > > > > > at > > > > > org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand > > > > > (SeleniumDriverResourceHandler.java:392) > > > > > at > > > > > > org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest > > > > > (SeleniumDriverResourceHandler.java:368) > > > > > at > > > org.openqa.selenium.server.SeleniumDriverResourceHandler.handle > > > > > (SeleniumDriverResourceHandler.java:129) > > > > > at > org.mortbay.http.HttpContext.handle(HttpContext.java:1530) > > > > > at > org.mortbay.http.HttpContext.handle(HttpContext.java:1482) > > > > > at org.mortbay.http.HttpServer.service(HttpServer.java:909) > > > > > at > > > org.mortbay.http.HttpConnection.service(HttpConnection.java:816) > > > > > at > > > org.mortbay.http.HttpConnection.handleNext(HttpConnection.java: > > > > > 982) > > > > ... > > > > read more ยป > > -- > > You received this message because you are subscribed to the Google Groups > "tellurium-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<tellurium-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/tellurium-users?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en.
