Yes it's back to work after I add the response events to the input
boxes!!, Thank you so much! btw, Do you know there is similar setting
for Selenium? I have the same issue on Selenium when I try its record
and play back features, the auto-fill input box is not triggered when
running the test case.

I currently evaluate 3 open source testing tools - Canoo Webtest,
Tellurium, and Selenium. Our requirement is different than usual, the
goal is to generate the test scripts automatically at run time to test
the web controls(input text box, selection list, etc) and the editing
rules(auto fill, auto sum, etc) are created by our clients via the
app. The javascript is doing the work on the JSP page. We need a
automatic testing framwork to test the javascript events when the web
components (input box, selection list, the editing rules, etc) are
created by the end user to ensure they are working. The front end jsp
page contains the javascript code (see the example below):

<td>
<input id="9738-1-2-0-sum" class="dataCell numberType"
name="9738-1-2-0-sum" size="7"/>
<script type="text/javascript">
1
2 Event.observe(window,'load',function() {
3 var elm = $('9738-1-2-0-sum');
4 if (elm) {
5 AutoSumCell.calcSum('9738','9738-1-2-0-sum');
6 }
7 });
8
</script>
</td>

I am thinking to parse the jsp/html to generate the DSLs, Do you have
any suggestions for this approach?


On Nov 10, 9:26 am, Jian Fang <[email protected]> wrote:
> Yes, indeed, it is a JavaScript problem. If you look at the log, you will
> see that the 0.6.0 one comes
> with additional events such as "mouseOver", "focus", and "mouseOut". I guess
> your input fields are
> triggered by one of the above events. Thus, you need to add the respond
> attribute to the input fields.
>
> http://code.google.com/p/aost/wiki/UserGuide070DetailsOnTellurium#Res...
>
> Or in the configuration file, set the extraEvent to be true so that
> additional events will be added automatically.
>
>     //event handler
>     eventhandler{
>         //whether we should check if the UI element is presented
>         checkElement = false
>         //wether we add additional events like "mouse over"
>         extraEvent = true
>     }
>
> The first mechanism is recommended.
>
> The difference between 0.6.0 and 0.7.0 is that the extra event is disabled
> by default in 0.7.0 as
> requested by some users.
>
> Let us know if this works for you.
>
> Thanks,
>
> Jian
>
>
>
> On Mon, Nov 9, 2009 at 4:54 PM, Gary Shao <[email protected]> wrote:
>
> > Yes, the log below is generated when using 0.7.0, the value 13689 is
> > pre-populated from the app, it supposed to be changed to value 4000
> > when 'type' command issues for the value or each input textbox.
>
> > -------------------------- From console
> > ---------------------------------
> > 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 Test4258.dsl  1>Test4258_070Out.txt
> > Exception in thread "main" junit.framework.ComparisonFailure: null
> > expected:<[40
> > 00]> but was:<[13689]>
> >        at junit.framework.Assert.assertEquals(Assert.java:81)
> >        at junit.framework.Assert.assertEquals(Assert.java:87)
> >        at junit.framework.Assert$assertEquals.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:128)
> >        at org.tellurium.dsl.DdDslContext.assertEquals
> > (DdDslContext.groovy:238)
> >        at org.tellurium.dsl.DdDslContext$assertEquals.callCurrent
> > (Unknown Sourc
> > e)
> >        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:154)
> >        at DslTest.test(Script1.groovy:68)
> >         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:100)
> >         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)
>
> > --------------------------------- Log file test4258_070Out.txt
> > --------------------------------------
>
> > 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_closu...@151b0a5
> > 16:40:10.906 INFO - Java: Sun Microsystems Inc. 14.1-b02
> > 16:40:10.906 INFO - OS: Windows XP 5.1 x86
> > 16:40:10.906 INFO - v1.0.1 [2697], with Core v...@version@ [...@revision@]
> > 16:40:10.984 INFO - Version Jetty/5.1.x
> > 16:40:10.984 INFO - Started HttpContext[/selenium-server/driver,/
> > selenium-server/driver]
> > 16:40:11.000 INFO - Started HttpContext[/selenium-server,/selenium-
> > server]
> > 16:40:11.000 INFO - Started HttpContext[/,/]
> > 16:40:11.000 INFO - Started SocketListener on 0.0.0.0:4444
> > 16:40:11.000 INFO - Started org.mortbay.jetty.ser...@114025
> > Configure Selenium Client using configuration file
> > 16:40:16.250 INFO - Checking Resource aliases
> > 16:40:16.250 INFO - Checking Resource aliases
> > 16:40:16.265 INFO - Command request: getNewBrowserSession[*firefox,
> >http://localhost:8080, ] on session null
> > 16:40:16.265 INFO - creating new remote session
> > 16:40:16.437 INFO - Allocated session f89afd8a6e2f430b8cbb0207bb99665b
> > forhttp://localhost:8080, launching...
> > 16:40:16.500 INFO - Preparing Firefox profile...
> > 16:40:19.390 INFO - Launching Firefox...
> > 16:40:23.625 INFO - Got result: OK,f89afd8a6e2f430b8cbb0207bb99665b on
> > session f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:23.640 INFO - Command request: addLocationStrategy[jquery,
> >          return tellurium.locateElementByJQuerySelector(locator,
> > inDocument, inWindow);
> >      ] on session f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:23.656 INFO - Got result: OK on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:23.671 INFO - Command request: addLocationStrategy[jquerycache,
> >          return tellurium.locateElementByCacheAwareJQuerySelector
> > (locator, inDocument, inWindow);
> >      ] on session f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:23.687 INFO - Got result: OK on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:23.687 INFO - Command request: open[http://localhost:8080/EIA-
> > ISMS/ <http://localhost:8080/EIA-%0AISMS/>, ] on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:23.765 INFO - Got result: OK on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:23.875 INFO - Command request: type[jquery=table input.required
> > [type=text][name=username], idcuser] on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:23.906 INFO - Got result: OK on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:23.906 INFO - Command request: type[jquery=table input.required
> > [type=password][name=password], S0cc3r] on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:23.937 INFO - Got result: OK on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:23.937 INFO - Command request: click[jquery=table input
> > [type=submit][value=Login], ] on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:24.062 INFO - Got result: OK on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:27.078 INFO - Command request: open[http://localhost:8080/EIA-
> > ISMS/layout2.jsp?
>
> > ckr=frsp&instrument_id=4258&mode=edit&response_id=1226466004013&sc_value=5&­nav=h<http://localhost:8080/EIA-%0AISMS/layout2.jsp?%0Ackr=frsp&instrument_...>,
> > ]
> > on session f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:45.125 INFO - Got result: OK on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:45.140 INFO - Command request: type[jquery=#9738_01_000001, NJ]
> > on session f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:45.171 INFO - Got result: OK on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:45.171 INFO - Command request: type[jquery=#9738_01_001001,
> > 1000] on session f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:45.187 INFO - Got result: OK on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:45.203 INFO - Command request: type[jquery=#9738_01_002001,
> > 1000] on session f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:45.218 INFO - Got result: OK on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:45.218 INFO - Command request: type[jquery=#9738_01_003001,
> > 1000] on session f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:45.234 INFO - Got result: OK on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:45.250 INFO - Command request: type[jquery=#9738_01_004001,
> > 1000] on session f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:45.250 INFO - Got result: OK on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:45.265 INFO - Command request: isElementPresent
> > [jquery=#9738-1-2-0-sum, ] on session f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:45.281 INFO - Got result: OK,true on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:45.281 INFO - Command request: getValue[jquery=#9738-1-2-0-
> > sum, ] on session f89afd8a6e2f430b8cbb0207bb99665b
> > 16:40:45.296 INFO - Got result: OK,13689 on session
> > f89afd8a6e2f430b8cbb0207bb99665b
> > a=13689
>
> > ---------------------------------  Output log file using 060
> > --------------------------
>
> > Parse configuration file: TelluriumConfig.groovy
> > 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 user-extensions.js
> > 16:26:30.109 INFO - Java: Sun Microsystems Inc. 14.1-b02
> > 16:26:30.109 INFO - OS: Windows XP 5.1 x86
> > 16:26:30.125 INFO - v1.0.1 [2697], with Core v...@version@ [...@revision@]
> > 16:26:30.203 INFO - Version Jetty/5.1.x
> > 16:26:30.203 INFO - Started HttpContext[/selenium-server/driver,/
> > selenium-server/driver]
> > 16:26:30.203 INFO - Started HttpContext[/selenium-server,/selenium-
> > server]
> > 16:26:30.203 INFO - Started HttpContext[/,/]
> > 16:26:30.218 INFO - Started SocketListener on 0.0.0.0:4444
> > 16:26:30.218 INFO - Started org.mortbay.jetty.ser...@10e687b
> > Configure Selenium Client using configuration file
> > 16:26:35.265 INFO - Contacting Selenium RC at localhost:4444
> > 16:26:35.406 INFO - Checking Resource aliases
> > 16:26:35.406 INFO - Checking Resource aliases
> > 16:26:35.421 INFO - Command request: getNewBrowserSession[*firefox,
> >http://localhost:8080, ] on session null
> > 16:26:35.421 INFO - creating new remote session
> > 16:26:35.593 INFO - Allocated session 6860014316ad4b6a95188074a692fd1a
> > forhttp://localhost:8080, launching...
> > 16:26:35.703 INFO - Preparing Firefox profile...
> > 16:26:39.328 INFO - Launching Firefox...
> > 16:26:43.828 INFO - Got result: OK,6860014316ad4b6a95188074a692fd1a on
> > session 6860014316ad4b6a95188074a692fd1a
> > 16:26:43.843 INFO - Got Selenese
> > session:com.thoughtworks.selenium.defaultselen...@1567e6c
> > 16:26:43.859 INFO - Command request: addLocationStrategy[jquery,
> >          return tellurium.locateElementByJQuerySelector(locator,
> > inDocument, inWindow);
> >      ] on session 6860014316ad4b6a95188074a692fd1a
> > 16:26:43.875 INFO - Got result: OK on session
> > 6860014316ad4b6a95188074a692fd1a
> > 16:26:43.875 INFO - Command request: addLocationStrategy[jquerycache,
> >          return tellurium.locateElementByCacheAwareJQuerySelector
> > (locator, inDocument, inWindow);
> >      ] on session 6860014316ad4b6a95188074a692fd1a
> > 16:26:43.890 INFO - Got result: OK on session
> > 6860014316ad4b6a95188074a692fd1a
> > 16:26:43.984 INFO - Contacting Selenium RC at localhost:4444
> > 16:26:43.984 INFO - Command request: getNewBrowserSession[*firefox,
> >http://localhost:8080, ] on session null
> > 16:26:43.984 INFO - creating new remote session
> > 16:26:43.984 INFO - Allocated session f186c3c5e6544ba89a6445f86af6e5e8
> > forhttp://localhost:8080, launching...
> > 16:26:44.046 INFO - Preparing Firefox profile...
> > 16:26:47.484 INFO - Launching Firefox...
> > 16:26:52.187 INFO - Got result: OK,f186c3c5e6544ba89a6445f86af6e5e8 on
> > session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.187 INFO - Got Selenese
> > session:com.thoughtworks.selenium.defaultselen...@ffc3eb
> > 16:26:52.187 INFO - Command request: addLocationStrategy[jquery,
> >          return tellurium.locateElementByJQuerySelector(locator,
> > inDocument, inWindow);
> >      ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.218 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.218 INFO - Command request: addLocationStrategy[jquerycache,
> >          return tellurium.locateElementByCacheAwareJQuerySelector
> > (locator, inDocument, inWindow);
> >      ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.234 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.234 INFO - Command request: open[http://localhost:8080/EIA-
> > ISMS/ <http://localhost:8080/EIA-%0AISMS/>, ] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.343 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.453 INFO - Command request: isElementPresent[jquery=table
> > input.required[type=text][name=username], ] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.468 INFO - Got result: OK,true on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.484 INFO - Command request: mouseOver[jquery=table
> > input.required[type=text][name=username], ] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.500 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.515 INFO - Command request: fireEvent[jquery=table
> > input.required[type=text][name=username], focus] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.531 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.531 INFO - Command request: type[jquery=table input.required
> > [type=text][name=username], idcuser] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.546 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.562 INFO - Command request: mouseOut[jquery=table
> > input.required[type=text][name=username], ] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.578 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.578 INFO - Command request: fireEvent[jquery=table
> > input.required[type=text][name=username], blur] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.593 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.609 INFO - Command request: isElementPresent[jquery=table
> > input.required[type=password][name=password], ] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.734 INFO - Got result: OK,true on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.750 INFO - Command request: mouseOver[jquery=table
> > input.required[type=password][name=password], ] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.765 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.765 INFO - Command request: fireEvent[jquery=table
> > input.required[type=password][name=password], focus] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.781 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.796 INFO - Command request: type[jquery=table input.required
> > [type=password][name=password], S0cc3r] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.812 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.812 INFO - Command request: mouseOut[jquery=table
> > input.required[type=password][name=password], ] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.843 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.843 INFO - Command request: fireEvent[jquery=table
> > input.required[type=password][name=password], blur] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.859 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.875 INFO - Command request: isElementPresent[jquery=table
> > input[type=submit][value=Login], ] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.890 INFO - Got result: OK,true on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.890 INFO - Command request: mouseOver[jquery=table input
> > [type=submit][value=Login], ] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.921 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.921 INFO - Command request: fireEvent[jquery=table input
> > [type=submit][value=Login], focus] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.937 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:52.937 INFO - Command request: click[jquery=table input
> > [type=submit][value=Login], ] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:53.031 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:26:56.046 INFO - Command request: open[http://localhost:8080/EIA-
> > ISMS/layout2.jsp?
>
> > ckr=frsp&instrument_id=4258&mode=edit&response_id=1226466004013&sc_value=5&­nav=h<http://localhost:8080/EIA-%0AISMS/layout2.jsp?%0Ackr=frsp&instrument_...>,
> > ]
> > on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.453 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.468 INFO - Command request: isElementPresent
> > [jquery=#9738_01_000001, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.515 INFO - Got result: OK,true on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.531 INFO - Command request: mouseOver
> > [jquery=#9738_01_000001, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.546 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.546 INFO - Command request: fireEvent[jquery=#9738_01_000001,
> > focus] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.562 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.562 INFO - Command request: type[jquery=#9738_01_000001, NJ]
> > on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.578 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.593 INFO - Command request: mouseOut
> > [jquery=#9738_01_000001, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.593 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.609 INFO - Command request: fireEvent[jquery=#9738_01_000001,
> > blur] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.625 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.625 INFO - Command request: isElementPresent
> > [jquery=#9738_01_001001, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.640 INFO - Got result: OK,true on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.640 INFO - Command request: mouseOver
> > [jquery=#9738_01_001001, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.656 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.656 INFO - Command request: fireEvent[jquery=#9738_01_001001,
> > focus] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.656 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.671 INFO - Command request: type[jquery=#9738_01_001001,
> > 1000] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.671 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.687 INFO - Command request: mouseOut
> > [jquery=#9738_01_001001, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.687 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.703 INFO - Command request: fireEvent[jquery=#9738_01_001001,
> > blur] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.765 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.781 INFO - Command request: isElementPresent
> > [jquery=#9738_01_002001, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.781 INFO - Got result: OK,true on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.796 INFO - Command request: mouseOver
> > [jquery=#9738_01_002001, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.796 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.796 INFO - Command request: fireEvent[jquery=#9738_01_002001,
> > focus] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.812 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.812 INFO - Command request: type[jquery=#9738_01_002001,
> > 1000] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.828 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.828 INFO - Command request: mouseOut
> > [jquery=#9738_01_002001, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.843 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.843 INFO - Command request: fireEvent[jquery=#9738_01_002001,
> > blur] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.906 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.906 INFO - Command request: isElementPresent
> > [jquery=#9738_01_003001, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.921 INFO - Got result: OK,true on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.921 INFO - Command request: mouseOver
> > [jquery=#9738_01_003001, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.937 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.937 INFO - Command request: fireEvent[jquery=#9738_01_003001,
> > focus] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.953 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.953 INFO - Command request: type[jquery=#9738_01_003001,
> > 1000] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.968 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:14.984 INFO - Command request: mouseOut
> > [jquery=#9738_01_003001, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.000 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.000 INFO - Command request: fireEvent[jquery=#9738_01_003001,
> > blur] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.062 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.062 INFO - Command request: isElementPresent
> > [jquery=#9738_01_004001, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.093 INFO - Got result: OK,true on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.093 INFO - Command request: mouseOver
> > [jquery=#9738_01_004001, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.109 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.109 INFO - Command request: fireEvent[jquery=#9738_01_004001,
> > focus] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.140 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.140 INFO - Command request: type[jquery=#9738_01_004001,
> > 1000] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.171 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.171 INFO - Command request: mouseOut
> > [jquery=#9738_01_004001, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.218 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.218 INFO - Command request: fireEvent[jquery=#9738_01_004001,
> > blur] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.296 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.296 INFO - Command request: isElementPresent
> > [jquery=#9738-1-2-0-sum, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.328 INFO - Got result: OK,true on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.328 INFO - Command request: getValue[jquery=#9738-1-2-0-
> > sum, ] on session f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:15.359 INFO - Got result: OK,4000 on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > a=4000
> > 16:27:17.375 INFO - Command request: cleanCache[, ] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:17.406 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:17.406 INFO - Closing Selenese session:
> > com.thoughtworks.selenium.defaultselen...@ffc3eb
> > 16:27:17.406 INFO - Command request: testComplete[, ] on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:17.421 INFO - Killing Firefox...
> > 16:27:17.687 INFO - Got result: OK on session
> > f186c3c5e6544ba89a6445f86af6e5e8
> > 16:27:17.687 INFO - Stopping Acceptor ServerSocket
> > [addr=0.0.0.0/0.0.0.0,port=0,localport=4444]
> > 16:27:17.796 INFO - Stopped SocketListener on 0.0.0.0:4444
> > 16:27:17.906 INFO - Stopped HttpContext[/selenium-server/driver,/
> > selenium-server/driver]
> > 16:27:18.015 INFO - Stopped HttpContext[/selenium-server,/selenium-
> > server]
> > 16:27:18.125 INFO - Stopped HttpContext[/,/]
> > 16:27:18.125 INFO - Stopped org.mortbay.jetty.ser...@10e687b
> > 16:27:18.125 INFO - Killing Firefox...
> > Dsl test done!
> > --------------------------------------------------------------------------
>
> > On Nov 9, 2:18 pm, Jian Fang <[email protected]> wrote:
> > > Then what was the value of the variable "a" that you printed out?
>
> > > Could you also post the log for all the issued selenium commands from
> > your
> > > console?
>
> > > Thanks,
>
> > > Jian
>
> > > On Mon, Nov 9, 2009 at 11:06 AM, Gary Shao <[email protected]> wrote:
>
> > > > 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
>
> > > ...
>
> > > read more »- Hide quoted text -
>
> > > - Show quoted text -- 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to