Q

Automated testing tools and Ajax

Testing Ajax using automated tools requires a lot of skill on the part of the tester. Expert Mike Kelly explains where to begin and what you may need in order to sufficiently test Ajax applications.

What kind of automated tool to test Ajax would you recommend?

Ah Ajax... the bane of automated and performance testers everywhere. Commercial testing tools don't really support

it, and open source tools require real programmers to make it work. It's a great problem. Lucky for me, I think that all automated testers should be programmers in disguise, so I don't have a problem recommending solutions that require someone to get in and get their hands dirty.

Here are some places to start. And I say "places to start" and not "here are some tools" because that really depends on your specific application and how your developers have implemented Ajax. The two tools I would encourage you to start with are Selenium and Watir. I'm a huge fan of both and use them both regularly. If you're not familiar with the tools you can read about them on their Web sites. They're fairly easy to set up and get running. I think they're very easy to use.

Software testing resources:
Testing for security in the age of Ajax programming

Ajax, rich Internet application testing suite launched by Parasoft

Tools, methods to test software more efficiently

However, with Ajax there's often a little more to it then that. You may also want to invest some time looking at some JavaScript technologies. For example, in this post Charley Baker talks about using script.aculo.us with Watir to test Ajax. And in this post Elisabeth Hendrickson talks about using JSUnit with Selenium to test Web 2.0 technologies. And sometimes, you just need a couple of simple techniques like the one Grig Gheorghiu points out here.

So my recommendation? I would probably say start with Selenium (unless you really like Ruby). Get the tool setup. Use it to get some non-Ajax tests up and running. Then look at what you need to do to test your application's Ajax components. You may find it fairly easy, or it could be painful. That depends on what the application does, what you need to test, and the programming ability of the person writing the test.

This was first published in August 2007

Dig deeper on Automated Software Testing

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchSOA

TheServerSide

SearchCloudApplications

SearchAWS

SearchBusinessAnalytics

SearchFinancialApplications

SearchHealthIT

Close