提交 968d86a2 authored 作者: 陈泽健's avatar 陈泽健

Base函数库中的函数缩略补充函数使用说明,增加相关注释,删除无用函数。

上级 104c178e
此差异已折叠。
此差异已折叠。
......@@ -239,4 +239,5 @@
63. 2025-03-06
- 补充展厅无纸化中控2.0的同屏巡检代码。补充展厅无纸化2.0的主流程验证代码。
- 处理展厅统一平台因会议室变动导致的异常,会议室搜索改为模糊查询,会控界面的终端拖拽元素调整更新。
- 处理测试用例JSON读取登录功能测试脚本。
\ No newline at end of file
- 处理测试用例JSON读取登录功能测试脚本。
- Base函数库中的函数缩略补充函数使用说明,增加相关注释,删除无用函数。
\ No newline at end of file
......@@ -64,7 +64,7 @@ class Exhibition_hall_Control_000x:
SELENIUM_LOG_SCREEN(wd, "75%", "Exhibit_Inspect", "Control_Manage", "light_all_off")
# app_drive.get_screenshot_as_file(r"D:\GithubData\自动化\ubains-module-test\预定系统\reports\imgs\Exhibit_Inspect\Control_Manage\light_all_off.png")
# 截图获取当前软件的灯光控制界面
get_screenshot_with_retry(wd,app_drive,"Control_Manage", "light_all_off")
get_screenshot_with_retry(wd,app_drive, "Exhibit_Inspect","Control_Manage", "light_all_off")
# 调用灯光控制函数
light_control(app_drive)
......@@ -73,7 +73,7 @@ class Exhibition_hall_Control_000x:
SELENIUM_LOG_SCREEN(wd, "75%", "Exhibit_Inspect", "Control_Manage", "light_all_on")
# app_drive.get_screenshot_as_file(r"D:\GithubData\自动化\ubains-module-test\预定系统\reports\imgs\Exhibit_Inspect\Control_Manage\light_all_on.png")
# 截图获取当前软件的灯光控制界面
get_screenshot_with_retry(wd,app_drive,"Control_Manage", "light_all_on")
get_screenshot_with_retry(wd,app_drive, "Exhibit_Inspect","Control_Manage", "light_all_on")
# 这是灯光开启后的截图
INFO("请检查灯光开启后的监控视频状态是否正常")
......
......@@ -50,7 +50,7 @@ class same_screen_share_000x:
# 先截取另一台设备的界面做参照物
INFO(f"这是设备B的界面")
# 调用截屏函数
get_screenshot_with_retry(wd, app_drive2, "No_PaperLess", "BeforeShareDeviceB")
get_screenshot_with_retry(wd, app_drive2, "Exhibit_Inspect", "No_PaperLess", "BeforeShareDeviceB")
# 进入【同屏和视频服务】界面
logging.info(f"进入【同屏和视频服务】")
......@@ -79,10 +79,10 @@ class same_screen_share_000x:
# 截取设备A和设备B的同屏画面截屏
INFO(f"这是设备A同屏共享的界面")
get_screenshot_with_retry(wd, app_drive1, "No_PaperLess", "AfterShareDeviceA")
get_screenshot_with_retry(wd, app_drive1, "Exhibit_Inspect","No_PaperLess", "AfterShareDeviceA")
INFO(f"这是设备B同屏共享的界面")
get_screenshot_with_retry(wd, app_drive2, "No_PaperLess", "AfterShareDeviceB")
get_screenshot_with_retry(wd, app_drive2, "Exhibit_Inspect","No_PaperLess", "AfterShareDeviceB")
# 调用图片对比函数判断相似度
# image1_path = r"/预定系统/reports/imgs/Exhibit_Inspect/No_PaperLess/同屏后-无纸化设备A界面截屏.png"
......@@ -112,10 +112,10 @@ class same_screen_share_000x:
click_with_retry(share_quit_button)
# 退出同屏后截屏操作
INFO(f"这是设备A关闭同屏共享的界面")
get_screenshot_with_retry(wd, app_drive1, "No_PaperLess", "QuitShareDeviceA")
get_screenshot_with_retry(wd, app_drive1, "Exhibit_Inspect","No_PaperLess", "QuitShareDeviceA")
INFO(f"这是设备B关闭同屏共享的界面")
get_screenshot_with_retry(wd, app_drive2, "No_PaperLess", "QuitShareDeviceB")
get_screenshot_with_retry(wd, app_drive2, "Exhibit_Inspect","No_PaperLess", "QuitShareDeviceB")
sleep(5)
......
......@@ -28,7 +28,7 @@ class Exhibition_hall_NoPaperinspection_000x:
# 使用显式等待来等待元素出现
logging.info("等待登录页加载...")
sleep(10)
get_screenshot_with_retry(wd,app_drive, "No_PaperLess", "无纸化首页截屏")
get_screenshot_with_retry(wd,app_drive, "Exhibit_Inspect","No_PaperLess", "无纸化首页截屏")
# 定位【会议签到】按钮元素,并点击按钮
logging.info("尝试定位【会议签到】按钮元素,并点击按钮")
......@@ -39,7 +39,7 @@ class Exhibition_hall_NoPaperinspection_000x:
sleep(2)
STEP(2, "无纸化会议信息")
get_screenshot_with_retry(wd,app_drive, "No_PaperLess", "无纸化会议信息截图")
get_screenshot_with_retry(wd,app_drive, "Exhibit_Inspect","No_PaperLess", "无纸化会议信息截图")
# 点击【会议议题】按钮
meeting_issue_button = find_element_with_retry(app_drive, AppiumBy.XPATH,
......@@ -65,7 +65,7 @@ class Exhibition_hall_NoPaperinspection_000x:
STEP(3, "无纸化议题信息")
INFO("请查看议题显示")
get_screenshot_with_retry(wd,app_drive, "No_PaperLess", "议题文件截图")
get_screenshot_with_retry(wd,app_drive, "Exhibit_Inspect","No_PaperLess", "议题文件截图")
for i in range(1,4):
logging.info(f"定位议题文件{i}的【查看】按钮元素")
......@@ -75,7 +75,7 @@ class Exhibition_hall_NoPaperinspection_000x:
sleep(5)
INFO(f"请查看议题文件{i}显示")
get_screenshot_with_retry(wd,app_drive, "No_PaperLess", f"议题文件{i}截图")
get_screenshot_with_retry(wd,app_drive, "Exhibit_Inspect","No_PaperLess", f"议题文件{i}截图")
sleep(2)
app_drive.back()
sleep(2)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论