如果我已经确认安装了 calabash-android,如何定义 `start_test_server_in_background` 才能运行 Calabash 测试?

问题描述 投票:0回答:1

我已经尝试了 5 天来对我的 APK 文件进行基本测试。在那 5 天里,我不断地学会了如何不这样做......

我已经安装了捆绑包并使用 rbenv 管理我的 gem。我正在尝试执行

bundle exec calabash-android run <name>.apk
但它无法运行并输出:

      undefined local variable or method `start_test_server_in_background' for #<Object:0x000000013132f2d0> (NameError)
      ./features/support/app_installation_hooks.rb:6:in `Before'

现在我已经验证了我的 Gemfile.lock 包含

calabash-android
并且 Gemfile 也包含它。

我对 calabash-android 的 Github repo 进行了一些研究,发现它是定义

operations.rb
的 gem,这意味着我
技术上应该
能够执行上述命令。

android automated-tests calabash calabash-android
1个回答
0
投票

© www.soinside.com 2019 - 2024. All rights reserved.