Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • HTMLUnit & Tapestry 4.1

    5 answers - 432 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Has anyone here tried to test their Web app with HTMLUnit using Tapestry
    4.1? I'm getting a lot of errors related to embedded dojo stuff, even
    with JavaScript disabled in the web client. Any help would be greatly
    appreciated.
    Thanks,
    Kevin
    To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
  • No.1 | | 776 bytes | |

    I tried a while back with no luck. It's a very admirable attempt at
    mimicking the browser but not quite complete enough to handle the likes of
    dojo

    For this type of integration testing I would reccomend using selenium.
    (tacos uses this currently )

    6/26/06, Kevin Menard <kmenard (AT) servprise (DOT) comwrote:

    Has anyone here tried to test their Web app with HTMLUnit using Tapestry
    4.1? I'm getting a lot of errors related to embedded dojo stuff, even
    with JavaScript disabled in the web client. Any help would be greatly
    appreciated.

    Thanks,
    Kevin

    To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    --
  • No.2 | | 853 bytes | |

    Mon, 26 Jun 2006 12:17:26 -0400, Jesse Kuhnert <jkuhnert (AT) gmail (DOT) com
    wrote:

    I tried a while back with no luck. It's a very admirable attempt at
    mimicking the browser but not quite complete enough to handle the likes
    of
    dojo

    Heh, I would be fine with that if the disable JavaScript option actually
    ignored all JavaScript.

    For this type of integration testing I would reccomend using selenium.
    (tacos uses this currently )

    That's what I was thinking. I'll give it a go. I'm a bit hesitant since
    when I last looked (back in November), the documentation was absolutely
    atrocious.

    Thanks,
    Kevin

    To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
  • No.3 | | 1259 bytes | |

    Do you mean to say that it's still executing JavaScript when you disable it?
    that it's having trouble parsing files? You might want to file a bug
    report to the HtmlUnit tracker If I remember correctly, you're also
    supposed to be able to rip out the Rhino js.jar file to disable
    JavaScript

    6/26/06, Kevin Menard <kmenard (AT) servprise (DOT) comwrote:

    Mon, 26 Jun 2006 12:17:26 -0400, Jesse Kuhnert <jkuhnert (AT) gmail (DOT) com>
    wrote:

    I tried a while back with no luck. It's a very admirable attempt at
    mimicking the browser but not quite complete enough to handle the likes
    of
    dojo

    Heh, I would be fine with that if the disable JavaScript option actually
    ignored all JavaScript.

    For this type of integration testing I would reccomend using selenium.
    (tacos uses this currently )

    That's what I was thinking. I'll give it a go. I'm a bit hesitant since
    when I last looked (back in November), the documentation was absolutely
    atrocious.

    Thanks,
    Kevin

    To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    --
  • No.4 | | 840 bytes | |

    Tue, 27 Jun 2006 07:24:35 -0400, D&J Gredler <djgredler (AT) gmail (DOT) com
    wrote:

    Do you mean to say that it's still executing JavaScript when you disable
    it?

    It appears that if the JavaScript is embedded in a page, HTMLUnit will
    attempt to do something with it, regardless of whether JavaScript is
    enabled in the WebClient. I'd have to dig into it a bit more, but that's
    what the exception message seems to indicate.

    that it's having trouble parsing files? You might want to file a bug
    report to the HtmlUnit tracker If I remember correctly, you're also
    supposed to be able to rip out the Rhino js.jar file to disable
    JavaScript

    Hmm . . . maybe I'll give that a try. I think in the long run, I'm going
    to want to migrate away from this anyway.
  • No.5 | | 2257 bytes | |

    We should have a seperate tapestry-testing project out soon that will help
    with some of these things. (builds off of
    to support
    TestNG as the base testing framework) Things are still a little hairy right
    now but it should be done soon-ish.

    You also have http://jrex.mozdev.org/ which may or may not be what selenium
    is using to do its headless server mode stuff.

    All of this is still a little frustrating for me at times, but I'm trying to
    keep myself up to date on the latest things when I canSomeone told me
    that it is planned to eventually move firefox/thunderbird over to the new
    XPCM based platform in the future, which would allow us to create unit
    tests that actually run in the browser without having to install a brand new
    set of mozilla libs just for testing(ie xulrunner )

    The new tapestry test project will host some basic utilities for testing
    tapestry components/pages (mostly via easymock.org type enhancements) , but
    will also support testing "pure" javascript functional testing via the rhino
    interpreter. (still can't test full browser mode as rhino doesn't have a
    browser API, but I've been doing a little mock-like functionality in these
    tests for the new tapestry release and have found it to work out pretty well
    so far).

    6/27/06, Kevin Menard <kmenard (AT) servprise (DOT) comwrote:

    Tue, 27 Jun 2006 07:24:35 -0400, D&J Gredler <djgredler (AT) gmail (DOT) com>
    wrote:

    Do you mean to say that it's still executing JavaScript when you disable
    it?

    It appears that if the JavaScript is embedded in a page, HTMLUnit will
    attempt to do something with it, regardless of whether JavaScript is
    enabled in the WebClient. I'd have to dig into it a bit more, but that's
    what the exception message seems to indicate.

    that it's having trouble parsing files? You might want to file a bug
    report to the HtmlUnit tracker If I remember correctly, you're also
    supposed to be able to rip out the Rhino js.jar file to disable
    JavaScript

    Hmm . . . maybe I'll give that a try. I think in the long run, I'm going
    to want to migrate away from this anyway.

Re: HTMLUnit & Tapestry 4.1


max 4000 letters.
Your nickname that display:
In order to stop the spam: 6 + 5 =
QUESTION ON "Java"

EMSDN.COM