启动测试服务器时出现以下错误。我遵循的步骤是:
1)calabash-android resign features \ com.whatsapp-v2.12.114-450480-Android-2.1.apk
2)calabash-android build features \ com.whatsapp-v2.12.114-450480-Android-2.1.apk
完成对测试服务器的签名。将其移至test_servers / 55a1d403d4a789d5d979742ac47bc35c_0.5.10.apk
3)adb设备
附加的设备列表 192.168.231.101:5555设备
4)calabash-android控制台功能\ com.whatsapp-v2.12.114-450480-Android-2.1.apk
5)irb(main):001:0> start_test_server_in_background
然后我看到以下错误..请帮助
Starting calabash-android console...
Loading C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.5.10/irbrc
Running irb...
*** WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansicon/) to get coloured output on Windows
irb(main):001:0> start_test_server_in_background
Starting: Intent { act=android.intent.action.MAIN cmp=com.whatsapp.test/sh.calaba.instrumentationbackend.WakeUp }
Error type 3
Error: Activity class {com.whatsapp.test/sh.calaba.instrumentationbackend.WakeUp} does not exist.
RuntimeError: Could not remove the keyguard
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.5.10/lib/calabash-android/operations.rb:567:in `block in wake_up'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/retriable-1.4.1/lib/retriable/retry.rb:27:in `perform'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/retriable-1.4.1/lib/retriable.rb:9:in `retriable'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.5.10/lib/calabash-android/operations.rb:566:in `wake_up'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.5.10/lib/calabash-android/operations.rb:590:in `start_test_server_in_background'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.5.10/lib/calabash-android/operations.rb:133:in `start_test_server_in_background'
from (irb):1
from C:/Ruby193/bin/irb:12:in `<main>'
irb(main):002:0>
答案 0 :(得分:0)
键盘锁基本上是允许锁定Android手机的功能(带或不带PIN)。在这种情况下,只要手机未被pin \ password锁定,calabash就会内置代码来处理手机上的解锁。 使用pin \密码检查您的设备是否已锁定并将其删除