Unittesting for web applications

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sandip Bhattacharya

    #1

    Unittesting for web applications

    Can someone suggest me some good resources for learning how to use
    unittests for web applications? Do we always have to cook up our own
    webpage scrapers to test the code?

    - Sandip

    --
    Sandip Bhattacharya * Puroga Technologies * sandip@puroga.c om
    Work: http://www.puroga.com * Home/Blog: http://www.sandipb.net/blog

    PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3



  • John Roth

    #2
    Re: Unittesting for web applications

    I believe there are xUnit clones named
    Httpunit and Htmlunit, as well as a number
    of variants. See the huge list of xUnit
    clones on:



    in the downloads section. I don't think
    any of them are Python based, though.

    You might also want to look at some of
    the Htmlunit integration into FIT and
    Fitnesse.

    You can frequently get discussions on
    the Yahoo TDD list.

    John Roth


    "Sandip Bhattacharya" <sandip@lug-delhi.org> wrote in message
    news:mailman.24 43.1108204994.2 2381.python-list@python.org ...[color=blue]
    > Can someone suggest me some good resources for learning how to use
    > unittests for web applications? Do we always have to cook up our own
    > webpage scrapers to test the code?
    >
    > - Sandip
    >
    > --
    > Sandip Bhattacharya * Puroga Technologies * sandip@puroga.c om
    > Work: http://www.puroga.com * Home/Blog: http://www.sandipb.net/blog
    >
    > PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3
    >
    >
    >[/color]

    Comment

    • Grig Gheorghiu

      #3
      Re: Unittesting for web applications

      There's another current thread on c.l.py talking about testing Web
      applications. Somenone suggested Jython in conjunction with HttpUnit, a
      combination that worked for me too -- but the name HttpUnit is
      misleading, since it does functional/black box testing and not unit
      testing. It beats scraping Web pages though, so it may be sufficient
      for what you need. You can see a mini-tutorial I wrote at
      There's been a lot of talk recently about "dynamic Java", by which people generally mean driving the JVM by means of a scripting language (s...


      I don't know any Python-specific frameworks for Web app unit testing.
      In the Java world, there's Cactus at http://jakarta.apache.org/cactus/.
      To quote from that page, "Cactus is a simple test framework for unit
      testing server-side java code (Servlets, EJBs, Tag Libs, Filters,
      ....)." So this is pretty much Java-centric and may not help you much.

      Comment

      • richard

        #4
        Re: Unittesting for web applications

        Sandip Bhattacharya wrote:[color=blue]
        > Can someone suggest me some good resources for learning how to use
        > unittests for web applications? Do we always have to cook up our own
        > webpage scrapers to test the code?[/color]




        Richard

        Comment

        Working...