UIAutomatorWD http server ready
macaca-android.js:303:10 [master] pid:23330 start app with: {"package":"com.android.browser","activity":".BrowserActivity"}
this.webviewVersion found 44 use it!
starting chromedriver service!
chromedriver bin path: /opt/nodejs/lib/node_modules/macaca-android/node_modules/macaca-chromedriver/exec/chromedriver2.20
Starting ChromeDriver 2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b) on port 9515
Only local connections are allowed.
chromedriver starting success.
proxy.js:51:14 [master] pid:23330 Proxy: /status:GET to http://localhost:9515/wd/hub/status:GET with body:
proxy.js:59:16 [master] pid:23330 Got response with status 200: "{\"sessionId\":\"\",\"status\":0,\"value\":{\"build\":{\"version\":\"alpha\"},\"os\":{\"arch\":\"x86_64\",\"name\":\"Linux\",\"version\":\"4.4.0-104-generic\"}}}"
proxy.js:51:14 [master] pid:23330 Proxy: /session:POST to http://localhost:9515/wd/hub/session:POST with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.android.browser","androidUseRunningApp":true,"androidDeviceSerial":"192.168.58.101:5555"}}}
proxy.js:59:16 [master] pid:23330 Got response with status 200: {"sessionId":"80e9682ea5db3533c9126b348888c826","status":0,"value":{"acceptSslCerts":true,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{},"cssSel...
chromedriver ready with: {"sessionId":null,"status":0,"value":{"acceptSslCerts":true,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{},"cssSelectorsEnabled":true,"databaseEnabled":false,"handlesAlerts":true,"hasTouchScreen":true,"javascriptEnabled":true,"locationContextEnabled":true,"mobileEmulationEnabled":false,"nativeEvents":true,"platform":"ANDROID","rotatable":false,"takesHeapSnapshot":true,"takesScreenshot":true,"version":"44.0.2403.119","webStorageEnabled":true}}
proxy.js:51:14 [master] pid:23330 Proxy: /wd/hub/session/:sessionId/window_handles:GET to http://localhost:9515/wd/hub/session/80e9682ea5db3533c9126b348888c826/window_handles:GET with body: {}
proxy.js:59:16 [master] pid:23330 Got response with status 200: {"sessionId":"80e9682ea5db3533c9126b348888c826","status":0,"value":["CDwindow-9564C0B4-4334-4A06-9D63-317CBDFD5D71"]}
responseHandler.js:49:14 [master] pid:23330 Send HTTP Respone to Client[2018-01-05 14:42:41]: {"sessionId":"05a57509-a047-47b1-9b18-7033c33ca6e3","status":0,"value":"{\"platformName\":\"Android\",\"browserName\":\"Chrome\",\"url\":\"http://m.aicai.com/m/register.do?agentId=1&vt=5\"}"}
responseHandler.js:11:12 [master] pid:23330 Recieve HTTP Request from Client[2018-01-05 14:42:47]: method: GET url: /wd/hub/session/05a57509-a047-47b1-9b18-7033c33ca6e3/source, jsonBody: {}
proxy.js:51:14 [master] pid:23330 Proxy: /wd/hub/session/:sessionId/source:GET to http://localhost:9515/wd/hub/session/80e9682ea5db3533c9126b348888c826/source:GET with body: null
proxy.js:59:16 [master] pid:23330 Got response with status 200: "{\"sessionId\":\"80e9682ea5db3533c9126b348888c826\",\"status\":0,\"value\":\"\u003Chtml xmlns=\\"http://www.w3.org/1999/xhtml\\\">\\u003Chead>\\u003C/head>\\u003Cbody>\\u003C/body>\\u003C/html>\"}"
responseHandler.js:49:14 [master] pid:23330 Send HTTP Respone to Client[2018-01-05 14:42:47]: {"sessionId":"05a57509-a047-47b1-9b18-7033c33ca6e3","status":0,"value":"\"<html xmlns=\\"http://www.w3.org/1999/xhtml\\">
H5Test.yml
1. Initialization option
desiredCapabilities:
Electron Configuration
platformName: 'Android' browserName: 'Chrome' url: 'https://www.baidu.com'
2. Crawling option
crawlingConfig: platform: 'android' targetElements: SearchConetent: actionType: 2 searchValue : 'kw' actionValue : '中文+Test+Nosmoke' Search: actionType: 1 searchValue : 'su' clickTypes:
就是执行到打开了模拟器的浏览器 server端日志 也看到发送了
但是 并没有打开该网址 然后nosmoke端日志 就是一直刷新reporter generated: /home/cmd/scripts/NoSmoke/web/reports/2018-0-5-14:42:30-report.html
附上日志: macaca server Log cmd@TR:~$ macaca server --verbose