Comments (2)
这个问题,我将这段代码内的app-debug.apk改成了app-debug.apk.zip后没有了:
before(function() {
return driver.init({
platformName: 'Android',
app: path.join(__dirname,'..','app',app-debug.apk.zip
),
udid: "85875fccd2fc08bc"
});
});
但是,出现了另外的问题:
socket server ready
socket client ready
responseHandler.js:24:12 [master] pid:43223 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"platformName":"Android","app":"/NodeJs/Macaca/MXD-IOS-macaca/app/app-debug.apk.zip","udid":"85875fccd2fc08bc","browserName":"firefox","version":"","javascriptEnabled":true,"platform":"ANY"}}
session.js:24:10 [master] pid:43223 Creating session, sessionId: 273221e1-3cee-446e-99d5-8c4a825dd10b.
helper.js:205:12 [master] pid:43223 Unzipping local app form /NodeJs/Macaca/MXD-IOS-macaca/app/app-debug.apk.zip
uiautomator-client.js:78:14 [master] pid:43223 connect lost
INSTRUMENTATION_STATUS: numtests=1
INSTRUMENTATION_STATUS: stream=
com.android.uiautomator.client.Initialize:
INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
INSTRUMENTATION_STATUS: test=testStartServer
INSTRUMENTATION_STATUS: class=com.android.uiautomator.client.Initialize
INSTRUMENTATION_STATUS: current=1
INSTRUMENTATION_STATUS_CODE: 1
uiautomator start socket server.
socket server ready
socket client ready
responseHandler.js:63:12 [master] pid:43223 Send Error Respone to Client: Wait For Condition timeout 60000
InternalServerError: Internal Server Error
at Object.module.exports.throw (/usr/local/lib/node_modules/macaca-cli/node_modules/koa/lib/context.js:91:23)
at Object.module.exports (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/responseHandler.js:66:17)
at throw (native)
at onRejected (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:81:24)
at process._tickCallback (node.js:401:9)
responseHandler.js:63:12 [master] pid:43223 Send Error Respone to Client: Wait For Condition timeout 60000
InternalServerError: Internal Server Error
at Object.module.exports.throw (/usr/local/lib/node_modules/macaca-cli/node_modules/koa/lib/context.js:91:23)
at Object.module.exports (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/responseHandler.js:66:17)
at throw (native)
at onRejected (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:81:24)
at process._tickCallback (node.js:401:9)
responseHandler.js:24:12 [master] pid:43223 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:43223 Send HTTP Respone to Client: 405 Method Not Allowed
uiautomator-client.js:78:14 [master] pid:43223 connect lost
from macaca.
"app":"app/app-debug.apk"
路径没找到啊
from macaca.
Related Issues (20)
- 报错 Invalid listen port specified in argument '8001' 路径:xctesghttps://gist.github.com/paradite/1569c4012dd1bdb3d71213b536bb5a05 无法访问 HOT 4
- Cannot use the latest version of chrome-driver HOT 1
- 这个项目还有人维护吗? HOT 1
- app-inspector 执行后,打开浏览器看不到页面 HOT 3
- ios14.2,xcode12.2,运行iOS自动化测试报错[XCTestDriver sharedTestDriver]: unrecognized selector sent to class 0x100672ed8' HOT 1
- fetch fail HOT 6
- Android 10 及以上版本无法启动自动化调试,报“socket hang up” HOT 3
- xcode 12.5 ios 14.7.1 下 app-inspector 加载不出页面了 HOT 2
- sendKeys不能输入@和.字符,比如输入邮箱[email protected] 但是,填上去的内容却是testqqcom HOT 10
- Module compiled with Swift 5.3.1 cannot be imported by the Swift 5.4.2 compiler HOT 3
- 回放Android 测试 生成的截图无法在测试报告中显示出来 HOT 9
- 求教一下 安卓这种自定义弹窗 如何在弹窗上选择值? HOT 3
- Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:205:27) HOT 5
- Blank screen for the preview window for IOS Simulators HOT 2
- XCTestWD在真机上正常运行,命令行执行app-inspector -u xxxx后,提示:Terminated due to signal 9 HOT 2
- Macaca 支持桌面端应用么 怎么定位桌面端应用元素 HOT 4
- Macaca 支持桌面端应用么 怎么定位桌面端应用元素 HOT 2
- macaca server运行失败 HOT 9
- 请问通过定位如何获取web img的src? HOT 3
- iOS-deploy issue while installing iOS-macaca driver HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macaca.