O'Reilly logo

Apache Jakarta and Beyond: A Java Programmer’s Introduction by Larne Pekowsky

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Further Web Testing with Jakarta Cactus

Testing with HTTPUnit is a great way to simulate a user’s perspective of a Web application. However, such testing often does not give a complete picture of what is happening within the system. HTTPUnit can report that a page did not function as expected but can give no direct clues as to why it failed. Such failures may be be directly attributable to incorrect HTML, but more often failures have their origins in code within a servlet or scoped bean.

This is one of the motivations behind Cactus, another testing suite that is built on top of JUnit.

An Introduction to Cactus

When testing a Web application with HTTPUnit the testing code sits entirely outside the server being tested. The only interaction ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required