tags:

views:

55

answers:

3

Hi All,

I would like to know how to go about doing regression testing effectively for a web application.

I m spending a lot of time in regression testing for every build.

I also hear that automated GUI testing is bad and not worth it.

Is there any better way of automating regression testing. if so any good tools to automate GUI tests.

My web app is designed for stupid IE. cant help it, but that how it is.Any good tool that can help me?

I know that we must keep GUI layer thin and all, but I m not a GUI expert or anything , but i need to test it properly and effectively.

Thanks all

+2  A: 

Try looking into Cucumber or Selenium There is also a screencast on it over at railscasts. That should really help.

fernyb
I am using IE , Selenium has no IDe for it..How do i record and playback for IE?
someguy
Record with Firefox, run against IE
Pascal Thivent
@pascal..yea thats not gonna work..becoz the web app is specifically designed for IE , and its all messed up if i open in firefox ..basically the app is not usable with firefox..Well, you can imagine what kind of corporate idiots would want to use this app..hehhehehhehe
someguy
A: 

As long as your webapp works with Firefox, too, I recommend using Selenium for that scenario. It allows you to record your test cases inside the browser (by means of a Firefox plugin) but has Internet Explorer support for playback.

If Firefox for recording tests is not an option, you could have a look at the WebDriver project. It uses a code based approach to test specification an works well with TDD, too.

You might also want to have a look at CubicTest, which is a Eclipse plugin for graphically defining Selenium and Watir test cases.

springify
+1  A: 

You can use standard unit tests and integration tests for the non-GUI components, of course. For the GUI, it's worth looking at UI automation packages.

Many of them are pretty terrible, but a lot of the horror stories come from people using them incorrectly. If you can stay away from specifying click locations by (x,y) coordinates, and you can detect when state transitions happen, rather than using delay(), GUI testing can be effectively automated.

Mark Bessey
I see that several people are recommending the "record and playback" technique. Be careful with that. Recorded scripts tend to be extremely brittle in the face of change.
Mark Bessey
I m using Watir..w Ruby..Excellent!!!
someguy