2017-07-28 10 views
1

私の分度器の設定ファイルは次のようになりAndroidデバイス上で実行に失敗しますce10160a3538442705 "--chromedriver-port 9516分度器スクリプトは

私が分度器conf.jsを実行すると、アンドロイドデバイスはロックが解除されますが、クロムブラウザは起動せず、再びロック解除されます。

ログ:

[AndroidDriver] Using app unlock, this is going to be deprecated! 
[AndroidDriver] Unlocking screen 
[debug] [ADB] Getting connected devices... 
[debug] [ADB] 1 device(s) connected 
[debug] [ADB] Running 'C:\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","ce10160a3538442705","shell","am","force-stop","io.appium.unlock"] 
[debug] [ADB] Device API level: 24 
[debug] [ADB] Getting connected devices... 
[debug] [ADB] 1 device(s) connected 
[debug] [ADB] Running 'C:\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","ce10160a3538442705","shell","am","start","-W","-n","io.appium.unlock/.Unlock","-a","android.intent.action.MAIN","-c","android.intent.category.LAUNCHER","-f","0x10200000"] 
[debug] [ADB] Device API level: 24 
[debug] [ADB] Getting connected devices... 
[debug] [ADB] 1 device(s) connected 
[debug] [ADB] Running 'C:\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","ce10160a3538442705","shell","am","start","-W","-n","io.appium.unlock/.Unlock","-a","android.intent.action.MAIN","-c","android.intent.category.LAUNCHER","-f","0x10200000"] 
[debug] [ADB] Getting connected devices... 
[debug] [ADB] 1 device(s) connected 
[debug] [ADB] Running 'C:\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","ce10160a3538442705","shell","dumpsys","window"] 
[debug] [ADB] Getting connected devices... 
[debug] [ADB] 1 device(s) connected 
[debug] [ADB] Running 'C:\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","ce10160a3538442705","shell","dumpsys","window"] 
[debug] [AndroidDriver] Shutting down Android driver 
[debug] [ADB] Pressing the HOME button 
[debug] [ADB] Getting connected devices... 
[debug] [ADB] 1 device(s) connected 
[debug] [ADB] Running 'C:\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","ce10160a3538442705","shell","input","keyevent",3] 
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"shutdown"} 
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"shutdown"} 
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type SHUTDOWN 
[debug] [AndroidBootstrap] Received command result from bootstrap 
[debug] [UiAutomator] Shutting down UiAutomator 
[debug] [UiAutomator] Moving to state 'stopping' 
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":"OK, shutting down"} 
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Closed client connection 
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: numtests=1 
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: stream=. 
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner 
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: test=testRunServer 
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap 
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: current=1 
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS_CODE: 0 
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: stream= 
[debug] [AndroidBootstrap] [UIAUTO STDOUT] Test results for WatcherResultPrinter=. 
[debug] [AndroidBootstrap] [UIAUTO STDOUT] Time: 449.159 
[debug] [AndroidBootstrap] [UIAUTO STDOUT] OK (1 test) 
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS_CODE: -1 
[debug] [UiAutomator] UiAutomator shut down normally 
[debug] [UiAutomator] Moving to state 'stopped' 
[debug] [ADB] Attempting to kill all uiautomator processes 
[debug] [ADB] Getting all processes with uiautomator 
[debug] [ADB] Getting connected devices... 
[debug] [ADB] 1 device(s) connected 
[debug] [ADB] Running 'C:\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","ce10160a3538442705","shell","ps"] 
[ADB] No uiautomator process found to kill, continuing... 
[debug] [UiAutomator] Moving to state 'stopped' 
[debug] [Logcat] Stopping logcat capture 
[debug] [ADB] Getting connected devices... 
[debug] [ADB] 1 device(s) connected 
[debug] [ADB] Running 'C:\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","ce10160a3538442705","shell","am","force-stop","io.appium.unlock"] 
[debug] [AndroidDriver] Not cleaning generated files. Add `clearSystemFiles` capability if wanted. 
[MJSONWP] Encountered internal error running command: Error: Screen did not unlock successfully, retrying 
    at Object.callee$1$0$ (../../lib/android-helpers.js:453:13) 
    at tryCatch (C:\Users\xxxx\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40) 
    at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\xxxx\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22) 
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (C:\Users\xxxx\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21) 
    at GeneratorFunctionPrototype.invoke (C:\Users\xxxx\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37) 
    at process._tickCallback (internal/process/next_tick.js:109:7) 
[HTTP] <-- POST /wd/hub/session 500 463534 ms - 181 
+0

エラーログがありますか? – UmarZaii

+0

付属のログをご覧ください。ありがとうございます! – Annu

答えて

0

私はここでの問題を考え出しました。このデバイスは30秒後に自動ロックされていました。そのため、30秒ぐらいかかり始めると、再びデバイスのロックを解除しようとしていました。 自動ロックをすべて無効にするといいのでしょうか?