Testing javascript-heavy websites

We’re starting to work on some javascript-heavy websites, and even
some flash/flex based ones as well.

What’s the current hotness in automatically testing those types of
websites? Does cucumber hook up to selenium now? I thought I saw
that webrat did.

Any recommended resources?

Joe

On 1/22/09 7:46 PM, Joe Van D. wrote:

We’re starting to work on some javascript-heavy websites, and even
some flash/flex based ones as well.

For flex see:
http://wiki.github.com/aslakhellesoy/cucumber/funfx-and-flex

What’s the current hotness in automatically testing those types of
websites? Does cucumber hook up to selenium now? I thought I saw
that webrat did.

For JS you can use webrat with Cucumber to drive selenium. See the
webrat docs for more info.
You can use Watir or Celerity with Cucumber. There is a screencast on
using Cucumber with Watir on cukes.info.

HTH,
Ben

I have had some trouble
with ajax-heavy stuff but never took the time to sort it out.

I had some trouble too at first. Some things that seem like they
should work just don’t. But I seem to have gotten past it. If anyone
has a specific problem post here, and I’ll give it a try :slight_smile:

Or you can email me directly: paul (at) thoughtless --I hate spam–
(dot) ca

How does http://celerity.rubyforge.org/ compare to the options
mentioned?

On Thu, Jan 22, 2009 at 6:46 PM, Joe Van D. [email protected] wrote:

We’re starting to work on some javascript-heavy websites, and even
some flash/flex based ones as well.

What’s the current hotness in automatically testing those types of
websites? Does cucumber hook up to selenium now? I thought I saw
that webrat did.

Any recommended resources?

Yes you can use cucumber/webrat/selenium. I have had some trouble
with ajax-heavy stuff but never took the time to sort it out.

For testing JS directly, I use Screw.Unit

Pat