How to write step definition of Calabash Android

与世无争的帅哥 提交于 2019-12-10 23:16:48

问题


I am new to calabash android. I wrote testcases for 'Twitter' android app for learning purpose. But I feel starting trouble. Can any one help me? How do I write step definition? In the feature file I wrote:

Feature: Login feature

Scenario: As a valid user I can log into my app
   And I press "Sign In"
   Then I see 'Sign In' page
   Then I enter 'abc@domain.com' in username
   Then I enter 'abc.123' in password
   And I press 'Sign In'
   Then I should see my home page

How can I write step definitions for the above scenario?


回答1:


Follow these two links:

  • different steps
  • calabash

Also try this: http://www.optimusqa.com/2013/04/10/set-up-android-testing-calabash/



来源:https://stackoverflow.com/questions/18997808/how-to-write-step-definition-of-calabash-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!