See here, http://code.google.com/p/aost/wiki/UserGuide070AppendixB#What_Are_the_Differences_Between_connectUrl_and_openUrl
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 > > > org.codehaus.groovy.runtime.callsite.CallSiteClassLoader.loadClass(Ca > > > llSiteClassLoader.java:51) > > > at java.lang.ClassLoader.loadClass(Unknown Source) > > > at > > > org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.loadClass > > > > > On Nov 3, 12:19 pm, Jian Fang <[email protected]> wrote: > > > > Seems your jar is corrupted. Please download a new jar from here, > > > > > > > http://maven.kungfuters.org/content/repositories/snapshots/tellurium/... > > > > > > I verified that the DslScriptExecutor class is in the jar file. > > > > > > inflated: > > > > org/tellurium/dsl/DslContext$_selectParentFrameFrom_closure2.class > > > > inflated: > > > > org/tellurium/dsl/BaseDslContext$_getSelectOptions_closure21.class > > > > inflated: org/tellurium/dsl/DslScriptExecutor.class > > > > inflated: > org/tellurium/dsl/BaseDslContext$_mouseOver_closure45.class > > > > inflated: org/tellurium/dsl/DslContext$_closeWindow_closure8.class > > > > > > On Tue, Nov 3, 2009 at 11:41 AM, Gary Shao <[email protected]> > wrote: > > > > > > > I think the class is missing(and a I/O error when running the jar > > > > > xvf), I use winRAR to view the jar file and don't see the class > > > > > DslScriptExecutor either. > > > > > > > C:\dsl\lib\tmp>jar xvf tellurium-core-0.7.0-20090930.144130-28.jar > > > > > created: META-INF/ > > > > > inflated: META-INF/MANIFEST.MF > > > > > created: org/ > > > > > created: org/tellurium/ > > > > > created: org/tellurium/extend/ > > > > > created: org/tellurium/object/ > > > > > created: org/tellurium/framework/ > > > > > created: org/tellurium/access/ > > > > > created: org/tellurium/bootstrap/ > > > > > created: org/tellurium/config/ > > > > > created: org/tellurium/connector/ > > > > > created: org/tellurium/widget/ > > > > > created: org/tellurium/util/ > > > > > created: org/tellurium/event/ > > > > > created: org/tellurium/dsl/ > > > > > created: org/tellurium/locator/ > > > > > created: org/tellurium/exception/ > > > > > created: org/tellurium/ddt/ > > > > > created: org/tellurium/ddt/object/ > > > > > created: org/tellurium/ddt/object/mapping/ > > > > > created: org/tellurium/ddt/object/mapping/mapping/ > > > > > created: org/tellurium/ddt/object/mapping/bind/ > > > > > created: org/tellurium/ddt/object/mapping/io/ > > > > > created: org/tellurium/ddt/object/mapping/type/ > > > > > created: org/tellurium/ddt/object/mapping/validator/ > > > > > created: org/tellurium/ddt/object/mapping/builder/ > > > > > created: org/tellurium/server/ > > > > > created: org/tellurium/client/ > > > > > created: org/tellurium/grid/ > > > > > created: org/tellurium/builder/ > > > > > created: org/tellurium/dispatch/ > > > > > created: org/tellurium/test/ > > > > > created: org/tellurium/test/groovy/ > > > > > created: org/tellurium/test/crosscut/ > > > > > created: org/tellurium/test/java/ > > > > > created: org/tellurium/test/mock/ > > > > > created: org/tellurium/test/ddt/ > > > > > created: org/tellurium/test/helper/ > > > > > created: org/tellurium/tool/ > > > > > inflated: org/tellurium/extend/ExtensionMetaClass.class > > > > > inflated: org/tellurium/extend/Extension.class > > > > > inflated: org/tellurium/object/Span.class > > > > > inflated: org/tellurium/object/RadioButton.class > > > > > inflated: org/tellurium/object/Button.class > > > > > inflated: org/tellurium/object/TextBox.class > > > > > inflated: org/tellurium/object/GenericTable > > > > > $_internalId_closure1.class > > > > > inflated: org/tellurium/object/Table > > > > > $_getMaxRowColumnIndices_closure2.class > > > > > inflated: > org/tellurium/object/Option$_getComponents_closure1.class > > > > > inflated: org/tellurium/object/GTable.class > > > > > inflated: org/tellurium/object/Alias.class > > > > > inflated: org/tellurium/object/GenericTable.class > > > > > inflated: org/tellurium/object/InputBox.class > > > > > inflated: org/tellurium/object/Container$_traverse_closure1.class > > > > > inflated: org/tellurium/object/SubmitButton.class > > > > > inflated: org/tellurium/object/Form.class > > > > > inflated: org/tellurium/object/List$_traverse_closure3.class > > > > > inflated: org/tellurium/object/List > > > > > $_getListSizeByJQuerySelector_closure1.class > > > > > > > inflated: org/tellurium/object/Table > > > > > $_getMaxHeaderIndex_closure1.class > > > > > inflated: org/tellurium/object/List$_generateHtml_closure2.class > > > > > inflated: org/tellurium/object/StandardTable > > > > > $_internalId_closure1.class > > > > > inflated: org/tellurium/object/StandardTable > > > > > $_traverseElement_closure6.class > > > > > inflated: org/tellurium/object/GenericTable > > > > > $_traverseFoot_closure4.class > > > > > inflated: org/tellurium/object/ClickableUi.class > > > > > inflated: > org/tellurium/object/Container$_generateHtml_closure2.class > > > > > inflated: org/tellurium/object/Container.class > > > > > inflated: org/tellurium/object/StandardTable > > > > > $_traverseFoot_closure4.class > > > > > inflated: org/tellurium/object/UiObject.class > > > > > inflated: org/tellurium/object/GenericTable > > > > > $_traverseHeader_closure3.class > > > > > inflated: > org/tellurium/object/Table$_traverseHeader_closure3.class > > > > > inflated: org/tellurium/object/StandardTable.class > > > > > inflated: org/tellurium/object/SimpleMenu.class > > > > > inflated: org/tellurium/object/GenericTable > > > > > $_traverseElement_closure6.class > > > > > inflated: > org/tellurium/object/GenericTable$_validId_closure2.class > > > > > inflated: org/tellurium/object/UrlLink.class > > > > > inflated: org/tellurium/object/Grid.class > > > > > inflated: org/tellurium/object/Table.class > > > > > inflated: org/tellurium/object/Body.class > > > > > inflated: org/tellurium/object/List.class > > > > > inflated: org/tellurium/object/Selector.class > > > > > inflated: > org/tellurium/object/Table$_traverseElement_closure4.class > > > > > inflated: org/tellurium/object/Icon.class > > > > > inflated: org/tellurium/object/Foot.class > > > > > inflated: org/tellurium/object/Header.class > > > > > inflated: org/tellurium/object/GenericTable > > > > > $_traverseElement_closure5.class > > > > > inflated: > org/tellurium/object/Table$_traverseElement_closure5.class > > > > > inflated: org/tellurium/object/StandardTable > > > > > $_traverseHeader_closure3.class > > > > > inflated: org/tellurium/object/CheckBox.class > > > > > inflated: > org/tellurium/object/StandardTable$_validId_closure2.class > > > > > inflated: org/tellurium/object/Image.class > > > > > inflated: org/tellurium/object/SimpleMenu > > > > > $_addMenuItems_closure1.class > > > > > inflated: org/tellurium/object/Div.class > > > > > inflated: org/tellurium/object/StandardTable > > > > > $_traverseElement_closure5.class > > > > > inflated: org/tellurium/object/Frame.class > > > > > inflated: org/tellurium/object/Window.class > > > > > inflated: org/tellurium/object/Option.class > > > > > inflated: org/tellurium/framework/TelluriumFramework.class > > > > > inflated: > org/tellurium/framework/TelluriumFrameworkMetaClass.class > > > > > inflated: org/tellurium/access/AccessorMetaClass.class > > > > > inflated: org/tellurium/access/Accessor.class > > > > > inflated: org/tellurium/bootstrap/TelluriumSupport.class > > > > > inflated: > org/tellurium/config/TelluriumConfiguratorMetaClass.class > > > > ... > > > > 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 -~----------~----~----~----~------~----~------~--~---
