Thank you Jeff,
Actually, I mean, I don't know who to wright my feature and step definitions. And I can't find both files matched on the internet, what i want to know is, For example in calabash-android:
Feature: Log in feature
Scenario: As a user, I want to log in to my app
When I input "username" in "username_input_filed"
When I input "password" in "password_input_filed"
When I click on "Log in" button
Then I see "Welcome"
calabash_step.rb
require 'calabash-android/calabash_steps'
UI = {
"username_input_filed"=>"et_login_username",
"password_input_filed"=>"et_login_pwd",
"Log in"=>"btn_login"
}
When (/^ I input "([^\"]*)" in "([^\"]*)"$/) do |text,element|
enter_text("android.widget.EditText id:'#{UI[element]}'", text)
end
When (/^ I click on "([^\"]*)" button) do |element|
tap_when_element_exists("* id:'#{UI[element]}'")
end
Then I run my feature it will work.
So, How can i do this when using calabash-ios to run ios app?
Thank you.
在 2015年1月8日星期四 UTC+8上午1:57:35,Jeff Hatfield写道: