ViAJava and Tomcat Test Environment

Last update : July 29 2002
Doc for : v1.4b1

About
  • What is Cactus ?
  • News
  • Changes
  • Features/Status
  • Goals
  • Roadmap/Todo
  • Contributors
  • Contributing
  • Cactus Users
  • Tested on ...
  • License


  • Downloads
  • Downloads


  • Documentation
  • How it works ?
  • Getting Started
  • Mock vs Container
  • Javadocs
  • FAQ


  • Howto Guides
  • Classpath Howto
  • Config Howto
  • Migration Howto
  • TestCase Howto
  • Runner Howto
  • Security Howto
  • Ant Howto
  • HttpUnit Howto
  • Sample Howto
  • EJB Howto
  • IDE Howto
  • Tomcat Howto
  • JUnitEE Howto


  • Support
  • Bug database
  • Mailing list


  • Misc.
  • Why the name ?
  • Logo Challenge
  • Resources
  • Test Coverage
  • Stats


  • Developers
  • CVS
  • Coding Conventions
  • Build results
  • Release Checklist


  • Forewords and Requirements

    Note This tutorial is written for Cactus 1.2 only. It will need to adapted if you're using Cactus 1.3

    This tutorial explains how to run Cactus tests within VisualAge for Java Tomcat Test Environment.

    The following tutorial has been tested with VisualAge 3.5.3 and Apache Tomcat Test Environment 3.1. Please tell us if you find that it works with other versions.


    Steps

    Let's call {VAJava dir} the directory where VAJava is installed. Let's also suppose that the context of our webapp is called myApp.

    • Import Cactus and JUnit into VisualAge as projects,
    • Add the Cactus redirector mappings to your web.xml file (see the Configuration Howto), which is located at {VAJava dir}\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\WEB-INF\,
    • Make sure the cactus.properties file has the correct URL for the redirectors (see the Configuration Howto). Put the file in {VAJava dir}\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\WEB-INF\,
    • Add the following directories to JUnit's TestRunner project classpath (project's properties dialog box) :
    {VAJava dir}\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\WEB-INF\;
    {VAJava dir}\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\WEB-INF\classes\;
    
    • Add the Cactus project to both JUnit's TestRunner and Apache's TomcatRunner project classpath (project properties dialog boxes).



    Copyright © 2000-2002 The Apache Software Foundation. All Rights Reserved.