Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
U
ubains-module-test
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
郑晓兵
ubains-module-test
Commits
968d86a2
提交
968d86a2
authored
3月 06, 2025
作者:
陈泽健
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Base函数库中的函数缩略补充函数使用说明,增加相关注释,删除无用函数。
上级
104c178e
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
14 行增加
和
13 行删除
+14
-13
app_base.py
预定系统/Base/app_base.py
+0
-0
base.py
预定系统/Base/base.py
+0
-0
README.md
预定系统/README.md
+3
-2
展厅中控屏.py
预定系统/cases/展厅巡检/01展厅中控屏/展厅中控屏.py
+2
-2
01无纸化2.0同屏巡检.py
预定系统/cases/展厅巡检/03无纸化/01无纸化2.0同屏巡检.py
+5
-5
02无纸化2.0.py
预定系统/cases/展厅巡检/03无纸化/02无纸化2.0.py
+4
-4
没有找到文件。
预定系统/Base/app_base.py
浏览文件 @
968d86a2
此差异已折叠。
点击以展开。
预定系统/Base/base.py
浏览文件 @
968d86a2
此差异已折叠。
点击以展开。
预定系统/README.md
浏览文件 @
968d86a2
...
...
@@ -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
预定系统/cases/展厅巡检/01展厅中控屏/展厅中控屏.py
浏览文件 @
968d86a2
...
...
@@ -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
(
"请检查灯光开启后的监控视频状态是否正常"
)
...
...
预定系统/cases/展厅巡检/03无纸化/01无纸化2.0同屏巡检.py
浏览文件 @
968d86a2
...
...
@@ -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
)
...
...
预定系统/cases/展厅巡检/03无纸化/02无纸化2.0.py
浏览文件 @
968d86a2
...
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论