2

启动测试服务器时出现以下错误。我遵循的步骤是:

1)calabash-android resign features\com.whatsapp-v2.12.114-450480-Android-2.1.apk

2) 葫芦-android 构建功能\com.whatsapp-v2.12.114-450480-Android-2.1.apk

完成对测试服务器的签名。将其移至 test_servers/55a1d403d4a789d5d979742ac47bc35c_0.5.10.apk

3)亚行设备

连接的设备列表 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>
4

1 回答 1

0

键盘锁基本上是允许锁定您的 android 手机(有或没有 PIN)的功能。在这种情况下,只要手机没有被 pin\password 锁定,calabash 就有内置代码来处理手机上的解锁。检查您的设备是否使用 pin\password 锁定并将其删除

于 2016-02-29T16:44:22.527 回答