Calabash - android - NoMethodError in app_installation_hooks



我在Xamarin Cloud中遇到了运行Calabash测试的问题。相同的测试在本地设备上完美无缺。这是错误:

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

这是Calabash Ruby Framework中的一个错误,并且由于我无法在本地复制它,因此我对如何修复它一无所知。

解决问题。

我曾经启动具有多个配置文件的"测试云"命令,如下所示:

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

Multi Profiles确实适用于" Calabash-android" CLI(场景背后的黄瓜),但对于" Test-Cloud"命令而言,只有一个配置文件被拾取。解决方案是在Cucumber.yml中添加一个配置文件,该配置文件结合了您要在云中运行的所有配置文件。这样,您只需一个配置文件就调用"测试云"命令。

最新更新