同样的,在引用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/