@harsayer 执行你给的测试类,结果报这样的异常了
session.js:39:14 [master] pid:74112 Error: Cannot find module 'macaca-android
'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at detectDevice (D:\Program Files\nodejs\node-global\node_modules\macaca-cli
\node_modules\webdriver-server\lib\server\controllers\session.js:36:20)
at Object.createDevice (D:\Program Files\nodejs\node-global\node_modules\mac
aca-cli\node_modules\webdriver-server\lib\server\controllers\session.js:10:18)
at next (native)
at onFulfilled (D:\Program Files\nodejs\node-global\node_modules\macaca-cli\
node_modules\co\index.js:65:19)
at D:\Program Files\nodejs\node-global\node_modules\macaca-cli\node_modules\
co\index.js:54:5
at Object.co (D:\Program Files\nodejs\node-global\node_modules\macaca-cli\no
de_modules\co\index.js:50:10)
@harsayer O(∩_∩) O 谢谢。重装了 macaca-cli 依然报错了!
@harsayer 执行 macaca server --verbose 命令
index.js:17:12 [master] pid:7034 webdriver server start with config:
{ port: 3456,
verbose: true,
ip: '192.168.239.136',
host: 'perfor-HP-Compaq-Pro-6380-MT',
loaded_time: '2016-09-27 11:05:17' }
middlewares.js:17:10 [master] pid:7034 base middlewares attached
router.js:108:10 [master] pid:7034 router set
webdriver sdk launched
fs.js:60
throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs
^
Error: EACCES: permission denied, open '/opt/nodejs/lib/node_modules/macaca-cli/node_modules/webdriver-server/logs/digest-2016_09_27.log'
at Error (native)
@cxf 执行 mvn test 报的那个异常是怎么解决的呢?!!