macaca常见错误排查

1.Error: cannot resolve path (or pattern) 'macaca-test'

这是因为执行run命令的时候未进入用例目录

C:\Users\Tony\node_modules>macaca run

>> webdriver sdk launched
>> C:\Users\Tony\AppData\Roaming\npm\node_modules\macaca-cli\node_modules\.2.4.@mocha\lib\utils.js:
throw new Error("cannot resolve path (or pattern) '" + path + "'");
^ Error: cannot resolve path (or pattern) 'macaca-test'
at Object.lookupFiles (C:\Users\Tony\AppData\Roaming\npm\node_modules\macaca-cli\node_modules\.2.4.@mocha\lib\utils.j
s::)
at C:\Users\Tony\AppData\Roaming\npm\node_modules\macaca-cli\node_modules\.2.4.@mocha\bin\_mocha::
at Array.forEach (native)
at Object.<anonymous> (C:\Users\Tony\AppData\Roaming\npm\node_modules\macaca-cli\node_modules\.2.4.@mocha\bin\_mocha:
:)
at Module._compile (module.js::)
at Object.Module._extensions..js (module.js::)
at Module.load (module.js::)
at tryModuleLoad (module.js::)
at Function.Module._load (module.js::)
at Module.runMain (module.js::)
at run (bootstrap_node.js::)
at startup (bootstrap_node.js::)
at bootstrap_node.js:: >> Test completed!

如下,进入相应目录即可

macaca常见错误排查

2.

上一篇:android menu的问题


下一篇:App.config和Web.config配置文件的自定义配置节点