File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Agile and Other Processes and the fly likes ajax web-testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Agile and Other Processes
Bookmark "ajax web-testing" Watch "ajax web-testing" New topic
Author

ajax web-testing

Tina Ma
Ranch Hand

Joined: Nov 29, 2007
Posts: 198
Hello Lisa and Janet,

Can you advice on the best technoogy to use for automating web-testing for an Ajax-loaded-website ?


Tina
SCJP 1.4, SCWCD 1.4
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You can use something like HTMLUnit if you are willing to handwrite all test cases. Otherwise Selenium is quite good.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Tina Ma
Ranch Hand

Joined: Nov 29, 2007
Posts: 198
Since you bring up Selenium, is there a way to have a piece of code written from scratch besides the one which comes from "recording" the clicks on the web-pages? A code written from scratch can allow the use of loops, if/else etc so that the clicks can be randomly generated. Do you have any documentation if Selenium allows this.
Lisa Crispin
Ranch Hand

Joined: Feb 03, 2009
Posts: 43
sreerupa basu wrote:Hello Lisa and Janet,

Can you advice on the best technoogy to use for automating web-testing for an Ajax-loaded-website ?

That's not my area of expertise. My team's application doesn't have a lot of Ajax, and we've been able to cover test automation with Canoo WebTest. I don't think that tool would be appropriate for heavy Ajax use. I've heard good things about Selenium for this.

In our book we have some real-world stories from real teams on how they approached different challenges such as automation (this includes a sidebar on why a team chose to use Selenium RC). The message we try to get across in the book is that test automation, along with all other aspects of testing, is a team problem. The whole team should be committed to making the application testable and finding good solutions for automation. Be willing to experiment. The beauty of short agile iterations is that you can try out a tool and know quickly whether it will work for your situation.
-- Lisa


Co-author, with Janet Gregory: Agile Testing: A Practical Guide for Testers and Agile Teams (Addison-Wesley, 2009) http://lisacrispin.com
Tina Ma
Ranch Hand

Joined: Nov 29, 2007
Posts: 198
Lisa,
Do you discuss Selenium RC in your new book?
Does it have some code-illustrations using SeleniumRC?
Lisa Crispin
Ranch Hand

Joined: Feb 03, 2009
Posts: 43
sreerupa basu wrote:Lisa,
Do you discuss Selenium RC in your new book?
Does it have some code-illustrations using SeleniumRC?

We didn't provide a lot of detailed examples since tools change so fast. It makes the book out of date right away. However, we do have some examples of Selenium RC. Joe Yakich contributed a long sidebar about how his team decided to adopt and implement Selenium RC and it has a few small examples. But it's not a book to learn about how to write Selenium RC tests, for sure. We provide references to more information about the various tools we talk about.
-- Lisa
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ajax web-testing