COBOL2002 Professional Tool Kit 単体テスト支援ガイド
目次
索引
前へ
2 / 153
次へ
表紙
前書き
変更内容
はじめに
1. 単体テスト支援の紹介
1.1 単体テスト支援とは
1.2 単体テスト支援の利用方法
1.2.1 新規開発時のモジュールテストをする
1.2.2 プログラム修正後のデグレード有無を確認する
1.2.3 一括バッチを実行しデグレード有無を確認する
2. 単体テスト支援の基本的な使い方
2.1 単体テスト支援を実行する
2.2 テスト結果を参照しプログラムを修正する
3. 単体テスト支援の準備をする
3.1 テストできるプログラムかどうかを確認する
4. プログラムの単体テストをする
4.1 単体テスト支援の作業の手順
4.2 テストプロジェクトを作成する
4.2.1 開発マネージャからテストプロジェクトを作成する
4.2.2 Windowsのプログラム一覧からテストプロジェクトを作成する
4.3 テストケースを作成する
4.3.1 テストケースを追加する
4.3.2 テストケースをコピーして追加する
4.3.3 テストケースの名前を変更する
4.3.4 テストケースを削除する
4.3.5 テストケースの有効と無効を切り替える
4.4 テストデータを設定する
4.4.1 プログラム開始時の値を設定する
4.4.2 プログラム終了時の値を設定する
4.4.3 ファイルシミュレーションのテストデータを設定する
4.4.4 中断点を設定する
4.4.5 中断点のテストデータを設定する
4.4.6 中断点を解除する
4.4.7 データ項目に値または期待値を設定する
4.4.8 値の入力規則
4.5 テストプロジェクトの環境を設定する
4.5.1 テストプロジェクトのプロパティを表示する
4.5.2 テストプロジェクトのスタブを編集する
4.5.3 テストケースごとに実行環境ファイルと実行時環境変数を設定する
4.6 単体テストを実行する
4.6.1 すべてのテストケースを実行する
4.6.2 1つのテストケースを実行する
4.7 テストプロジェクトを保存する
4.8 単体テスト支援を終了する
4.9 テストプロジェクトを開く
4.9.1 単体テスト支援のメインウィンドウからテストプロジェクトを開く
4.9.2 開発マネージャからテストプロジェクトを開く
4.9.3 Windowsのエクスプローラーから単体テスト支援を開始する
4.10 単体テストを実行したときの判定結果
5. テストを繰り返す
5.1 エラーになったCOBOLプログラムを修正する
5.2 COBOLソースファイルを解析する
6. テスト結果を参照する
6.1 テストプロジェクト結果レポートを参照する
6.2 テストケース結果レポートを参照する
6.3 カバレージレポートを参照する
6.4 エビデンスファイルを確認する
7. テスト結果を操作する
7.1 手動で判定結果を変更する
7.2 実行結果の名前を変更する
7.3 実行結果を削除する
7.4 実行結果をテストプロジェクトから除外する
7.5 カバレージ情報をクリアする
8. バッチモードで実行する
8.1 バッチモードでできる単体テスト支援の機能
8.2 テストケースの実行
8.2.1 すべてのテストケースを実行する
8.3 テストケースの操作
8.3.1 テストケースを削除する
8.3.2 テストケースを一覧表示する
8.3.3 CSVファイルをインポートする(フォルダ指定)
8.3.4 CSVファイルをインポートする(ファイル指定)
8.3.5 テストケースをエクスポートする(テストケース指定)
8.3.6 テストケースをエクスポートする(ひな形)
8.4 テストプロジェクトの操作
8.4.1 テストプロジェクトを作成する
8.4.2 プロジェクト情報ファイルを出力する
8.4.3 プロジェクト情報を設定する
8.5 実行結果の操作
8.5.1 カバレージ情報を表示する
8.5.2 カバレージ情報をクリアする
8.5.3 実行結果を削除する
8.5.4 実行結果を一覧表示する
8.6 バッチモードでできる単体テスト支援の使用例
8.6.1 大量のCOBOLソースファイルから一括でプロジェクトファイルを作成する
8.6.2 新しい環境でプログラムの動作確認をやり直す
8.6.3 プロジェクト情報を変更する
8.6.4 リグレッションテストなどのために繰り返しテスト実行する
8.6.5 ほかのテストプロジェクトにあるテストケースを流用する
8.6.6 サブフォルダにあるCSVファイルを一括でインポートする
8.6.7 複数のテストケースを一括でエクスポートする
8.6.8 複数のテストケースまたは実行結果を一括で削除する
8.6.9 テストケースごとに実行環境ファイルまたは実行時環境変数を設定する
9. 環境をカスタマイズする
9.1 テストプロジェクトを移動する
9.2 テストケースをCSVファイルにエクスポートしインポートする
9.2.1 テストケースをエクスポートする(すべてのテストケースをCSVファイルにエクスポートする場合)
9.2.2 テストケースをエクスポートする(選択したテストケースをCSVファイルにエクスポートする場合)
9.2.3 テストケースをエクスポートする(ひな形のテストケースをエクスポートする場合)
9.2.4 テストケースをインポートする(指定したフォルダの直下にあるすべてのCSVファイルをテストケースとしてインポートする場合)
9.2.5 テストケースをインポートする(CSVファイルをテストケースとしてインポートする場合)
9.3 単体テスト支援の画面を変更する
9.3.1 色を変更する
9.3.2 フォントを変更する
9.4 データ項目検索の設定を変更する
9.5 テスト実行の設定を変更する
10. 画面のリファレンス
10.1 [新しいテストプロジェクトを作る]ダイアログ
10.2 単体テスト支援のメインウィンドウ
10.3 [テストプロジェクト]画面
10.4 [テスト設定]画面
10.5 [スタートページ]
10.6 [プロパティページ]
10.7 [スタブ設定ページ]
10.8 [テストケースページ]
10.8.1 [ソーステキスト]画面
10.8.2 [プログラム開始時]画面
10.8.3 [プログラム終了時]画面
10.8.4 [ファイルシミュレーション]画面
10.8.5 [中断点]画面
10.8.6 [テスト環境の設定]画面
10.9 [出力]画面
10.9.1 [メッセージ]画面
10.9.2 [テストプロジェクト結果レポート]画面
10.9.3 [テストケース結果レポート]画面
10.9.4 [カバレージレポート]画面
11. ファイルのリファレンス
11.1 テストプロジェクトのファイル構成
11.2 プロジェクト情報ファイルの構成要素
12. コマンドリファレンス
12.1 コマンドの指定形式
12.2 バッチモードで単体テスト支援を実行するコマンド
cblutsコマンド − バッチモードで単体テスト支援を実行する
13. エラー時の対処
13.1 メッセージから探す
13.1.1 メッセージの出力形式
13.1.2 メッセージの一覧
13.2 エラー時に採取するファイル
13.2.1 エラー情報ファイルの格納先
付録
付録A 単体テスト支援で使用するファイル
付録A.1 単体テスト支援のファイル一覧
付録A.2 テストケースのCSVファイル
付録B 単体テスト支援で使用できる正規表現
付録C 単体テスト支援の制限値と限界値
付録D 単体テスト支援の環境変数
付録E 各バージョンの変更内容
付録F このマニュアルの参考情報
付録F.1 関連マニュアル
付録F.2 このマニュアルでの表記
付録F.3 KB(キロバイト)などの単位表記について
ページの先頭へ