同樣的,在引用features模塊的功能點時,也需要同時指定features模塊名稱和功能點的名稱,并以|
進行分隔。
如下示例便是實現了在商城中購買商品的整個流程,包括切換國家、登錄、選擇商品、添加購物車、下單完成支付等功能點。
1
2
3
4
5
6
7
8
9
|
Buy Phantom 4:
- SettingsFeatures | initialize first startup
- SettingsFeatures | Change Country to China
- AccountFeatures | login with valid account
- AccountFeatures | Change Shipping Address to China
- StoreFeatures | add phantom 4 to cart
- StoreFeatures | finish order
- AccountFeatures | logout
|
原文轉自:http://debugtalk.com/post/build-ideal-app-automation-test-framework/