uirecorder icon indicating copy to clipboard operation
uirecorder copied to clipboard

uirecorder 3.0 Android 录制An unknown server-side error occurred while processing the command报错

Open Arvingrep opened this issue 6 years ago • 3 comments

1、 macaca doctor

macaca-doctor version: 2.0.18

Node.js checklist:

node env: E:\node\node.exe node version: v8.16.0

Android checklist:

JAVA version is 1.8 JAVA_HOME is set to C:\Program Files\Java\jdk1.8.0_201 ANDROID_HOME is set to E:\android-sdk Platforms is set to E:\android-sdk\platforms\android-29 ADB tool is set to E:\android-sdk\platform-tools\adb.exe GRADLE_HOME is set to C:\gradle\gradle-5.4.1

Installed driver list:

android: 2.1.0 location: C:\Users\Administrator\AppData\Roaming\npm\node_modules\macaca-android

chrome: 1.1.0 location: C:\Users\Administrator\AppData\Roaming\npm\node_modules\macaca-chrome

electron: 5.0.0 location: C:\Users\Administrator\AppData\Roaming\npm\node_modules\macaca-electron

2、 uirecorder λ uirecorder mobile __ ______ ____ __ / / / / / / __ __ _________ / / _____ / / / // / / // / _ / / __ / / __ / _ / / / // // / / , / / // // / / / // / / / _// // ||_/_/_// _,/___/_/ v3.0.0

Official Site: http://uirecorder.com

? 测试脚本文件名: sample/test.spec.js ? 文件已存在,加载并继续录制吗? No ? App路径 (扩展名: apk, app, zip): C:\Users\Administrator\Desktop\xwcp_test_Android_production_V2.0.6_build206_0619.apk

录制服务器监听在端口: 50821

  • daemon not running; starting now at tcp:5037
  • daemon started successfully

DevTools listening on ws://127.0.0.1:50836/devtools/browser/f2dd8164-2772-4ea1-9084-194d386dd0d3 录制浏览器已开启 tap: //[@resource-id="com.cp99.tz01test:id/mImgDismiss"] × 执行失败 An unknown server-side error occurred while processing the command. tap: //[@resource-id="com.cp99.tz01test:id/mImgDismiss"] × 执行失败 An unknown server-side error occurred while processing the command. doubleTap: //[@resource-id="com.cp99.tz01test:id/mImgDismiss"] × 执行失败 An unknown server-side error occurred while processing the command. tap: //[@resource-id="com.cp99.tz01test:id/mImgDismiss"] × 执行失败 An unknown server-side error occurred while processing the command. drag: 643, 277, 718, 277, 0.08 × 执行失败 An unknown server-side error occurred while processing the command. tap: //[@resource-id="com.cp99.tz01test:id/mImgDismiss"] × 执行失败 An unknown server-side error occurred while processing the command. tap: //[@resource-id="com.cp99.tz01test:id/mImgDismiss"] × 执行失败 An unknown server-side error occurred while processing the command. tap: //*[@resource-id="com.miui.home:id/hot_seats"]/android.widget.RelativeLayout[2]/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.ImageView × 执行失败 An unknown server-side error occurred while processing the command. drag: 537, 737, 0, 849, 0.37 × 执行失败 An unknown server-side error occurred while processing the command. drag: 466, 1029, 220, 1055, 0.34 × 执行失败 An unknown server-side error occurred while processing the command. drag: 626, 956, 718, 968, 0.30 × 执行失败 An unknown server-side error occurred while processing the command. drag: 584, 884, 318, 881, 0.59 × 执行失败 An unknown server-side error occurred while processing the command. drag: 613, 861, 352, 862, 0.50 × 执行失败 An unknown server-side error occurred while processing the command. drag: 531, 837, 0, 911, 0.51 × 执行失败 An unknown server-side error occurred while processing the command. drag: 411, 790, 47, 800, 0.35 × 执行失败 An unknown server-side error occurred while processing the command. drag: 488, 787, 718, 813, 0.24 × 执行失败 An unknown server-side error occurred while processing the command.

Arvingrep avatar Jun 25 '19 07:06 Arvingrep

This is the translated issue:


Uirecorder 3.0 Android recorded An unknown server-side error occurred while processing the command error

