Yonatan Taub
2004-03-18 10:14:50 UTC
Recently I've been asked to develop a set of tests for a web
application.
This means simulating user interaction with web pages such as clicking
links, buttons, filling text fields and submitting forms. This also
means that a JavaScript engine must be provided as part of the
framework.
As the development environment I'm working at is Java, I've used JUnit
in combination with HttpUnit.
At first, everything seemed to work fine.
But soon, problems started to arose:
- Quite simple JavaScript that Mozilla 1.2.1 managed threw errors.
- Mimicking user interactions with <input> elements didn't always
succeed.
- Had problems with "disable" state of buttons.
- Failed to find <img> elements inside a table cell.
All of these and more problems, substantially reduced my ability to
write
proper tests.
My questions are:
- Are there any other web testing frameworks out there besides
HttpUnit
(preferable Java testing framework)?
- My application is designed to work in Internet Explorer 6.
If there are no Java related testing frameworks which provide this
functionality, please provide other testing frameworks both open
source
and commercial.
application.
This means simulating user interaction with web pages such as clicking
links, buttons, filling text fields and submitting forms. This also
means that a JavaScript engine must be provided as part of the
framework.
As the development environment I'm working at is Java, I've used JUnit
in combination with HttpUnit.
At first, everything seemed to work fine.
But soon, problems started to arose:
- Quite simple JavaScript that Mozilla 1.2.1 managed threw errors.
- Mimicking user interactions with <input> elements didn't always
succeed.
- Had problems with "disable" state of buttons.
- Failed to find <img> elements inside a table cell.
All of these and more problems, substantially reduced my ability to
write
proper tests.
My questions are:
- Are there any other web testing frameworks out there besides
HttpUnit
(preferable Java testing framework)?
- My application is designed to work in Internet Explorer 6.
If there are no Java related testing frameworks which provide this
functionality, please provide other testing frameworks both open
source
and commercial.