ImageMagick识别返回ENOENT错误

时间:2016-12-15 06:27:33

标签: node.js webdriver imagemagick webdriver-io

尝试让ImageMagickWebdriverIO视觉回归测试中工作,但收到以下错误。我已验证ImageMagick已安装且路径上可用($ magick -version正确返回),我可以调用其他功能,但识别无效。

非常确定承诺拒绝只是ImageMagick没有返回图像的结果,所以显然在尝试检查高度时它是未定义的。

我在Windows上,最新的NodeJ,最新的WebdriverIO。

任何建议都会很棒。

  

{错误:spawn magick识别ENOENT           at exports._errnoException(util.js:1022:11)           在Process.ChildProcess._handle.onexit(internal / child_process.js:193:32)           at onErrorNT(internal / child_process.js:359:16)           at _combinedTickCallback(internal / process / next_tick.js:74:11)           at process._tickDomainCallback(internal / process / next_tick.js:122:9)         代码:' ENOENT',         错误:' ENOENT',         系统调用:'产生魔法识别',         路径:' magick识别',         spawnargs:          [' -format',            '%m%z%w%h%b%x%y%f',            ' ./测试/截图/亚马逊/主页/ navbar.diff.png' ]         cmd:' magick identify -format%m%z%w%h%b%x%y%f ./test/screenshots/Amazon/Home/navbar.diff.png' }       没有标准       ˚F

0 passing (19.70s)
1 failing

Promise was rejected with the following reason: TypeError: Cannot read property 'height' of undefined
running chrome
Error: Promise was rejected with the following reason: TypeError: Cannot read property 'height' of undefined

0 个答案:

没有答案