Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
U
ubains-module-test
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
郑晓兵
ubains-module-test
Commits
6cedec8c
提交
6cedec8c
authored
3月 06, 2025
作者:
陈泽健
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
处理展厅统一平台因会议室变动导致的异常,会议室搜索改为模糊查询,会控界面的终端拖拽元素调整更新。
上级
1e65703c
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
8 行增加
和
74 行删除
+8
-74
README.md
预定系统/README.md
+2
-0
02无纸化2.0.py
预定系统/cases/展厅巡检/03无纸化/02无纸化2.0.py
+1
-1
02无纸化2.0.cpython-310.pyc
预定系统/cases/展厅巡检/03无纸化/__pycache__/02无纸化2.0.cpython-310.pyc
+0
-0
无纸化2.0.cpython-310.pyc
预定系统/cases/展厅巡检/03无纸化/__pycache__/无纸化2.0.cpython-310.pyc
+0
-0
无纸化2.0.py
预定系统/cases/展厅巡检/03无纸化/无纸化2.0.py
+0
-68
01统一平台巡检.py
预定系统/cases/展厅巡检/08统一平台系统/01统一平台巡检.py
+5
-5
01统一平台巡检.cpython-310.pyc
.../cases/展厅巡检/08统一平台系统/__pycache__/01统一平台巡检.cpython-310.pyc
+0
-0
没有找到文件。
预定系统/README.md
浏览文件 @
6cedec8c
...
...
@@ -238,3 +238,4 @@
-
调整讯飞语音转录的流程,登录讯飞语音转录系统后先判断客户端盒子是否在线,如果在线就进行后续的转录文字提取判断。config.json配置文件增加展厅讯飞系统配置项。
63.
2025-03-06
-
补充展厅无纸化中控2.0的同屏巡检代码。补充展厅无纸化2.0的主流程验证代码。
-
处理展厅统一平台因会议室变动导致的异常,会议室搜索改为模糊查询,会控界面的终端拖拽元素调整更新。
\ No newline at end of file
预定系统/cases/展厅巡检/03无纸化/02无纸化2.0.py
浏览文件 @
6cedec8c
...
...
@@ -13,7 +13,7 @@ class Exhibition_hall_NoPaperinspection_000x:
1.cd 预定系统
2.hytest --report_title 无纸化会议操作测试报告 --report_url_prefix http://nat.ubainsyun.com:31133 --tag 无纸化2.0测试
"""
tags
=
[
'无纸化2.0测试'
]
tags
=
[
'无纸化2.0测试'
,
'展厅巡检'
]
def
teststeps
(
self
):
app_drive
=
None
...
...
预定系统/cases/展厅巡检/03无纸化/__pycache__/02无纸化2.0.cpython-310.pyc
浏览文件 @
6cedec8c
No preview for this file type
预定系统/cases/展厅巡检/03无纸化/__pycache__/无纸化2.0.cpython-310.pyc
deleted
100644 → 0
浏览文件 @
1e65703c
File deleted
预定系统/cases/展厅巡检/03无纸化/无纸化2.0.py
deleted
100644 → 0
浏览文件 @
1e65703c
# from time import sleep
# from appium.webdriver.common.appiumby import AppiumBy
#
# from 预定系统.Base.app_base import *
# import logging
#
# # 配置日志记录
# logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
#
# def app_nopaper_test():
# app_drive = None
# try:
# # 腾讯:"com.tencent.wemeet.app" ".StartupActivity"
# app_drive = app_setup_driver("Android", "7.1.2", "127.0.0.1:62001", "com.ubains.local.gviewer", "com.ubains.ub.gview.SplashActivity","192.168.5.158:5555")
# app_drive.implicitly_wait(20) # 设置缺省等待时间
#
# # 使用显式等待来等待元素出现
# logging.info("等待登录页加载...")
# sleep(10)
#
# # 定位【会议签到】按钮元素,并点击按钮
# logging.info("尝试定位【会议签到】按钮元素,并点击按钮")
# meeting_button = app_drive.find_element(AppiumBy.XPATH,
# "/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout[1]/android.widget.Button[2]")
# logging.info("定位【会议签到】成功")
# # 点击【会议签到】按钮
# meeting_button.click()
# logging.info("点击【会议签到】按钮成功")
# sleep(2)
#
# logging.info("定位【会议议题】按钮")
# meeting_issue_button = app_drive.find_element(AppiumBy.XPATH,
# "/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout[3]/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.view.ViewGroup/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/androidx.viewpager.widget.ViewPager/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.Button[2]")
# logging.info("定位【会议议题】按钮成功")
# meeting_issue_button.click()
# logging.info("点击【会议议题】按钮成功")
# sleep(2)
#
# logging.info("定位【议题文件1】元素")
# issue_file_button = app_drive.find_element(AppiumBy.XPATH,
# "/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout[3]/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.view.ViewGroup/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/androidx.viewpager.widget.ViewPager/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/androidx.viewpager.widget.ViewPager/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/androidx.recyclerview.widget.RecyclerView/android.widget.FrameLayout[1]/android.widget.FrameLayout/android.widget.TextView")
# logging.info("定位【议题文件1】元素成功")
# issue_file_button.click()
# logging.info("点击【议题文件1】元素成功")
# sleep(5)
#
# logging.info("定位【查看】按钮元素")
# issue_file = app_drive.find_element(AppiumBy.XPATH,
# "/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout[3]/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.view.ViewGroup/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/androidx.viewpager.widget.ViewPager/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/androidx.viewpager.widget.ViewPager/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/androidx.recyclerview.widget.RecyclerView/android.widget.FrameLayout[2]/android.widget.FrameLayout/android.widget.Button")
# logging.info("定位【查看】按钮元素成功")
# issue_file.click()
# logging.info("点击【查看】按钮元素成功")
# sleep(8)
# app_drive.get_screenshot_as_file(
# r"D:\GithubData\自动化测试\ubains-module-test\预定系统\reports\imgs\Exhibit_Inspect\noPaperless\议题文件查看截屏.png")
#
# except Exception as e:
# logging.error(f"发生错误: {e}", exc_info=True)
#
# finally:
# if app_drive:
# input('**** 按任意键退出..')
# app_drive.quit()
# logging.info("驱动程序已退出。")
#
# if __name__ == '__main__':
# app_nopaper_test()
\ No newline at end of file
预定系统/cases/展厅巡检/08统一平台系统/01统一平台巡检.py
浏览文件 @
6cedec8c
...
...
@@ -32,11 +32,11 @@ class Unified_Platform_0001:
# 选择会议室与参会人
INFO
(
"选择多会议室与参会人"
)
safe_send_keys
((
By
.
XPATH
,
"//input[@placeholder='请输入会议室名称']"
),
'展厅会议
室
'
,
wd
)
safe_send_keys
((
By
.
XPATH
,
"//input[@placeholder='请输入会议室名称']"
),
'展厅会议'
,
wd
)
send_keyboard
((
By
.
XPATH
,
"//input[@placeholder='请输入会议室名称']"
),
wd
)
sleep
(
5
)
safe_click
((
By
.
XPATH
,
"//div[contains(@class,'el-table el-table--fit el-table--enable-row-transition')]//div[contains(@class,'el-table__fixed-header-wrapper')]//span[contains(@class,'el-checkbox__inner')]"
),
wd
)
safe_send_keys
((
By
.
XPATH
,
"//input[@placeholder='请输入会议室名称']"
),
'展厅指挥
中心
'
,
wd
)
safe_send_keys
((
By
.
XPATH
,
"//input[@placeholder='请输入会议室名称']"
),
'展厅指挥'
,
wd
)
send_keyboard
((
By
.
XPATH
,
"//input[contains(@placeholder,'请输入关键字搜索')]"
),
wd
)
sleep
(
5
)
safe_click
((
By
.
XPATH
,
"//div[contains(@class,'el-table el-table--fit el-table--enable-row-transition')]//div[contains(@class,'el-table__fixed-header-wrapper')]//span[contains(@class,'el-checkbox__inner')]"
),
wd
)
...
...
@@ -89,13 +89,13 @@ class Unified_Platform_0001:
,
wd
)
sleep
(
4
)
# 拖拽华为会议室会场
single_click_and_drag
((
By
.
CSS_SELECTOR
,
"body > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(2) > div:nth-child(
3
) > div:nth-child(1) > span:nth-child(2)"
),
(
By
.
CSS_SELECTOR
,
"body > 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(
2
)"
)
single_click_and_drag
((
By
.
CSS_SELECTOR
,
"body > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(2) > div:nth-child(
1
) > div:nth-child(1) > span:nth-child(2)"
),
(
By
.
CSS_SELECTOR
,
"body > 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(
4
)"
)
,
wd
)
sleep
(
4
)
# 拖拽腾讯视频连接器
single_click_and_drag
((
By
.
CSS_SELECTOR
,
"body > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > span:nth-child(2)"
),
(
By
.
CSS_SELECTOR
,
"body > 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)"
)
(
By
.
CSS_SELECTOR
,
"body > 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)"
)
,
wd
)
sleep
(
4
)
SELENIUM_LOG_SCREEN
(
wd
,
"75
%
"
,
"Exhibit_Inspect"
,
"Unified_Platform"
,
"多画面设置"
)
...
...
预定系统/cases/展厅巡检/08统一平台系统/__pycache__/01统一平台巡检.cpython-310.pyc
浏览文件 @
6cedec8c
No preview for this file type
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论