How to write step definition of Calabash Android

Elizabeth picture Elizabeth · Sep 25, 2013 · Viewed 7.3k times · Source

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 '[email protected]' 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?

Answer