1, macaca doctor

  Macaca-doctor version: 2.0.18

  Node.js checklist:

  Node env: E:\node\node.exe   Node version: v8.16.0

  Android checklist:

  JAVA version is 1.8   JAVA_HOME is set to C:\Program Files\Java\jdk1.8.0_201   ANDROID_HOME is set to E:\android-sdk   Platforms is set to E:\android-sdk\platforms\android-29   ADB tool is set to E:\android-sdk\platform-tools\adb.exe   GRADLE_HOME is set to C:\gradle\gradle-5.4.1

  Installed driver list:

  Android: 2.1.0   Location: C:\Users\Administrator\AppData\Roaming\npm\node_modules\macaca-android

  Chrome: 1.1.0   Location: C:\Users\Administrator\AppData\Roaming\npm\node_modules\macaca-chrome

  Electron: 5.0.0   Location: C:\Users\Administrator\AppData\Roaming\npm\node_modules\macaca-electron

2, uirecorder λ uirecorder mobile     __ ______ ____ __    / / / / / / __ __ _________ / / _____   / / / // / / // / _ / / __ / / __ / _ / /  / // // / / , / / // // / / / // / / /  _// // ||_/_/_// _,_// v3.0.0

Official Site: http://uirecorder.com


? Test script file name: sample/test.spec.js • The file already exists, load and continue recording? No • App path (extension: apk, app, zip): C:\Users\Administrator\Desktop\xwcp_test_Android_production_V2.0.6_build206_0619.apk

Recording server listening on port: 50821 *daemon not running; starting now at tcp:5037

  • daemon started successfully

DevTools listening on ws://127.0.0.1:50836/devtools/browser/f2dd8164-2772-4ea1-9084-194d386dd0d3 Recording browser is turned on   Tap: //[@resource-id="com.cp99.tz01test:id/mImgDismiss"]    × Execution failed An unknown server-side error occurred while processing the command.   Tap: //[@resource-id="com.cp99.tz01test:id/mImgDismiss"]    × Execution failed An unknown server-side error occurred while processing the command.   doubleTap: //[@resource-id="com.cp99.tz01test:id/mImgDismiss"]    × Execution failed An unknown server-side error occurred while processing the command.   Tap: //[@resource-id="com.cp99.tz01test:id/mImgDismiss"]    × Execution failed An unknown server-side error occurred while processing the command.   Drag: 643, 277, 718, 277, 0.08    × Execution failed An unknown server-side error occurred while processing the command.   Tap: //[@resource-id="com.cp99.tz01test:id/mImgDismiss"]    × Execution failed An unknown server-side error occurred while processing the command.   Tap: //[@resource-id="com.cp99.tz01test:id/mImgDismiss"]    × Execution failed An unknown server-side error occurred while processing the command.   Tap: //*[@resource-id="com.miui.home:id/hot_seats"]/android.widget.RelativeLayout[2]/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.ImageView    × Execution failed An unknown server-side error occurred while processing the command.   Drag: 537, 737, 0, 849, 0.37    × Execution failed An unknown server-side error occurred while processing the command.   Drag: 466, 1029, 220, 1055, 0.34    × Execution failed An unknown server-side error occurred while processing the command.   Drag: 626, 956, 718, 968, 0.30    × Execution failed An unknown server-side error occurred while processing the command.   Drag: 584, 884, 318, 881, 0.59    × Execution failed An unknown server-side error occurred while processing the command.   Drag: 613, 861, 352, 862, 0.50    × Execution failed An unknown server-side error occurred while processing the command.   Drag: 531, 837, 0, 911, 0.51    × Execution failed An unknown server-side error occurred while processing the command.   Drag: 411, 790, 47, 800, 0.35    × Execution failed An unknown server-side error occurred while processing the command.   Drag: 488, 787, 718, 813, 0.24    × Execution failed An unknown server-side error occurred while processing the command.

macaca-bot avatar Jun 25 '19 07:06 macaca-bot

1、补充一下,这个录制手机app 时在浏览器所有的操作都报错的log ,看了一下应该是权限问题:“注入到另一个应用程序需要注入事件权限“

2、 image

3、具体log

