ViAJava and Tomcat Test Environment

Last update : July 6 2002
Doc for : v1.3

Cactusについて
  • Cactus とは
  • ニュース
  • 変更履歴
  • 特徴/開発状況
  • 目標
  • ロードマップ/ToDo
  • 協力者
  • 協力者募集
  • Cactus ユーザ
  • テスト済環境 ...
  • ライセンス


  • ダウンロード
  • ダウンロード


  • ドキュメント
  • Cactus の仕組み
  • さぁ始めよう
  • モック対コンテナ
  • Javadocs
  • └Javadocs
  • よくある質問


  • Howto ガイド
  • クラスパス Howto
  • 設定 Howto
  • アップグレードHowto
  • テストケース Howto
  • セキュリティHowto
  • Ant Howto
  • HttpUnit Howto
  • サンプル Howto
  • EJB Howto
  • IDE Howto
  • JUnitEE Howto


  • サポート
  • Bug DB
  • メーリングリスト


  • その他
  • 名前の由来
  • ロゴコンテスト
  • 参考文献
  • アクセス状況
  • └WebAlizer


  • 開発者向け
  • CVS
  • コード規約
  • ビルドの結果


  • 序文および必要条件/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

    Note 本チュートリアルは Cactus 1.2 のみに対応して書かれています。 Cactus 1.3 を使っている場合、それに適応させる必要があります。

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

    このチュートリアルでは、VisualAge for Java Tomcat Test Environment において Cactus テストを行う方法について説明します。

    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.

    次のチュートリアルは VisualAge 3.5.3 および Apache Tomcat Test Environment 3.1 上で動作確認しました。 他のバージョンで動作確認した場合には、どうぞ連絡ください。


    手順/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.

    VaJava がインストールされたディレクトリを {VAJava dir} と呼びます。 自分の webapp のコンテキストを myApp と呼ぶことにします。

    • Import Cactus and JUnit into VisualAge as projects,
    • Cactus と JUnit を VisualAge のプロジェクトとしてインポートします。
    • 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\,
    • {VAJava dir}\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\WEB-INF\ にある 自分の web.xml ファイルに Cactus リダイレクタのマッピングを加えます。 (設定 Howtoをご覧ください) Add the Cactus redirector mappings to your web.xml file (see the Configuration Howto),
    • 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\,
    • cactus.properties ファイルにおいて、 リダイレクタとして正しいURLが設定されているか確認します。 (Configuration Howto をご覧ください) そのファイルを {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) :
    • 次のディレクトリを JUnit の TestRunner プロジェクトのクラスパス (プロジェクトのプロパティダイアログにあります)に加えます :
    {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).
    • Cactus プロジェクトを JUnit の TestRunner と Apache の TomcatRunner プロジェクトのクラスパス (プロジェクトのプロパティダイアログにあります)に加えます。



    [訳注:これは 漆島賢二 が翻訳しました。日本語訳に対するコメントがあれば こちらに送ってください]
    Copyright © 2000-2002 The Apache Software Foundation. All Rights Reserved.