Web_image_check,图像检查点,功能与web_reg_find(文本检查点)类似,验证HTML页面中是否存在指定的图像。

 

应用场景:判断测试对象在打开的页面上是否存在某个logo,如公司logo,如果存在此logo则测试通过,若不存在此logo则测试不通过。

 

注意:

1.勾上runtime settings>>>internet protocl>>>preferences>>>check:enable imaage and text check

2.勾上tools>>>general options>>>correlation>>>enable scripting and java applets on snapshot

3.该函数需放到web_url后面,且web_url的mode须为html(此函数仅仅支持基于HTML的脚本)


1.F4,进入runtime settings,选择“preferences”,勾选“enable image and text check

LR图像检查点

1.点击tools >>> general options

LR图像检查点

1.勾选

LR图像检查点

1.右键“源文件”

LR图像检查点

1.转到“树视图”

LR图像检查点

选择image check”,点击“OK

LR图像检查点

alt,src的值直接取该图片在网页源码中相应的值,点击“确定”

LR图像检查点

自动插入图像检查点函数,点击“保存”

LR图像检查点

19.回放脚本

LR图像检查点


本文转自 32氪 51CTO博客,原文链接:http://blog.51cto.com/10672221/1946776


相关文章:

  • 2021-08-28
  • 2021-11-17
  • 2021-08-09
  • 2022-12-23
  • 2021-10-15
  • 2021-12-10
猜你喜欢
  • 2021-04-14
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
相关资源
相似解决方案