我正在尝试运行一个简单的比较ROBOT FrameWork Script。这是脚本..
*** Settings ***
Library String
Library OperatingSystem
*** Variables ***
${IMAGE_COMPARATOR_COMMAND} D:\\"Program Files"\\ImageMagick-7.0.7-Q8\\convert __REFERENCE__ __TEST__ -metric RMSE -compare -format "%[distortion]" info:
*** Test Cases ***
Image Comparison Ok
Compare Images D:/Project/Lg/imageCompare/CollectorCreation_IE.png D:/Project/Lg/imageCompare/CollectorCreation_Chrome.png # 0.1
#Image Comparison NOk
# Compare Images D:/Project/Lg/imageCompare/CollectorCreation_IE.png D:/Project/Lg/imageCompare/CollectorCreation_Chrome.png 0.1
*** Keywords ***
Compare Images
[Arguments] ${Reference_Image_Path} ${Test_Image_Path} ${Allowed_Threshold}
${TEMP}= Replace String ${IMAGE_COMPARATOR_COMMAND} __REFERENCE__ ${Reference_Image_Path}
log ${TEMP}
${COMMAND}= Replace String ${TEMP} __TEST__ ${Test_Image_Path}
log ${COMMAND}
Log Executing: ${COMMAND}
${RC} ${OUTPUT}= Run And Return Rc And Output ${COMMAND}
Log Return Code: ${RC}
Log Return Output: ${OUTPUT}
${RESULT} Evaluate ${OUTPUT} < ${Allowed_Threshold}
Should be True ${RESULT}
但我遇到了dll的问题。不确定是什么问题。
Return Output: convert: unable to load module 'd:\Program Files\ImageMagick-7.0.7-Q8\modules\coders\IM_MOD_RL_PNG_.dll': The specified module could not be found.
@ error/module.c/OpenModule/1275.
convert: no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/509.
convert: unable to load module 'd:\Program Files\ImageMagick-7.0.7-Q8\modules\coders\IM_MOD_RL_PNG_.dll': The specified module could not be found.
@ error/module.c/OpenModule/1275.
convert: no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/509.
convert: unable to open image '#': No such file or directory @ error/blob.c/OpenBlob/3323.
convert: unable to open image '#': No such file or directory @ error/blob.c/OpenBlob/3323.
convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/509.
convert: no images defined `info:' @ error/convert.c/ConvertImageCommand/3275.
我可以在给定位置看到这个dt程序无法选择。
我正在使用Windows 7 64位计算机并安装了#34; ImageMagick-7.0.7-14-Q16-x64-dll.exe&#34;并得到了上述问题并尝试使用&#34; ImageMagick-7.0.7-14-Q8-x64-dll.exe&#34; (我从here中挑选)相同的结果。
有人可以帮我解决问题。我猜这将是安装版本的问题。
C:\Users\bbanduch>magick -version
Version: ImageMagick 7.0.7-14 Q8 x64 2017-12-06 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 180040629
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo flif freetype gslib jng jp2 jpeg lcms lqr openexr pangocairo png ps raw rsvg tiff webp xml zlib