|
@@ -0,0 +1,16 @@
|
|
|
+from hytest import *
|
|
|
+from lib.linkapi import apilink
|
|
|
+class T0001:
|
|
|
+ #测试用例名称
|
|
|
+ name = "app标讯搜索页验证1"
|
|
|
+ #测试步骤
|
|
|
+ def teststeps(self):
|
|
|
+ STEP(1, "访问页面并截取特定区域快照")
|
|
|
+ # url = 'https://app-a1.jianyu360.cn/jy_mobile/search/middle/bidding'
|
|
|
+ url = 'https://www.baidu.com'
|
|
|
+ #样本快照,每一个链接,快照的名字不一样,要修改
|
|
|
+ expected_screenshot = 'images/expected_app_search_screenshot.png'
|
|
|
+ current_screenshot = 'images/current_app_search_screenshot.png'
|
|
|
+ elements=['.s_ipt','.s-hotsearch-title']
|
|
|
+ result=apilink.contrast_snapshot(url,expected_screenshot,current_screenshot,elements,clip=None)
|
|
|
+ CHECK_POINT("检查app标讯搜索页面是否正常打开", result)
|