Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
U
ubains-module-test
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
郑晓兵
ubains-module-test
Commits
debabb98
提交
debabb98
authored
12月 24, 2024
作者:
陈泽健
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
根据实际使用时巡检人员的反馈进行调整,定位会控按钮时增加判断,如定位不到即会控创建失败。调整巡检的执行时间。
上级
838aaf3b
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
85 行增加
和
66 行删除
+85
-66
README.md
预定系统/README.md
+5
-2
展厅会议预约巡检.py
预定系统/cases/展厅巡检/01预定系统巡检/展厅会议预约巡检.py
+73
-57
定时执行功能测试.py
预定系统/定时执行功能测试.py
+5
-5
会议预约.csv
预定系统/测试数据/展厅巡检/会议预约.csv
+2
-2
没有找到文件。
预定系统/README.md
浏览文件 @
debabb98
...
...
@@ -124,4 +124,7 @@
25.
2024-12-23
-
调整富创项目的MQTT消息体,补充参会人数据推送。处理展厅巡检的时间格式问题。
-
补充对于服务器状态的监测,并体现在报告中做判断。
-
补充历史会议模块中会议筛选功能的自动化验证处理。
\ No newline at end of file
-
补充历史会议模块中会议筛选功能的自动化验证处理。
26.
2024-12-24
-
根据实际使用时巡检人员的反馈进行调整,定位会控按钮时增加判断,如定位不到即会控创建失败。
-
调整巡检的执行时间。
\ No newline at end of file
预定系统/cases/展厅巡检/01预定系统巡检/展厅会议预约巡检.py
浏览文件 @
debabb98
...
...
@@ -232,66 +232,82 @@ class Exhibition_hall_inspection_000x:
sleep
(
1
)
SELENIUM_LOG_SCREEN
(
wd
,
"50
%
"
,
"Exhibit_Inspect"
,
"MeetingControl"
,
"查看会控按钮"
)
# 点击【进入会控】
INFO
(
"进入会控"
)
safe_click
((
By
.
XPATH
,
"//span[contains(text(),'进入会控')]"
),
wd
)
sleep
(
5
)
# 切换窗口2,转到会控界面
wd
.
switch_to
.
window
(
wd
.
window_handles
[
1
])
# 判断是否存在会控按钮
control_button
=
WebDriverWait
(
wd
,
60
)
.
until
(
EC
.
visibility_of_element_located
(
"//span[contains(text(),'进入会控')]"
))
INFO
(
"判断是否存在【进入会控】按钮"
)
if
control_button
:
INFO
(
"存在【进入会控】按钮"
)
control_button
.
click
()
sleep
(
5
)
# 切换窗口2,转到会控界面
wd
.
switch_to
.
window
(
wd
.
window_handles
[
1
])
# 会控操作
STEP
(
10
,
"检查会控界面功能"
)
SELENIUM_LOG_SCREEN
(
wd
,
"50
%
"
,
"Exhibit_Inspect"
,
"MeetingControl"
,
"检查会控界面功能"
)
INFO
(
"请检查会控界面功能是否正常"
)
# 添加SMC会场
INFO
(
"添加SMC会场:展厅指挥中心、展厅会议室"
)
safe_click
((
By
.
XPATH
,
"//body/div[@id='app']/div[@id='Energy']/div[@class='main']/div[@class='mainList']/div[@class='main_l']/div[@class='mainFNC']/img[1]"
),
wd
)
safe_send_keys
((
By
.
XPATH
,
"//input[@placeholder='搜索与会方']"
),
"展厅指挥中心"
,
wd
)
sleep
(
1
)
send_keyboard
((
By
.
XPATH
,
"//input[@placeholder='搜索与会方']"
),
wd
)
sleep
(
1
)
safe_click
((
By
.
XPATH
,
"//div[contains(@class,'el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition')]//div[contains(@class,'el-table__header-wrapper')]//span[contains(@class,'el-checkbox__inner')]"
),
wd
)
# 添加展厅指挥中心
INFO
(
"添加腾讯会场"
)
safe_click
((
By
.
XPATH
,
"//div[@id='tab-TencentUser']"
),
wd
)
safe_click
((
By
.
XPATH
,
"//li[normalize-space()='6']"
),
wd
)
sleep
(
1
)
safe_click
((
By
.
XPATH
,
"//li[normalize-space()='8']"
),
wd
)
sleep
(
1
)
safe_click
((
By
.
XPATH
,
"//body[1]/div[1]/div[1]/div[3]/div[1]/div[2]/div[1]/div[1]/div[1]/div[2]/div[3]/div[1]/div[1]/div[1]/div[3]/table[1]/tbody[1]/tr[7]/td[1]/div[1]/label[1]/span[1]/span[1]"
),
wd
)
sleep
(
1
)
SELENIUM_LOG_SCREEN
(
wd
,
"50
%
"
,
"Exhibit_Inspect"
,
"MeetingControl"
,
"添加会场功能"
)
safe_click
((
By
.
XPATH
,
"//div[contains(text(),'确定')]"
),
wd
)
sleep
(
1
)
# 会控操作
STEP
(
10
,
"检查会控界面功能"
)
SELENIUM_LOG_SCREEN
(
wd
,
"50
%
"
,
"Exhibit_Inspect"
,
"MeetingControl"
,
"检查会控界面功能"
)
INFO
(
"请检查会控界面功能是否正常"
)
# 一键呼叫会场
# safe_click((By.XPATH,"//body/div[@id='app']/div[@id='Energy']/div[contains(@class,'main')]/div[contains(@class,'mainList')]/div[contains(@class,'main_l')]/div[contains(@class,'mainFNC')]/img[1]"),wd)
# 添加SMC会场
INFO
(
"添加SMC会场:展厅指挥中心、展厅会议室"
)
safe_click
((
By
.
XPATH
,
"//body/div[@id='app']/div[@id='Energy']/div[@class='main']/div[@class='mainList']/div[@class='main_l']/div[@class='mainFNC']/img[1]"
),
wd
)
safe_send_keys
((
By
.
XPATH
,
"//input[@placeholder='搜索与会方']"
),
"展厅指挥中心"
,
wd
)
sleep
(
1
)
send_keyboard
((
By
.
XPATH
,
"//input[@placeholder='搜索与会方']"
),
wd
)
sleep
(
1
)
safe_click
((
By
.
XPATH
,
"//div[contains(@class,'el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition')]//div[contains(@class,'el-table__header-wrapper')]//span[contains(@class,'el-checkbox__inner')]"
),
wd
)
# 选择分屏功能
INFO
(
"选择分屏功能"
)
sleep
(
10
)
safe_click
((
By
.
XPATH
,
"//li[4]//img[1]"
),
wd
)
SELENIUM_LOG_SCREEN
(
wd
,
"50
%
"
,
"Exhibit_Inspect"
,
"MeetingControl"
,
"分屏功能"
)
# 添加展厅指挥中心
INFO
(
"添加腾讯会场"
)
safe_click
((
By
.
XPATH
,
"//div[@id='tab-TencentUser']"
),
wd
)
safe_click
((
By
.
XPATH
,
"//li[normalize-space()='6']"
),
wd
)
sleep
(
1
)
safe_click
((
By
.
XPATH
,
"//li[normalize-space()='8']"
),
wd
)
sleep
(
1
)
safe_click
((
By
.
XPATH
,
"//body[1]/div[1]/div[1]/div[3]/div[1]/div[2]/div[1]/div[1]/div[1]/div[2]/div[3]/div[1]/div[1]/div[1]/div[3]/table[1]/tbody[1]/tr[7]/td[1]/div[1]/label[1]/span[1]/span[1]"
),
wd
)
sleep
(
1
)
SELENIUM_LOG_SCREEN
(
wd
,
"50
%
"
,
"Exhibit_Inspect"
,
"MeetingControl"
,
"添加会场功能"
)
safe_click
((
By
.
XPATH
,
"//div[contains(text(),'确定')]"
),
wd
)
sleep
(
1
)
# 一键呼叫会场
# safe_click((By.XPATH,"//body/div[@id='app']/div[@id='Energy']/div[contains(@class,'main')]/div[contains(@class,'mainList')]/div[contains(@class,'main_l')]/div[contains(@class,'mainFNC')]/img[1]"),wd)
# 选择分屏功能
INFO
(
"选择分屏功能"
)
sleep
(
10
)
safe_click
((
By
.
XPATH
,
"//li[4]//img[1]"
),
wd
)
SELENIUM_LOG_SCREEN
(
wd
,
"50
%
"
,
"Exhibit_Inspect"
,
"MeetingControl"
,
"分屏功能"
)
# 将左侧会场拖拽到右侧画面进行播放
INFO
(
"将左侧会场拖拽到右侧画面进行播放"
)
single_click_and_drag
((
By
.
XPATH
,
"//span[contains(text(),'展厅会议室')]"
),
(
By
.
XPATH
,
"(//div)[118]"
),
wd
)
wd
.
refresh
()
sleep
(
2
)
single_click_and_drag
((
By
.
XPATH
,
"//span[contains(text(),'展厅指挥中心')]"
),
(
By
.
XPATH
,
"(//div)[119]"
),
wd
)
# 将左侧会场拖拽到右侧画面进行播放
INFO
(
"将左侧会场拖拽到右侧画面进行播放"
)
single_click_and_drag
((
By
.
XPATH
,
"//span[contains(text(),'展厅会议室')]"
),
(
By
.
XPATH
,
"(//div)[118]"
)
,
wd
)
wd
.
refresh
()
sleep
(
2
)
single_click_and_drag
((
By
.
XPATH
,
"//span[contains(text(),'展厅指挥中心')]"
),
(
By
.
XPATH
,
"(//div)[119]"
)
,
wd
)
single_click_and_drag
((
By
.
CSS_SELECTOR
,
"body > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(3) > table:nth-child(1) > tbody:nth-child(2) > tr:nth-child(1) > td:nth-child(2) > div:nth-child(1) > span:nth-child(1)"
),
(
By
.
XPATH
,
"(//div)[120]"
),
wd
)
sleep
(
4
)
SELENIUM_LOG_SCREEN
(
wd
,
"50
%
"
,
"Exhibit_Inspect"
,
"MeetingControl"
,
"会场画面控制"
)
single_click_and_drag
((
By
.
CSS_SELECTOR
,
"body > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(3) > table:nth-child(1) > tbody:nth-child(2) > tr:nth-child(1) > td:nth-child(2) > div:nth-child(1) > span:nth-child(1)"
),(
By
.
XPATH
,
"(//div)[120]"
),
wd
)
sleep
(
4
)
SELENIUM_LOG_SCREEN
(
wd
,
"50
%
"
,
"Exhibit_Inspect"
,
"MeetingControl"
,
"会场画面控制"
)
INFO
(
"使用基础会控功能:禁用摄像头、麦克风"
)
safe_click
((
By
.
XPATH
,
"//span[contains(text(),'禁用摄像头')]"
),
wd
)
INFO
(
"使用基础会控功能:禁用摄像头、麦克风"
)
safe_click
((
By
.
XPATH
,
"//span[contains(text(),'禁用摄像头')]"
),
wd
)
STEP
(
11
,
"检查会控界面功能"
)
INFO
(
"开启指挥中心麦克风"
)
sleep
(
2
)
safe_click
((
By
.
XPATH
,
"(//img[@title='解除静音'])[3]"
),
wd
)
SELENIUM_LOG_SCREEN
(
wd
,
"50
%
"
,
"Exhibit_Inspect"
,
"MeetingControl"
,
"会场画面控制"
)
STEP
(
11
,
"检查会控界面功能"
)
INFO
(
"开启指挥中心麦克风"
)
sleep
(
2
)
safe_click
((
By
.
XPATH
,
"(//img[@title='解除静音'])[3]"
),
wd
)
SELENIUM_LOG_SCREEN
(
wd
,
"50
%
"
,
"Exhibit_Inspect"
,
"MeetingControl"
,
"会场画面控制"
)
\ No newline at end of file
else
:
INFO
(
"不存在【进入会控】按钮,请联系管理员进行排查!!!"
)
CHECK_POINT
(
"检查是否存在会控按钮"
,
False
)
\ No newline at end of file
预定系统/定时执行功能测试.py
浏览文件 @
debabb98
...
...
@@ -70,11 +70,11 @@ start_workers(3)
# 每天早上07:50执行后台系统设置功能测试
schedule
.
every
()
.
saturday
.
at
(
"12:00"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"预定系统_后台管理功能_测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:31133"
,
test_case
=
"后台管理功能"
,
ding_type
=
"标准版巡检"
)
schedule
.
every
()
.
monday
.
at
(
"07:
5
5"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:31133"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
tuesday
.
at
(
"07:
5
5"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:31133"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
wednesday
.
at
(
"07:
5
5"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:31133"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
thursday
.
at
(
"07:
5
5"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:31133"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
friday
.
at
(
"07:
5
5"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:31133"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
monday
.
at
(
"07:
0
5"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:31133"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
tuesday
.
at
(
"07:
0
5"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:31133"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
wednesday
.
at
(
"07:
0
5"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:31133"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
thursday
.
at
(
"07:
0
5"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:31133"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
friday
.
at
(
"07:
0
5"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:31133"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
# schedule.every().day.at("08:25").do(run_task, run_automation_test, report_title="展厅巡检_腾讯终端入会测试报告", report_url_prefix="http://nat.ubainsyun.com:31133", test_case="展厅巡检_腾讯会议")
...
...
预定系统/测试数据/展厅巡检/会议预约.csv
浏览文件 @
debabb98
name,conference_name,message_name,book_type,issue_name,book_start_time,book_end_time,message_notification,check_text
展厅巡检_001,展厅会议室,展厅巡检测试,普通会议,议题1,08:00,08:45,开会前一天提醒,预定成功
\ No newline at end of file
展厅巡检_001,展厅会议室,展厅巡检测试,普通会议,议题1,08:15,08:30,开会前一天提醒,预定成功
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论