Cactus (Framework)

from Wikipedia, the free encyclopedia
Jakarta Cactus

Jakarta Cactus Logo.gif
Basic data

developer Apache Software Foundation
Current  version 1.8.1
(January 18, 2009)
operating system cross-platform
programming language Java
category Test - Framework
License Apache License 2.0
jakarta.apache.org/cactus

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

Cactus does not use mock objects for the servlet or EJB container , but lets the tests run inside the container. For this it uses Codehaus Cargo to instrument the respective container and HttpClient to set up the HTTP connections.

Cactus sees itself as a framework for integrative unit tests - i.e. H. Unit tests that test the interactions with the container. Cactus can also be used for logical unit tests (e.g. application logic test) and functional unit tests (e.g. HTTP request / response test).

Cactus has not been further developed since August 5th, 2011.

Functionality

Cactus enables unit tests to be written for servlets, JSPs, filters and EJBs. It also enables the integration of HTTP unit and HTML unit and thus testing of HTTP and HTML response objects.

Cactus allows HTTP & servlet cookies, HTTP parameters and headers, authentication and form parameters to be set and HTML text, cookies, HTTP headers and response codes to be checked.

Cactus tests can be started from a browser. Your result can be presented in either XML or HTML. Cactus tests can also be built into the development process using Apache Ant and Apache Maven and can thus be carried out on the server as part of the unit test.

Alternatives

  • Use of a pure unit test framework such as JUnit together with a mocking framework such as Easymock to test the application logic running on the server.
  • Use of HTTP units or HTML units to test functional unit tests or cross-request expertise.
  • Use of test automation tools to test the web application from a holistic and functional point of view.

Web links

Individual evidence

  1. Cactus dependencies ( memento of the original from September 24, 2009 in the Internet Archive ) Info: The archive link was automatically inserted and not yet checked. Please check the original and archive link according to the instructions and then remove this notice.  @1@ 2Template: Webachiv / IABot / jakarta.apache.org
  2. a b c Cactus Features
  3. Cactus Description - Section "Different kinds of unit tests"
  4. http://attic.apache.org/projects/jakarta-cactus.html
  5. HowTo Servlet ( Memento of the original from August 14, 2009 in the Internet Archive ) Info: The archive link was inserted automatically and has not yet been checked. Please check the original and archive link according to the instructions and then remove this notice.  @1@ 2Template: Webachiv / IABot / jakarta.apache.org
  6. HowTo JSP ( Memento of the original from September 8th, 2009 in the Internet Archive ) Info: The archive link was inserted automatically and not yet checked. Please check the original and archive link according to the instructions and then remove this notice.  @1@ 2Template: Webachiv / IABot / jakarta.apache.org
  7. HowTo Filter ( Memento of the original from June 16, 2009 in the Internet Archive ) Info: The archive link was inserted automatically and has not yet been checked. Please check the original and archive link according to the instructions and then remove this notice.  @1@ 2Template: Webachiv / IABot / jakarta.apache.org
  8. HowTo EJB3 ( Memento of the original from August 18, 2009 in the Internet Archive ) Info: The archive link was inserted automatically and has not yet been checked. Please check the original and archive link according to the instructions and then remove this notice.  @1@ 2Template: Webachiv / IABot / jakarta.apache.org
  9. HowTo Security ( Memento of the original from June 14, 2009 in the Internet Archive ) Info: The archive link was inserted automatically and has not yet been checked. Please check the original and archive link according to the instructions and then remove this notice.  @1@ 2Template: Webachiv / IABot / jakarta.apache.org