本論文使用agent技術來建構符合eXtreme Programming (XP) 方法的單元測試環境。該環境必須具彈性及穩定度,並落實XP practices. 藉由agent間的coordination來控管測試流程。並以DAML (DARPA Agent Markup Language) 格式來建構ontology及儲存測試資料,作為agent彼此溝通及 流程掌控的依據。 預期的優點:(1) agent本身的特性,改善環境的flexibility與reliability;(2)落實 XP practices: unit test first, simple design, continuous integration and collective code ownership. (3) DAML描述的測試資料,讓agent更方便存取之,並使資料間有更詳細的關係描述。 This thesis uses agent technology to support unit testing in eXtreme Programming (XP) environment, which should be flexible and reliable, and facilitates XP practices. The environment monitors process through agent coordination. Ontology and unit testing data are built in DAML (DARPA Agent Markup Language) in order to assist agent communication and process monitoring. The expected benefits of the environment are: 1) Through agent’s property, flexibility and reliability of the environment are improved; 2) The following XP practices: unit test first, simple design, continuous integration and collective code ownership are facilitated by the environment; 3) Unit testing data in DAML format can be easily accessed by agents. The DAML format also allows detailed description of relationships among testing data.