首页 > 代码库 > macaca常见错误排查

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.5@mocha\lib\utils.js:628
        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.5@mocha\lib\utils.j
s:628:15)
    at C:\Users\Tony\AppData\Roaming\npm\node_modules\macaca-cli\node_modules\.2.4.5@mocha\bin\_mocha:326:30
    at Array.forEach (native)
    at Object.<anonymous> (C:\Users\Tony\AppData\Roaming\npm\node_modules\macaca-cli\node_modules\.2.4.5@mocha\bin\_mocha:
325:6)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.runMain (module.js:590:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

>> Test completed!

如下,进入相应目录即可

技术分享

2.

 

macaca常见错误排查