No, by using 0.7.0, the value is not changing and therefore the assertion failed. I turned the jar file back to 0.6.0 and it works fine. I got no clue and I guess it's javascript issue since the web page has lots of javascript codes.
On Nov 9, 10:35 am, Jian Fang <[email protected]> wrote: > What is the result you got for the variable "a"? The correct value should > be 4000, right? > > > > On Mon, Nov 9, 2009 at 10:30 AM, Gary Shao <[email protected]> wrote: > > > it's simpley 'type' command. The textbox input5 is a auto-filled the > > sum of input1-4 triggering by javascript. (See the dsl below). > > > type "table.T4t.input1", "1000" > > type "table.T4t.input2", "1000" > > type "table.T4t.input3", "1000" > > type "table.T4t.input4", "1000" > > > String a = getValue("table.T4t.input5") > > printf("a=%s\n",a) > > > assertEquals("4000", a) > > > On Nov 6, 2:53 pm, Jian Fang <[email protected]> wrote: > > > Which method calls (DSL methods) lead to this difference? > > > > On Fri, Nov 6, 2009 at 2:49 PM, Gary Shao <[email protected]> wrote: > > > > > HI , just a FYI, I use the recent 0.7.0 snapshoot and some of my > > > > testing results got differently from 0.6.0, one of our web page auto- > > > > fill textbox (developed based on prototype 1.5) does not get filled as > > > > it suppose to, I changed back to 0.6.0 and it's back to work fine. > > > > > On Nov 3, 3:02 pm, Gary Shao <[email protected]> wrote: > > > > > 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 > > ... > > 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 -~----------~----~----~----~------~----~------~--~---
