It works fine now. Thanks much !!
On Nov 3, 2:24 pm, Jian Fang <[email protected]> wrote:
> See here,
>
> http://code.google.com/p/aost/wiki/UserGuide070AppendixB#What_Are_the...
>
>
>
> On Tue, Nov 3, 2009 at 2:19 PM, Gary Shao <[email protected]> wrote:
>
> > I changed customClass = "" , but got the new error:
> > Exception in thread "main" java.lang.NullPointerException: Cannot
> > invoke method
> > open() on null object
> > at org.codehaus.groovy.runtime.NullObject.invokeMethod
> > (NullObject.java:7
> > 7)
> > at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod
> > (InvokerHel
>
> > C:\dsl>test7339.bat
>
> > C:\dsl>java -Xmx512m -cp "C:\dsl\lib\groovy-all-1.6.0.jar;C:\dsl\lib
> > \json_simple
> > -r1.jar;C:\dsl\lib\junit-4.4.jar;C:\dsl\lib\selenium-grid-
> > tools-1.0.2.jar;C:\dsl
> > \lib\selenium-java-client-driver-1.0.1.jar;C:\dsl\lib\selenium-
> > server-1.0.1-te.j
> > ar;C:\dsl\lib\stringtree-json-2.0.10.jar;C:\dsl\lib\tellurium-
> > core-0.7.0-2009101
> > 3.045016-33.jar;C:\dsl\lib\tellurium-core-0.7.0-20091019.164526-34-
> > test-sources.
> > jar;C:\dsl\lib\testng-5.8-jdk15.jar"
> > org.tellurium.dsl.DslScriptExecutor Test733
> > 9.dsl
> > Parse configuration file: TelluriumConfig.groovy from project root
> > directory...
> > Configure UI Object Builders using configuration file
> > Configure widget modules using configuration file
> > Configure event handler using configuration file
> > Configure data accessor using configuration file
> > Configure dispatcher using configuration file
> > Configure Embedded Selenium Server using configuration file
> > Use user extension file org.tellurium.server.SeleniumServerDaemon
> > $_run_closure1@
> > 5e8d7d
> > 14:15:30.062 INFO - Java: Sun Microsystems Inc. 14.1-b02
> > 14:15:30.078 INFO - OS: Windows XP 5.1 x86
> > 14:15:30.078 INFO - v1.0.1 [2697], with Core v...@version@ [...@revision@]
> > 14:15:30.156 INFO - Version Jetty/5.1.x
> > 14:15:30.156 INFO - Started HttpContext[/selenium-server/driver,/
> > selenium-server
> > /driver]
> > 14:15:30.156 INFO - Started HttpContext[/selenium-server,/selenium-
> > server]
> > 14:15:30.156 INFO - Started HttpContext[/,/]
> > 14:15:30.171 INFO - Started SocketListener on 0.0.0.0:4444
> > 14:15:30.171 INFO - Started org.mortbay.jetty.ser...@96ad7c
> > Configure Selenium Client using configuration file
> > Exception in thread "main" java.lang.NullPointerException: Cannot
> > invoke method
> > open() on null object
> > at org.codehaus.groovy.runtime.NullObject.invokeMethod
> > (NullObject.java:7
> > 7)
> > at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod
> > (InvokerHel
> > per.java:743)
> > at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod
> > (InvokerHelper.
> > java:720)
> > at org.codehaus.groovy.runtime.callsite.NullCallSite.call
> > (NullCallSite.j
> > ava:17)
> > at
> > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
> > teArray.java:43)
> > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> > (AbstractCa
> > llSite.java:116)
> > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> > (AbstractCa
> > llSite.java:124)
> > at org.tellurium.connector.SeleniumConnector.connectUrl
> > (SeleniumConnecto
> > r.groovy:47)
> > at org.tellurium.connector.SeleniumConnector$connectUrl.call
> > (Unknown Sou
> > rce)
> > at
> > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
> > teArray.java:43)
> > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> > (AbstractCa
> > llSite.java:116)
> > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> > (AbstractCa
> > llSite.java:124)
> > at
> > org.tellurium.test.groovy.BaseTelluriumGroovyTestCase.connectUrl(Base
> > TelluriumGroovyTestCase.groovy:24)
> > at org.tellurium.test.groovy.BaseTelluriumGroovyTestCase
> > $connectUrl.call
> > (Unknown Source)
> > at
> > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
> > teArray.java:43)
> > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> > (AbstractCa
> > llSite.java:116)
> > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> > (AbstractCa
> > llSite.java:124)
> > at org.tellurium.dsl.DslScriptEngine.openUrl
> > (DslScriptEngine.groovy:19)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > Source)
> > at java.lang.reflect.Method.invoke(Unknown Source)
> > at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite
> > $PogoCachedMet
> > hodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:266)
> > at
> > org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(P
> > ogoMetaMethodSite.java:51)
> > at
> > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent
> > (CallSiteArray.java:47)
> > at
> > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
> > tractCallSite.java:142)
> > at
> > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
> > tractCallSite.java:150)
> > at DslTest.test(Script1.groovy:22)
> > at DslTest$test.call(Unknown Source)
> > at
> > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
> > teArray.java:43)
> > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> > (AbstractCa
> > llSite.java:116)
> > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> > (AbstractCa
> > llSite.java:120)
> > at Script1.run(Script1.groovy:68)
> > at groovy.lang.GroovyShell.evaluate(GroovyShell.java:561)
> > at groovy.lang.GroovyShell.evaluate(GroovyShell.java:536)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > Source)
> > at java.lang.reflect.Method.invoke(Unknown Source)
> > at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite
> > $PogoCachedMet
> > hodSiteNoUnwrap.invoke(PogoMetaMethodSite.java:246)
> > at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call
> > (PogoMeta
> > MethodSite.java:63)
> > at
> > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
> > teArray.java:43)
> > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> > (AbstractCa
> > llSite.java:116)
> > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> > (AbstractCa
> > llSite.java:124)
> > at org.tellurium.dsl.DslScriptExecutor.main
> > (DslScriptExecutor.groovy:27)
>
> > On Nov 3, 1:11 pm, Jian Fang <[email protected]> wrote:
> > > In the TelluriumConfig.groovy file, look at the following line,
>
> > > //user's class to hold custom selenium methods associated with
> > > user-extensions.js
> > > //should in full class name, for instance,
> > > "com.mycom.CustomSelenium"
> > > customClass = "org.tellurium.test.MyCommand"
>
> > > and change it to
>
> > > customClass = ""
>
> > > because you don't have the class "org.tellurium.test.MyCommand", which is
> > a
> > > sample mock class in core for testing purpose only.
>
> > > You can find the sample 0.7.0 TelluriumConfig.groovy from the following
> > > link,
>
> > >http://code.google.com/p/aost/wiki/TelluriumConfig070
>
> > > Thanks,
>
> > > Jian
>
> > > On Tue, Nov 3, 2009 at 1:00 PM, Gary Shao <[email protected]> wrote:
>
> > > > other problem comes out, it's complaining "ClassNotFoundException:
> > > > org.tellurium.test.
> > > > MyCommand .....
>
> > > > C:\dsl>java -Xmx512m -cp "C:\dsl\lib\groovy-all-1.6.0.jar;C:\dsl\lib
> > > > \json_simple
> > > > -r1.jar;C:\dsl\lib\junit-4.4.jar;C:\dsl\lib\selenium-grid-
> > > > tools-1.0.2.jar;C:\dsl
> > > > \lib\selenium-java-client-driver-1.0.1.jar;C:\dsl\lib\selenium-
> > > > server-1.0.1-te.j
> > > > ar;C:\dsl\lib\stringtree-json-2.0.10.jar;C:\dsl\lib\tellurium-
> > > > core-0.7.0-2009101
> > > > 9.164526-34.jar;C:\dsl\lib\testng-5.8-jdk15.jar"
> > > > org.tellurium.dsl.DslScriptExec
> > > > utor Test7339.dsl
> > > > Parse configuration file: TelluriumConfig.groovy from project root
> > > > directory...
> > > > Configure UI Object Builders using configuration file
> > > > Configure widget modules using configuration file
> > > > Configure event handler using configuration file
> > > > Configure data accessor using configuration file
> > > > Configure dispatcher using configuration file
> > > > Configure Embedded Selenium Server using configuration file
> > > > Use user extension file org.tellurium.server.SeleniumServerDaemon
> > > > $_run_closure1@
> > > > 5e8d7d
> > > > 12:42:38.859 INFO - Java: Sun Microsystems Inc. 14.1-b02
> > > > 12:42:38.859 INFO - OS: Windows XP 5.1 x86
> > > > 12:42:38.875 INFO - v1.0.1 [2697], with Core v...@version@
> > > > [...@revision@]
> > > > 12:42:38.953 INFO - Version Jetty/5.1.x
> > > > 12:42:38.953 INFO - Started HttpContext[/selenium-server/driver,/
> > > > selenium-server
> > > > /driver]
> > > > 12:42:38.953 INFO - Started HttpContext[/selenium-server,/selenium-
> > > > server]
> > > > 12:42:38.953 INFO - Started HttpContext[/,/]
> > > > 12:42:38.968 INFO - Started SocketListener on 0.0.0.0:4444
> > > > 12:42:38.968 INFO - Started org.mortbay.jetty.ser...@96ad7c
> > > > Configure Selenium Client using configuration file
> > > > Exception in thread "main" java.lang.ClassNotFoundException:
> > > > org.tellurium.test.
> > > > MyCommand
> > > > at java.net.URLClassLoader$1.run(Unknown Source)
> > > > at java.security.AccessController.doPrivileged(Native Method)
> > > > at java.net.URLClassLoader.findClass(Unknown Source)
> > > > at java.lang.ClassLoader.loadClass(Unknown Source)
> > > > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> > > > at java.lang.ClassLoader.loadClass(Unknown Source)
> > > > at
>
> ...
>
> read more »- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---