|
请各位为什么我用循环来捕获图像后再回放检查时,总得不到我预期想要的图片,在运行检查时总是提示实际和预期的不一样!
updata模式下捕获
for(i=1;i<5;i++)
{
obj_check_bitmap("TRxRichEdit", "Img&i", 1);
obj_type ("TRxRichEdit","<kPgUp_E>");
};
再在veify模式下运行以上脚本,将捕获的图片于实际图片对比,总是失败!
我不用循环时:
obj_check_bitmap("TRxRichEdit", "Img1", 1);
obj_type ("TRxRichEdit","<kPgUp_E>");
obj_check_bitmap("TRxRichEdit", "Img2", 1);
obj_type ("TRxRichEdit","<kPgUp_E>");
obj_check_bitmap("TRxRichEdit", "Img3", 1);
obj_type ("TRxRichEdit","<kPgUp_E>");
obj_check_bitmap("TRxRichEdit", "Img4", 1);
obj_type ("TRxRichEdit","<kPgUp_E>");
obj_check_bitmap("TRxRichEdit", "Img5", 1);
obj_type ("TRxRichEdit","<kPgUp_E>");
捕获后再运行能成功!!
请问这是怎么回事? |
|