liumiaomiao 5 hónapja
szülő
commit
80ac5d2304

+ 0 - 49
cases/pc/未登录功能/链接验证/check_link_image_comparison.py

@@ -1,49 +0,0 @@
-# from hytest import *
-# from lib.linkapi import apilink
-# class T0001:
-#     #测试用例名称
-#     tags=['标讯搜索页验证']
-#     url1 = 'https://app-a1.jianyu360.cn/jy_mobile/search/middle/bidding'
-#     # 测试用例1
-#     # 样本快照,每一个链接,快照的名字不一样,要修改
-#     expected_app_search_screenshot = 'images/expected_app_search_screenshot.png'
-#     current_app_search_screenshot = 'images/current_app_search_screenshot.png'
-#
-#     # 定义要截取的区域
-#     clip1 = {
-#         'x': 0,
-#         'y': 0,
-#         'width': 1280,  # 根据你的截图实际宽度设置
-#         'height': 600  # 根据你的截图实际高度设置
-#     }
-#     # 测试用例2
-#     url2 = 'https://wx.jianyu360.cn/jy_mobile/search/result/bidding'
-#     # 样本快照,每一个链接,快照的名字不一样,要修改
-#     expected_wx_search_screenshot = 'images/expected_wx_search_screenshot.png'
-#     current_wx_search_screenshot = 'images/current_wx_search_screenshot.png'
-#
-#     # 定义要截取的区域
-#     clip2 = {
-#         'x': 0,
-#         'y': 0,
-#         'width': 1280,  # 根据你的截图实际宽度设置
-#         'height': 600  # 根据你的截图实际高度设置
-#     }
-#     ddt_cases = [
-#         {
-#             'name': 'app标讯搜索页面能否正常打开',
-#             'para': [url1, expected_app_search_screenshot, current_app_search_screenshot, clip1]
-#         },
-#         {
-#             'name': '微信标讯搜索页面能否正常打开',
-#             'para': [url2, expected_wx_search_screenshot, current_wx_search_screenshot, clip2]
-#         }
-#     ]
-#
-#     #测试步骤
-#
-#     def teststeps(self):
-#         url,expected_screenshot,current_screenshot,clip= self.para
-#         result=apilink.contrast_snapshot(url,expected_screenshot,current_screenshot,clip)
-#
-#         CHECK_POINT("检查标讯搜索页面是否正常打开", result)

+ 0 - 16
cases/pc/未登录功能/链接验证/check_link_search.py

@@ -1,16 +0,0 @@
-# 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)