Jakarta Cactus

Cactus is a testing framework, which is developed by the Apache Software Foundation in Jakarta project. It is based on the JUnit testing framework, but is used for server-side tests, eg for testing servlets, EJBs, JSPs and tag libs.

Cactus mocked the servlet or EJB container not go away, but makes the tests run within the container. It uses Codehaus Cargo to the respective container to orchestrate and HttpClient to build the HTTP connections.

Cactus sees itself as a framework for integrative unit tests - ie unit tests that test the interactions with the container. Cactus is also for logical unit tests ( test for example, the application logic) and functional unit tests ( test such as HTTP request / responses) can be used.

Cactus is no longer developed since 5 August 2011.

Functionality

Cactus allows unit tests for servlets, JSPs, EJBs filter and write. It also allows the integration of HTTP and HTML Unit Unit and thus to test HTTP & HTML response objects.

Cactus allows the client HTTP Servlet & cookies, to set HTTP parameters and headers authentication and shape parameters and to check HTML, text, cookies, HTTP headers and response codes.

Cactus tests can be launched from a browser; their result can be displayed in either XML or HTML. Cactus tests but also using Apache Ant and Apache Maven are incorporated into the development process and are thus carried out in the context of unit tests on the server.

Alternatives

  • Using a pure unit test frameworks together with a Mocking framework like EasyMock to test as JUnit to the running application logic on the server.
  • Using HTTP or HTML Unit Unit to test functional unit tests or request overarching Fachlichkeiten.
  • Use of test automation tools for the web application to test holistically professionally.
158109
de