Calabash - android - app_installation_hooks.rb 中的 NoMethodError

Calabash - android - NoMethodError in app_installation_hooks.rb

我在 xamarin 云中遇到 运行 葫芦测试问题。同样的测试在本地设备上也能完美运行。这是错误:

NoMethodError - private method `test_server_path' called for nil:NilClass (NoMethodError)
./features/android/support/app_installation_hooks.rb:18:in `Before'

这是 calabash ruby 框架中的一个错误,由于我无法在本地复制它,所以我不知道如何修复它。

问题已解决。

我曾经使用多个配置文件启动 'test-cloud' 命令,如下所示:

test-cloud [various options] --config config/cucumber.yml -p android -p another-profile

多个配置文件确实适用于 'calabash-android' cli(这是幕后的黄瓜)但不适用于 'test-cloud' 命令,因为只有一个配置文件被拾取。解决方案是在 cucumber.yml 中添加一个配置文件,将您想要 运行 的所有配置文件组合到云端。这样您就可以仅使用一个配置文件调用 'test-cloud' 命令。