講演名 2007-03-28
オブジェクトの参照構造を探索する単体テストのための表明機構(学生セッション,大学のAI・企業のAI)
榊原 正天, 山崎 雄大, 櫻井 孝平, 古宮 誠一,
PDFダウンロードページ PDFダウンロードページへ
抄録(和) オブジェクト指向プログラムのテストのためには,単体テストフレームワークを利用することでテスト実行の自動化が可能となるテストケースを容易に記述できる.テストケースはテスト対象プログラムのオブジェクトとそのオブジェクトが関連するオブジェクトの状態を取得し,確認するコードを含む.しかし、テストケースのコードがそれらの関連するオブジェクトと強く結びつくことで,テスト対象プログラムの変更に弱くなるという問題点がある.本研究では,関連するオブジェクトの自動的な探索によって目的の状態を確認できる機構を提案し,ライブラリとして実装した.具体的な事例によってその問題点を明らかにし,実装されたライブラリを適用することでテストケースの保守性を高めることが可能であることを確認している.
抄録(英) Using unit testing framework in testing Object-Oriented Program, it become easy to create test cases that is executed automatically. Each test case contains a specific code. This code get the state of the object which is test target program or objects related with this object, and verify these state. But because the test case code is coupled strongly with these related objects, tester must also change the test case in the change of tested object. We propose the mechanism to describe briefly how to traverse a directory tree to retrieve an object, and implement it as a library. Then we explain this problem in the concrete example, and confirm to be able to improve the maintainability of the test case with our library used.
キーワード(和) オブジェクト指向 / 単体テスト / 表明文
キーワード(英) Object-Oriented / Unit Test / Assertion
資料番号 AI2006-61,KBSE2006-69
発行日

研究会情報
研究会 AI
開催期間 2007/3/21(から1日開催)
開催地(和)
開催地(英)
テーマ(和)
テーマ(英)
委員長氏名(和)
委員長氏名(英)
副委員長氏名(和)
副委員長氏名(英)
幹事氏名(和)
幹事氏名(英)
幹事補佐氏名(和)
幹事補佐氏名(英)

講演論文情報詳細
申込み研究会 Artificial Intelligence and Knowledge-Based Processing (AI)
本文の言語 JPN
タイトル(和) オブジェクトの参照構造を探索する単体テストのための表明機構(学生セッション,大学のAI・企業のAI)
サブタイトル(和)
タイトル(英) Assertion as a Mechanism to Describe Briefly How to Traverse a Directory Tree to Retrieve an Object during Unit Testing
サブタイトル(和)
キーワード(1)(和/英) オブジェクト指向 / Object-Oriented
キーワード(2)(和/英) 単体テスト / Unit Test
キーワード(3)(和/英) 表明文 / Assertion
第 1 著者 氏名(和/英) 榊原 正天 / MASANORI Sakakibara
第 1 著者 所属(和/英) 芝浦工業大学
Shibaura Institute of Technology
第 2 著者 氏名(和/英) 山崎 雄大 / YUDAI Yamazaki
第 2 著者 所属(和/英) 芝浦工業大学
Shibaura Institute of Technology
第 3 著者 氏名(和/英) 櫻井 孝平 / KOUHEI Sakurai
第 3 著者 所属(和/英) 東京大学
University of Tokyo
第 4 著者 氏名(和/英) 古宮 誠一 / SEIICHI Komiya
第 4 著者 所属(和/英) 芝浦工業大学
Shibaura Institute of Technology
発表年月日 2007-03-28
資料番号 AI2006-61,KBSE2006-69
巻番号(vol) vol.106
号番号(no) 617
ページ範囲 pp.-
ページ数 4
発行日