#副標=WebTest(下)
#大標=Canoo WebTest功能測試實作
#作者=文/盧建州
Jpetstore_WebTest
+--webtest 腳本檔資料夾
| +--config 客製化屬性放置路徑
| | +--login.properties
| | +--shopping.properties
| +--modules 測試用模組放置路徑
| | +--checkout.ent
| | +--login.ent
| | +--logout.ent
| | +--set.init.ent
| | +--set.config.ent
| | +--shopping.ent
| +--testsuit1 測試案例1
| | +--login.xml
| | +--newAccount.xml
| | +--webtest.xml
| +--testsuit2 測試案例2
| | +--shopping_dogs.properties
| | +--shopping_fish.properties
| | +--shopping.xml
| | +--webtest.xml
| +--testsuit3 測試案例3
| | +--login_shopping_checkout.xml
| | +--webtest.xml
| +--webtest.xml
+--project.properties
+--project.xml
----Jpetstore_WebTest\project.xml--------
3
jpetstore
Jpetstore_WebTest
JPetStore Application
1.0
----Jpetstore_WebTest\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
----Jpetstore_WebTest\webtest\webtest.xml--------
]>
&init;
&config;
----Jpetstore_WebTest\webtest\config\login.properties--------
username=TestID0
password=0000
----Jpetstore_WebTest\webtest\config\shopping.properties--------
category01.id=FISH
product01.id=FI-FW-02
item01.id=EST-21
category02.id=DOGS
product02.id=K9-DL-01
item02.id=EST-10
category03.id=CATS
product03.id=FL-DSH-01
item03.id=EST-14
category04.id=REPTILES
product04.id=RP-SN-01
item04.id=EST-12
----Jpetstore_WebTest\webtest\modules\checkout.ent--------
----Jpetstore_WebTest\webtest\modules\login.ent--------
----Jpetstore_WebTest\webtest\modules\logout.ent--------
----Jpetstore_WebTest\webtest\modules\set.config.ent--------
----Jpetstore_WebTest\webtest\modules\set.init.ent--------
----Jpetstore_WebTest\webtest\modules\shopping.ent--------
----Jpetstore_WebTest\webtest\testsuit1\login.xml--------
]>
&init;
&config;
----Jpetstore_WebTest\webtest\testsuit1\newAccount.xml--------
]>
&init;
&config;
----Jpetstore_WebTest\webtest\testsuit1\webtest.xml--------
----Jpetstore_WebTest\webtest\testsuit2\shopping_dogs.properties--------
category.id=DOGS
product.id=K9-DL-01
item.id= EST-10
----Jpetstore_WebTest\webtest\testsuit2\shopping_fish.properties--------
category.id=FISH
product.id=FI-FW-02
item.id=EST-21
----Jpetstore_WebTest\webtest\testsuit2\shopping.xml--------
]>
&init;
&config;
----Jpetstore_WebTest\webtest\testsuit2\webtest.xml--------
----Jpetstore_WebTest\webtest\testsuit3\login_shopping_checkout.xml--------
]>
&init;
&config;
&login;
&shopping;
&shopping;
&shopping;
&shopping;
&checkout;
&logout;
----Jpetstore_WebTest\webtest\testsuit3\webtest.xml--------