Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Applications Sample Wifi Iot
提交
4c80edcf
A
Applications Sample Wifi Iot
项目概览
OpenHarmony
/
Applications Sample Wifi Iot
大约 1 年 前同步成功
通知
3
Star
24
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
Applications Sample Wifi Iot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4c80edcf
编写于
5月 07, 2022
作者:
L
lnlan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
所有用例添加日志
Signed-off-by:
N
lnlan
<
lanleinan3@huawei.com
>
上级
6b9f5118
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
22 addition
and
14 deletion
+22
-14
screenshot/rk_master/app_capture_screen_test_config.json
screenshot/rk_master/app_capture_screen_test_config.json
+17
-13
screenshot/rk_master/capturescreentest.py
screenshot/rk_master/capturescreentest.py
+5
-1
未找到文件。
screenshot/rk_master/app_capture_screen_test_config.json
浏览文件 @
4c80edcf
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
"permisson_no-x-y"
:[
241
,
690
],
"permisson_no-x-y"
:[
241
,
690
],
"shot_cmd"
:[
""
],
"shot_cmd"
:[
""
],
"remount"
:[
"hdc_std shell mount -o rw,remount /"
],
"remount"
:[
"hdc_std shell mount -o rw,remount /"
],
"stop_hilog"
:[
"hdc_std shell hilog -w stop"
],
"cmp_cmd-level"
:[
""
,
443200
]
"cmp_cmd-level"
:[
""
,
443200
]
},
},
{
{
...
@@ -23,7 +24,8 @@
...
@@ -23,7 +24,8 @@
"app_name"
:
"wifi_connect"
,
"app_name"
:
"wifi_connect"
,
"entry"
:
""
,
"entry"
:
""
,
"check_ping_baidu"
:[
"hdc_std shell ping www.baidu.com"
,
"64 bytes from"
],
"check_ping_baidu"
:[
"hdc_std shell ping www.baidu.com"
,
"64 bytes from"
],
"all_actions"
:
[[
2
,
"connect_wifi"
],
[
2
,
"check_ping_baidu"
]]
"compress_log"
:[
"hdc_std shell
\"
cd /data/log/hilog && tar -cf wifi_connect_log.tar *
\"
"
],
"all_actions"
:
[[
2
,
"connect_wifi"
],
[
2
,
"check_ping_baidu"
],
[
2
,
"stop_hilog"
],
[
2
,
"compress_log"
],
[
2
,
"recv_log-file"
,
"/data/log/hilog/wifi_connect_log.tar"
]]
},
},
{
{
"app_name"
:
"launcher"
,
"app_name"
:
"launcher"
,
...
@@ -45,45 +47,47 @@
...
@@ -45,45 +47,47 @@
"executefile1"
:[
"hdc_std shell ./data/hdf_audio_hdi_server_function_test"
],
"executefile1"
:[
"hdc_std shell ./data/hdf_audio_hdi_server_function_test"
],
"audio_render_test"
:[
"hdc_std shell
\"
cd /data && ./hdf_audio_hdi_server_function_test --gtest_filter=AudioServerFunctionTest.SUB_Audio_Function_Render_Test_* && rm *.xml
\"
"
,
"[ PASSED ] 12 tests."
],
"audio_render_test"
:[
"hdc_std shell
\"
cd /data && ./hdf_audio_hdi_server_function_test --gtest_filter=AudioServerFunctionTest.SUB_Audio_Function_Render_Test_* && rm *.xml
\"
"
,
"[ PASSED ] 12 tests."
],
"audio_capture_test"
:[
"hdc_std shell
\"
cd /data && ./hdf_audio_hdi_server_function_test --gtest_filter=AudioServerFunctionTest.SUB_Audio_Function_Capture_Test_* && rm *.xml
\"
"
,
"[ PASSED ] 10 test."
],
"audio_capture_test"
:[
"hdc_std shell
\"
cd /data && ./hdf_audio_hdi_server_function_test --gtest_filter=AudioServerFunctionTest.SUB_Audio_Function_Capture_Test_* && rm *.xml
\"
"
,
"[ PASSED ] 10 test."
],
"compress_log"
:[
"hdc_std shell
\"
cd /data/log/hilog && tar -cf audio_render_log.tar *
\"
"
],
"all_actions"
:
[
"all_actions"
:
[
[
2
,
"remount"
],
[
2
,
"sendfile1"
],
[
2
,
"sendfile2"
],
[
2
,
"chmodfile1"
],
[
2
,
"remount"
],
[
2
,
"sendfile1"
],
[
2
,
"sendfile2"
],
[
2
,
"chmodfile1"
],
[
5
,
"audio_render_test"
]
[
5
,
"audio_render_test"
]
,
[
2
,
"stop_hilog"
],
[
2
,
"compress_log"
],
[
2
,
"recv_log-file"
,
"/data/log/hilog/audio_render_log.tar"
]
]
]
},
},
{
{
"app_name"
:
"camera"
,
"app_name"
:
"camera"
,
"entry"
:
""
,
"entry"
:
"aa start -a com.ohos.camera.MainAbility -b com.ohos.camera"
,
"start_hilog"
:[
"hdc_std shell
\"
hilog -r && hilog -w start -f camera_log -l 400000000 -m none
\"
"
],
"start_camera"
:[
"hdc_std shell aa start -a com.ohos.camera.MainAbility -b com.ohos.camera"
],
"stop_hilog"
:[
"hdc_std shell hilog -w stop"
],
"check_result"
:[
"hdc_std shell
\"
cd /data/log/hilog && grep -nr PreviewOutputCallback
\"
"
,
""
],
"check_result"
:[
"hdc_std shell
\"
cd /data/log/hilog && grep -nr PreviewOutputCallback
\"
"
,
""
],
"compress_log"
:[
"hdc_std shell
\"
cd /data/log/hilog && tar -cf camera_log.tar
camera_
*
\"
"
],
"compress_log"
:[
"hdc_std shell
\"
cd /data/log/hilog && tar -cf camera_log.tar *
\"
"
],
"clear_log"
:[
"hdc_std shell rm /data/log/hilog/*"
],
"clear_log"
:[
"hdc_std shell rm /data/log/hilog/*"
],
"all_actions"
:
[
"all_actions"
:
[
[
2
,
"
clear_log"
],
[
1
,
"start_hilog"
],
[
4
,
"start_camera"
],
[
2
,
"
permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
4
,
"permisson_ok-x-y"
],
[
2
,
"stop_hilog"
],
[
3
,
"check_result"
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
],
[
2
,
"compress_log"
],
[
2
,
"recv_log-file"
,
"/data/log/hilog/camera_log.tar"
],
[
2
,
"clear_log"
]
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
4
,
"permisson_ok-x-y"
],
[
2
,
"stop_hilog"
],
[
3
,
"check_result"
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
],
[
2
,
"compress_log"
],
[
2
,
"recv_log-file"
,
"/data/log/hilog/camera_log.tar"
],
[
2
,
"clear_log"
]
]
]
},
},
{
{
"app_name"
:
"settings_keyboard"
,
"app_name"
:
"settings_keyboard"
,
"entry"
:
"aa start -a com.ohos.settings.MainAbility -b com.ohos.settings"
,
"entry"
:
"aa start -a com.ohos.settings.MainAbility -b com.ohos.settings"
,
"compress_log"
:[
"hdc_std shell
\"
cd /data/log/hilog && tar -cf settings_keyboard_log.tar *
\"
"
],
"all_actions"
:
[
"all_actions"
:
[
[
3
,
"shot_cmd"
,
"settings"
],
[
3
,
"cmp_cmd-level"
],
[
3
,
400
,
120
],
[
3
,
400
,
120
],
[
20
,
400
,
80
],
[
3
,
400
,
80
],
[
3
,
"shot_cmd"
,
"settings"
],
[
3
,
"cmp_cmd-level"
],
[
3
,
400
,
120
],
[
3
,
400
,
120
],
[
20
,
400
,
80
],
[
3
,
400
,
80
],
[
3
,
"shot_cmd"
,
"keyboard"
],
[
3
,
"recent-x-y"
],
[
3
,
"recent_del-x-y"
],
[
3
,
"recent-x-y"
],
[
3
,
"recent_del-x-y"
],
[
3
,
"cmp_cmd-level"
,
200000
]
[
3
,
"shot_cmd"
,
"keyboard"
],
[
3
,
"recent-x-y"
],
[
3
,
"recent_del-x-y"
],
[
3
,
"recent-x-y"
],
[
3
,
"recent_del-x-y"
],
[
3
,
"cmp_cmd-level"
,
200000
]
,
[
2
,
"stop_hilog"
],
[
2
,
"compress_log"
],
[
2
,
"recv_log-file"
,
"/data/log/hilog/settings_keyboard_log.tar"
]
]
]
},
},
{
{
"app_name"
:
"photos"
,
"app_name"
:
"photos"
,
"entry"
:
"aa start -a com.ohos.photos.MainAbility -b com.ohos.photos"
,
"entry"
:
"aa start -a com.ohos.photos.MainAbility -b com.ohos.photos"
,
"all_actions"
:
[[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"shot_cmd"
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
],
[
2
,
"cmp_cmd-level"
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
]]
"compress_log"
:[
"hdc_std shell
\"
cd /data/log/hilog && tar -cf photos_log.tar *
\"
"
],
"all_actions"
:
[[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"shot_cmd"
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
],
[
2
,
"cmp_cmd-level"
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
],
[
2
,
"stop_hilog"
],
[
2
,
"compress_log"
],
[
2
,
"recv_log-file"
,
"/data/log/hilog/photos_log.tar"
]]
},
},
{
{
"app_name"
:
"distributedcalc"
,
"app_name"
:
"distributedcalc"
,
"entry"
:
"aa start -a com.example.distributedcalc.default -b com.example.distributedcalc"
,
"entry"
:
"aa start -a com.example.distributedcalc.default -b com.example.distributedcalc"
,
"all_actions"
:
[[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"shot_cmd"
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
],
[
2
,
"cmp_cmd-level"
,
3686400
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
]]
"compress_log"
:[
"hdc_std shell
\"
cd /data/log/hilog && tar -cf calc_log.tar *
\"
"
],
"all_actions"
:
[[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"shot_cmd"
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
],
[
2
,
"cmp_cmd-level"
,
3686400
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
],
[
2
,
"stop_hilog"
],
[
2
,
"compress_log"
],
[
2
,
"recv_log-file"
,
"/data/log/hilog/calc_log.tar"
]]
},
},
{
{
"app_name"
:
"note"
,
"app_name"
:
"note"
,
"entry"
:
"aa start -a com.ohos.note.MainAbility -b com.ohos.note"
,
"entry"
:
"aa start -a com.ohos.note.MainAbility -b com.ohos.note"
,
"all_actions"
:
[[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"shot_cmd"
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
],
[
2
,
"cmp_cmd-level"
]]
"compress_log"
:[
"hdc_std shell
\"
cd /data/log/hilog && tar -cf note_log.tar *
\"
"
],
"all_actions"
:
[[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"shot_cmd"
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
],
[
2
,
"cmp_cmd-level"
],
[
2
,
"stop_hilog"
],
[
2
,
"compress_log"
],
[
2
,
"recv_log-file"
,
"/data/log/hilog/note_log.tar"
]]
}
}
]
]
screenshot/rk_master/capturescreentest.py
浏览文件 @
4c80edcf
...
@@ -114,7 +114,9 @@ if __name__ == "__main__":
...
@@ -114,7 +114,9 @@ if __name__ == "__main__":
home_cmd
=
"hdc_std shell uinput -M -m {} {} -c 0"
.
format
(
global_pos
[
'home-x-y'
][
0
],
global_pos
[
'home-x-y'
][
1
])
home_cmd
=
"hdc_std shell uinput -M -m {} {} -c 0"
.
format
(
global_pos
[
'home-x-y'
][
0
],
global_pos
[
'home-x-y'
][
1
])
recent_del_cmd
=
"hdc_std shell uinput -M -m {} {} -c 0"
.
format
(
global_pos
[
'recent_del-x-y'
][
0
],
global_pos
[
'recent_del-x-y'
][
1
])
recent_del_cmd
=
"hdc_std shell uinput -M -m {} {} -c 0"
.
format
(
global_pos
[
'recent_del-x-y'
][
0
],
global_pos
[
'recent_del-x-y'
][
1
])
os
.
system
(
"hdc_std start"
)
os
.
system
(
"hdc_std start"
)
EnterCmd
(
"hdc_std list targets"
,
1
)
EnterCmd
(
"hdc_std shell hilog -w stop"
,
1
)
EnterCmd
(
"hdc_std shell
\"
cd /data/log/hilog && tar -cf system_start_log.tar *
\"
"
,
1
)
EnterCmd
(
"hdc_std file recv /data/log/hilog/system_start_log.tar {}"
.
format
(
args
.
save_path
),
1
)
EnterCmd
(
"hdc_std list targets"
,
1
)
EnterCmd
(
"hdc_std list targets"
,
1
)
EnterCmd
(
"hdc_std list targets"
,
1
)
EnterCmd
(
"hdc_std list targets"
,
1
)
EnterCmd
(
"hdc_std shell rm -rf /data/screen_test/train_set"
)
EnterCmd
(
"hdc_std shell rm -rf /data/screen_test/train_set"
)
...
@@ -148,6 +150,7 @@ if __name__ == "__main__":
...
@@ -148,6 +150,7 @@ if __name__ == "__main__":
with
open
(
os
.
path
.
join
(
args
.
save_path
,
'shot_test.bat'
),
mode
=
'a'
,
encoding
=
'utf-8'
)
as
cmd_file
:
with
open
(
os
.
path
.
join
(
args
.
save_path
,
'shot_test.bat'
),
mode
=
'a'
,
encoding
=
'utf-8'
)
as
cmd_file
:
cmd_file
.
write
(
"
\n
::::::Last failed, Try again
\n
"
)
cmd_file
.
write
(
"
\n
::::::Last failed, Try again
\n
"
)
cmd_file
.
close
()
cmd_file
.
close
()
EnterCmd
(
"hdc_std shell
\"
rm /data/log/hilog/*;hilog -r;hilog -w start -l 400000000 -m none
\"
"
,
1
)
if
single_app
[
'entry'
]
!=
""
:
if
single_app
[
'entry'
]
!=
""
:
EnterCmd
(
call_app_cmd
,
5
)
EnterCmd
(
call_app_cmd
,
5
)
MyPrint
(
single_app
[
'all_actions'
])
MyPrint
(
single_app
[
'all_actions'
])
...
@@ -231,6 +234,7 @@ if __name__ == "__main__":
...
@@ -231,6 +234,7 @@ if __name__ == "__main__":
testcnt
-=
1
testcnt
-=
1
else
:
else
:
testcnt
=
0
testcnt
=
0
EnterCmd
(
"hdc_std shell hilog -w stop"
,
1
)
if
len
(
fail_idx_list
)
!=
0
:
if
len
(
fail_idx_list
)
!=
0
:
MyPrint
(
"ERROR: {}, these testcase is failed"
.
format
(
fail_idx_list
))
MyPrint
(
"ERROR: {}, these testcase is failed"
.
format
(
fail_idx_list
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录