其中,AccountSteps
是steps模塊名稱,用于區分不同的steps模塊,方便在features
模塊中進行引用。
描述單個步驟時,有三項是必不可少的:步驟名稱、控件ID(control_id
)和控件操作方式(control_action
)。當控件操作方式為輸入(type
)時,則還需指定data
屬性,即輸入內容。
在檢查步驟執行結果方面,可通過在 原文轉自:http://debugtalk.com/post/build-ideal-app-automation-test-framework/expectation
屬性中指定控件ID進行實現,前面在預期結果檢查