Calabash测试获得响应0场景0步0m0.000s

时间:2016-02-25 06:44:16

标签: android cucumber calabash-android

我是android和calabash的新手,尝试使用Calabash测试Android应用程序。我已按照此doc进行设置。 my_first.feature 文件包含示例代码

Feature: Running a test

Scenario: Register
Given I am on the Welcome Screen
Then I touch "SKIP"
Then I wait
Then I should see Registration Screen

我使用了最新的apk(在 .feature 文件中进行更改后的buid)来运行测试,为此我得到了回复

* features/support/env.rb

Features:

0 scenarios
0 steps
0m0.000s

除了my_first.features文件内容之外,我没有做任何更改。 如果有人帮我解决问题并解决问题,那就太好了。

1 个答案:

答案 0 :(得分:1)

在创建功能文件后第一次运行Calabash测试时,应该从功能文件夹正上方的目录运行测试。