responseHandler.js:11:12 [master] pid:12540 Recieve HTTP Request from Client[2019-06-28 14:37:44]: method: POST url: /wd/hub/session/c7bcff51-3992-470a-ba86-02ff5b3af941/elements, jsonBody: {"using":"xpath","value":"//[@resource-id="com.cp99.tz01test.lottery:id/mImageNext"]"} proxy.js:56:14 [master] pid:12540 Proxy: /wd/hub/session/c7bcff51-3992-470a-ba86-02ff5b3af941/elements:POST to http://127.0.0.1:9002/wd/hub/session/:sessionId/elements:POST with body: {"using":"xpath","value":"//[@resource-id="com.cp99.tz01test.lottery:id/mImageNext"]"} proxy.js:87:20 [master] pid:12540 Got response with status 200: {"status":0,"value":[{"ELEMENT":"4"}],"sessionId":"c7bcff51-3992-470a-ba86-02ff5b3af941"} session.js:120:14 [master] pid:12540 Send HTTP Respone to Client[2019-06-28 14:37:45]: {"status":0,"value":"[{"ELEMENT":"4"}]","sessionId":"c7bcff51-3992-470a-ba86-02ff5b3af941"} responseHandler.js:11:12 [master] pid:12540 Recieve HTTP Request from Client[2019-06-28 14:37:45]: method: POST url: /wd/hub/session/c7bcff51-3992-470a-ba86-02ff5b3af941/actions, jsonBody: {"actions":[{"type":"tap","element":"4"}]} proxy.js:56:14 [master] pid:12540 Proxy: /wd/hub/session/c7bcff51-3992-470a-ba86-02ff5b3af941/actions:POST to http://127.0.0.1:9002/wd/hub/session/:sessionId/actions:POST with body: {"actions":[{"type":"tap","element":"4"}]} uiautomator-client.js:92:14 [master] pid:12540 INSTRUMENTATION_STATUS: stream=

Injecting to another application requires INJECT_EVENTS permission

INSTRUMENTATION_STATUS_CODE: 0

