• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Webapp testing toolkits

 
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I am looking for a testing tool/framework which can go beyond unit testing, and allows for more complex test scenarios than single request-response test. Any suggestions? Thanks.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could you be more specific? Do you want to record web browser actions or GUI client actions, or do you want to navigate a web application programmatically? Something else?
 
Dmitry Melnik
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you want to record web browser actions or GUI client actions, or do you want to navigate a web application programmatically? Something else?
Ideally I'd like to navigate a web application programmatically.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dmitry,
HttpUnit/JWebUnit and Cactus both do that.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yep, I would've suggested HttpUnit and JWebUnit as well. There are others, too, listed in the extensions section of junit.org.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And there is FitNesse: http://fitnesse.org/
 
Dmitry Melnik
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks guys. I am going to play with HttpUnit first.
 
Dmitry Melnik
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hit the first bump: the HttpUnit blows at most pieces of JavaScript
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dmitry,
Make sure you have the rhino jar to. It handles some javascript.
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Htmlunit (http://htmlunit.sf.net) is supposed to have some Javascript support.
 
Dmitry Melnik
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Make sure you have the rhino jar to.
I have js.jar in my classpath instead, which is a patched build of rhino 1.5R4+ Is it worth to patch the source and build a newer version of this jar?
It handles some javascript.
Yourright, "some"...
"JavaScript support is very basic at present. The near-term goal is full JavaScript 1.1 support. Currently, we do not plan to support browser-specific JavaScript."
Source: http://httpunit.sourceforge.net/doc/javascript-support.html
...which means I need another tool. But anyway, after disabling scripting in HttpUnit and updating a few pages I was able to cover a big hunk of webapp's functionality. Writing test cases still...
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is a IEFixture for FitNesse, which directly controls Internet Explorer. I guess that way you could test a huge amount of your Javascript (at least for that platform...)
 
Dmitry Melnik
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys, thanks again. I think that HtmlUnit would be the next thing to try.
About FitNesse. I have read each of 99 words describing it, and still have no idea what is this thing about, and how could it be used to help me solving my problems. Doctor, am I crazy? Or just dumb?
But I'll try it anyway.
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Dmitry Melnik:
About FitNesse. I have read each of 99 words describing it, and still have no idea what is this thing about, and how could it be used to help me solving my problems. Doctor, am I crazy? Or just dumb?


FitNesse is actually nut much more than a frontend for the Fit testing framework.
A Fit test constists of two parts: test data written in a html table, and glue code (called "fixtures") interpreting the data and using it to test the system.
IEFixture is a predefined fixture for testing web pages using Internet Explorer. In short, using it you can write scripts for IE to go to specific URLs, make assertions about page content, click on links, etc...
The following example uses Fitnesse's wiki syntax for tables instead of HTML:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic