新手对calabash-ios Calabash-ios说“未定义的步骤”,即使它存在。
我已经把这段代码写进了my_first.feature
Then I set “Name“ into “Yaseen“之后,我定义了进入my_first_steps.rb的步骤
Then(/^I set "([^\"]*)" into "([^\"]*)" $/) do |placeholder,input|
set_text("textField placeholder:'#{placeholder}'",'#{input}')
end它显示该步骤是未定义的
You can implement step definitions for undefined steps with these snippets:
Then(/^I set “Name“ into “Yaseen“$/) do
pending # express the regexp above with the code you wish you had
end对不起我的英语
发布于 2013-12-11 01:25:09
在你的步骤中,你有“聪明”的引号和直白的引号。
Then I set “Name“ into “Yaseen“把它们改成直引号。
Then I set "Name" into "Yaseen"发布于 2013-12-06 05:36:06
在$/ in逐步定义之前不应该有任何空间。尝尝这个
Then(/^I set "([^\"]*)" into "([^\"]*)"$/) do |placeholder,input|
set_text("textField placeholder:'#{placeholder}'",'#{input}')
endhttps://stackoverflow.com/questions/20395849
复制相似问题