proxy.js:87:20 [master] pid:12540 Got response with status 200: {"status":13,"value":"An unknown server-side error occurred while processing the command.","sessionId":"c7bcff51-3992-470a-ba86-02ff5b3af941"} session.js:120:14 [master] pid:12540 Send HTTP Respone to Client[2019-06-28 14:37:45]: {"status":13,"value":""An unknown server-side error occurred while processing the command."","sessionId":"c7bcff51-3992-470a-ba86-02ff5b3af941"} responseHandler.js:11:12 [master] pid:12540 Recieve HTTP Request from Client[2019-06-28 14:37:45]: method: GET url: /wd/hub/session/c7bcff51-3992-470a-ba86-02ff5b3af941/screenshot, jsonBody: {} responseHandler.js:49:14 [master] pid:12540 Send HTTP Respone to Client[2019-06-28 14:37:47]: {"sessionId":"c7bcff51-3992-470a-ba86-02ff5b3af941","status":0,"value":""iVBORw0KGgoAAAANSUhEUgAAAtAAAAUACAYAAABuzmU9AAAABHNCSVQICAgIfAhkiAAAIABJREFUeJzsnXd4HOW1/z/vzGyVtLKquy3bslwkdzDYuIDpuYQSEkJJcinJvb9LQhISUkm7yU2vN+UmQGiBBEgChBC6AZtubIw77rbcZKvX7TPz+2N2V9u1q2LZ+P08jx7tzrzl7M7u7HfOnHNecVVpmYlEIpFIJBKJRCLJCWW4DZBIJBKJRCKRSE4mpICWSCQSiUQikUjyQApoiUQikUgkEokkD6SAlkgkEolEIpFI8kAKaIlEIpFIJBKJJA+kgJZIJBKJRCKRSPJACmiJRCKRSCQSiSQPpICWSCQSiUQikUjyQApoiUQikUgkEokkD6SAlkgk..."} responseHandler.js:11:12 [master] pid:12540 Recieve HTTP Request from Client[2019-06-28 14:37:47]: method: GET url: /wd/hub/session/c7bcff51-3992-470a-ba86-02ff5b3af941/source, jsonBody: {} proxy.js:56:14 [master] pid:12540 Proxy: /wd/hub/session/:sessionId/source:GET to http://127.0.0.1:9002/wd/hub/session/:sessionId/source:GET with body: null

Arvingrep avatar Jun 28 '19 06:06 Arvingrep

This is the translated issue comment: @wenzhaoxian


  1. Add, this log of all the operations in the browser when recording the mobile app is wrong. Look at the permission question: "Injecting into another application requires injection of event permission"

2, !image

3, the specific log

responseHandler.js:11:12 [master] pid:12540 Recieve HTTP Request from Client[2019-06-28 14:37:44]: method: POST url: /wd/hub/session/c7bcff51-3992-470a -ba86-02ff5b3af941/elements, jsonBody: {"using":"xpath","value":"//[@resource-id="com.cp99.tz01test.lottery:id/mImageNext"""} proxy.js:56:14 [master] pid:12540 Proxy: /wd/hub/session/c7bcff51-3992-470a-ba86-02ff5b3af941/elements:POST to http://127.0.0.1:9002/wd/ Hub/session/:sessionId/elements:POST with body: {"using":"xpath","value":"//[@resource-id="com.cp99.tz01test.lottery:id/mImageNext\ "]"} proxy.js:87:20 [master] pid:12540 Got response with status 200: {"status":0,"value":[{"ELEMENT":"4"}],"sessionId":"c7bcff51 -3992-470a-ba86-02ff5b3af941"} session.js:120:14 [master] pid:12540 Send HTTP Respone to Client[2019-06-28 14:37:45]: {"status":0,"value":"[{"ELEMENT ":"4"}]","sessionId":"c7bcff51-3992-470a-ba86-02ff5b3af941"} responseHandler.js:11:12 [master] pid:12540 Recieve HTTP Request from Client[2019-06-28 14:37:45]: method: POST url: /wd/hub/session/c7bcff51-3992-470a -ba86-02ff5b3af941/actions, jsonBody: {"actions":[{"type":"tap","element":"4"}]} proxy.js:56:14 [master] pid:12540 Proxy: /wd/hub/session/c7bcff51-3992-470a-ba86-02ff5b3af941/actions:POST to http://127.0.0.1:9002/wd/ Hub/session/:sessionId/actions:POST with body: {"actions":[{"type":"tap","element":"4"}]} uiautomator-client.js:92:14 [master] pid:12540 INSTRUMENTATION_STATUS: stream=

Injecting to another application requires INJECT_EVENTS permission

INSTRUMENTATION_STATUS_CODE: 0

proxy.js:87:20 [master] pid:12540 Got response with status 200: {"status":13,"value":"An unknown server-side error occurred while processing the command.","sessionId" :"c7bcff51-3992-470a-ba86-02ff5b3af941"} session.js:120:14 [master] pid:12540 Send HTTP Respone to Client[2019-06-28 14:37:45]: {"status":13,"value":""An unknown server -side error occurred while processing the command."","sessionId":"c7bcff51-3992-470a-ba86-02ff5b3af941"} responseHandler.js:11:12 [master] pid:12540 Recieve HTTP Request from Client[2019-06-28 14:37:45]: method: GET url: /wd/hub/session/c7bcff51-3992-470a -ba86-02ff5b3af941/screenshot, jsonBody: {} responseHandler.js:49:14 [master] pid:12540 Send HTTP Respone to Client[2019-06-28 14:37:47]: {"sessionId":"c7bcff51-3992-470a-ba86-02ff5b3af941", "status": 0, "value": "" iVBORw0KGgoAAAANSUhEUgAAAtAAAAUACAYAAABuzmU9AAAABHNCSVQICAgIfAhkiAAAIABJREFUeJzsnXd4HOW1 / z / vzGyVtLKquy3bslwkdzDYuIDpuYQSEkJJcinJvb9LQhISUkm7yU2vN + UmQGiBBEgChBC6AZtubIw77rbcZKvX7TPz + 2N2V9u1q2LZ + P08jx7tzrzl7M7u7HfOnHNecVVpmYlEIpFIJBKJRCLJCWW4DZBIJBKJRCKRSE4mpICWSCQSiUQikUjyQApoiUQikUgkEokkD6SAlkgkEolEIpFI8kAKaIlEIpFIJBKJJA + kgJZIJBKJRCKRSPJACmiJRCKRSCQSiSQPpICWSCQSiUQikUjyQApoiUQikUgkEokkD6SAlkgk ... "} responseHandler.js:11:12 [master] pid:12540 Recieve HTTP Request from Client[2019-06-28 14:37:47]: method: GET url: /wd/hub/session/c7bcff51-3992-470a -ba86-02ff5b3af941/source, jsonBody: {} proxy.js:56:14 [master] pid:12540 Proxy: /wd/hub/session/:sessionId/source:GET to http://127.0.0.1:9002/wd/hub/session/:sessionId/ Source:GET with body: null

macaca-bot avatar Jun 28 '19 06:06 macaca-bot