Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
U
ubains-module-test
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
郑晓兵
ubains-module-test
Commits
acd876b6
提交
acd876b6
authored
6月 16, 2025
作者:
陈泽健
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
代码提交
上级
6c6d1026
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
13 行增加
和
17 行删除
+13
-17
app_base.py
预定系统/Base/app_base.py
+3
-3
ngrok.cfg
预定系统/ngrok/ngrok-自动化运行虚拟机/ngrok.cfg
+2
-6
定时执行功能测试.py
预定系统/定时执行功能测试.py
+8
-8
没有找到文件。
预定系统/Base/app_base.py
浏览文件 @
acd876b6
...
@@ -927,18 +927,18 @@ def app_quit(device_ip, port=5555, adb_path=r"C:\Program Files\androidsdk\androi
...
@@ -927,18 +927,18 @@ def app_quit(device_ip, port=5555, adb_path=r"C:\Program Files\androidsdk\androi
INFO
(
f
"ADB断开命令返回码: {disconnect_result.returncode}"
)
INFO
(
f
"ADB断开命令返回码: {disconnect_result.returncode}"
)
INFO
(
f
"ADB断开命令输出: {disconnect_result.stdout.strip()}"
)
INFO
(
f
"ADB断开命令输出: {disconnect_result.stdout.strip()}"
)
if
disconnect_result
.
stderr
.
strip
():
if
disconnect_result
.
stderr
.
strip
():
WARN
(
f
"ADB断开错误输出: {disconnect_result.stderr.strip()}"
)
logging
.
warning
(
f
"ADB断开错误输出: {disconnect_result.stderr.strip()}"
)
# 验证是否断开成功
# 验证是否断开成功
if
"disconnected"
in
disconnect_result
.
stdout
:
if
"disconnected"
in
disconnect_result
.
stdout
:
INFO
(
f
"ADB 连接已成功断开: {device_address}"
)
INFO
(
f
"ADB 连接已成功断开: {device_address}"
)
return
True
return
True
else
:
else
:
WARN
(
f
"ADB 连接断开失败: {device_address}"
)
logging
.
warning
(
f
"ADB 连接断开失败: {device_address}"
)
return
False
return
False
except
Exception
as
e
:
except
Exception
as
e
:
ERROR
(
f
"断开ADB连接时发生错误: {str(e)}"
,
exc_info
=
True
)
logging
.
error
(
f
"断开ADB连接时发生错误: {str(e)}"
,
exc_info
=
True
)
return
False
return
False
...
...
预定系统/ngrok/ngrok-自动化运行虚拟机/ngrok.cfg
浏览文件 @
acd876b6
...
@@ -8,8 +8,4 @@ tunnels:
...
@@ -8,8 +8,4 @@ tunnels:
nat2:
nat2:
remote_port: 31135
remote_port: 31135
proto:
proto:
tcp: "127.0.0.1:81"
tcp: "127.0.0.1:81"
nat3:
\ No newline at end of file
remote_port: 31136
proto:
tcp: "127.0.0.1:82"
\ No newline at end of file
预定系统/定时执行功能测试.py
浏览文件 @
acd876b6
...
@@ -74,14 +74,14 @@ schedule.every().day.at("12:00").do(run_task, run_automation_test, report_title=
...
@@ -74,14 +74,14 @@ schedule.every().day.at("12:00").do(run_task, run_automation_test, report_title=
schedule
.
every
()
.
day
.
at
(
"10:00"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"兰州中石化项目测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:31135"
,
test_case
=
"兰州中石化项目"
,
ding_type
=
"标准版巡检"
)
schedule
.
every
()
.
day
.
at
(
"10:00"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"兰州中石化项目测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:31135"
,
test_case
=
"兰州中石化项目"
,
ding_type
=
"标准版巡检"
)
# 定时执行展厅巡检任务
# 定时执行展厅巡检任务
# schedule.every().day.at("07:45").do(run_task, run_automation_test, report_title="展厅巡检测试报告", report_url_prefix="http://nat.ubainsyun.com:3113
3
", test_case="展厅巡检", ding_type="展厅巡检")
# schedule.every().day.at("07:45").do(run_task, run_automation_test, report_title="展厅巡检测试报告", report_url_prefix="http://nat.ubainsyun.com:3113
6
", test_case="展厅巡检", ding_type="展厅巡检")
schedule
.
every
()
.
monday
.
at
(
"07:42"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:3113
3
"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
monday
.
at
(
"07:42"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:3113
6
"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
thursday
.
at
(
"07:42"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:3113
3
"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
thursday
.
at
(
"07:42"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:3113
6
"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
wednesday
.
at
(
"07:42"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:3113
3
"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
wednesday
.
at
(
"07:42"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:3113
6
"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
tuesday
.
at
(
"07:42"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:3113
3
"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
tuesday
.
at
(
"07:42"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:3113
6
"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
friday
.
at
(
"07:42"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:3113
3
"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
schedule
.
every
()
.
friday
.
at
(
"07:42"
)
.
do
(
run_task
,
run_automation_test
,
report_title
=
"展厅巡检测试报告"
,
report_url_prefix
=
"http://nat.ubainsyun.com:3113
6
"
,
test_case
=
"展厅巡检"
,
ding_type
=
"展厅巡检"
)
# schedule.every().saturday.at("07:42").do(run_task, run_automation_test, report_title="展厅巡检测试报告", report_url_prefix="http://nat.ubainsyun.com:3113
3
", test_case="展厅巡检", ding_type="展厅巡检")
# schedule.every().saturday.at("07:42").do(run_task, run_automation_test, report_title="展厅巡检测试报告", report_url_prefix="http://nat.ubainsyun.com:3113
6
", test_case="展厅巡检", ding_type="展厅巡检")
# schedule.every().sunday.at("07:42").do(run_task, run_automation_test, report_title="展厅巡检测试报告", report_url_prefix="http://nat.ubainsyun.com:3113
3
", test_case="展厅巡检", ding_type="展厅巡检")
# schedule.every().sunday.at("07:42").do(run_task, run_automation_test, report_title="展厅巡检测试报告", report_url_prefix="http://nat.ubainsyun.com:3113
6
", test_case="展厅巡检", ding_type="展厅巡检")
# 调试使用
# 调试使用
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论