Ask the Expert

Automated testing tools and Ajax

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

Requires Free Membership to View

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 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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: