#眉標=Maven
#副標=WebTest (上)
#大標=Canoo WebTest功能測試實作
#作者=文/盧建州
==========程式==========
資料結構1
Jpetstore_WebTest
+--webtest 放置webtest腳本檔資料夾
| +--modules 測試用模組放置資料夾
| +--set.init.ent webtest初始化設定
| +--set.config.ent webtest測試網站設
定
+--project.properties 專案屬性檔
+--project.xml Project Object Model,POM
==========程式==========
==========程式==========
程式1 project.xml
3
jpetstore
jpetstore
JPetStore Application
1.0
==========程式==========
==========程式==========
程式2 project.properties
# -------------------------------------------------------------------
# for Canoo WebTest plugin.
# -------------------------------------------------------------------
# Source directory of Canoo Webtest scripts
#maven.webtest.src=${basedir}/src/webtest
# Settings for Canoo Webtest Configuration
maven.webtest.config.host=localhost
maven.webtest.config.port=8080
maven.webtest.config.protocol=http
maven.webtest.config.basepath=jpetstore
==========程式==========
==========程式==========
程式3 set.init.ent
==========程式==========
==========程式==========
程式4 set.config.ent
==========程式==========
==========程式==========
程式5 Jpetstore_WebTest\webtest\webtest.xml
]>
&init;
&config;
==========程式==========