葫芦xamarin

时间:2016-04-06 05:56:02

标签: xamarin.ios calabash-ios

我无法在Xamarin.iOS Calabash中使用正则表达式生成片段。

例如..

Feature:ABC
Given I launch my app
Then I should see text "Home"

生成的代码段:

Then(/^I should see text "Home"$/) do
pending #Write code here that turns the phrase above into concrete actions
end

我试过传递"(。*)","(。*?)"以及"([^ \"] *)"

有人可以告诉我吗?我的安装过程是否遗漏了某些内容或者其他地方是否存在问题?

1 个答案:

答案 0 :(得分:1)

  

然后(/ ^我应该看到文字" Home" $ /)

如果您有步骤:

Then I should see text "Home"

定义应该是:

Then(/^I should see text "([^"]*)"$/) do |arg1|

end

实际发生了什么?你怎么跑黄瓜?

相关问题