Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ajax web-testing

 
Tina Ma
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Lisa and Janet,

Can you advice on the best technoogy to use for automating web-testing for an Ajax-loaded-website ?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use something like HTMLUnit if you are willing to handwrite all test cases. Otherwise Selenium is quite good.
 
Tina Ma
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tina Ma
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lisa,
Do you discuss Selenium RC in your new book?
Does it have some code-illustrations using SeleniumRC?
 
Lisa Crispin
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic