Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
5828e838
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5828e838
编写于
3月 27, 2023
作者:
Y
yangbo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
媒体库用例修改关冻结和使能命令
Signed-off-by:
N
yangbo
<
yangbo258@huawei.com
>
上级
2b3149b9
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
43 addition
and
12 deletion
+43
-12
multimedia/medialibrary/common.js
multimedia/medialibrary/common.js
+9
-4
multimedia/medialibrary/mediaLibrary_album/Test.json
multimedia/medialibrary/mediaLibrary_album/Test.json
+4
-0
multimedia/medialibrary/mediaLibrary_base/Test.json
multimedia/medialibrary/mediaLibrary_base/Test.json
+2
-2
multimedia/medialibrary/mediaLibrary_favorite/Test.json
multimedia/medialibrary/mediaLibrary_favorite/Test.json
+4
-0
multimedia/medialibrary/mediaLibrary_file/Test.json
multimedia/medialibrary/mediaLibrary_file/Test.json
+4
-0
multimedia/medialibrary/mediaLibrary_fileAsset/Test.json
multimedia/medialibrary/mediaLibrary_fileAsset/Test.json
+2
-3
multimedia/medialibrary/mediaLibrary_fileKey/Test.json
multimedia/medialibrary/mediaLibrary_fileKey/Test.json
+4
-0
multimedia/medialibrary/mediaLibrary_fileResult/Test.json
multimedia/medialibrary/mediaLibrary_fileResult/Test.json
+4
-0
multimedia/medialibrary/mediaLibrary_getThumbnail/Test.json
multimedia/medialibrary/mediaLibrary_getThumbnail/Test.json
+2
-3
multimedia/medialibrary/mediaLibrary_mediafetchoptions/Test.json
...dia/medialibrary/mediaLibrary_mediafetchoptions/Test.json
+4
-0
multimedia/medialibrary/mediaLibrary_trash/Test.json
multimedia/medialibrary/mediaLibrary_trash/Test.json
+4
-0
未找到文件。
multimedia/medialibrary/common.js
浏览文件 @
5828e838
...
...
@@ -236,13 +236,18 @@ const getPermission = async function (name, context) {
context
.
requestPermissionsFromUser
(
permissions
,
(
data
)
=>
{
console
.
info
(
`getPermission requestPermissionsFromUser
${
JSON
.
stringify
(
data
)}
`
);
});
await
sleep
(
200
);
let
driver
=
uitest
.
Driver
.
create
();
await
sleep
(
2
00
);
await
sleep
(
5
00
);
let
button
=
await
driver
.
findComponent
(
uitest
.
ON
.
text
(
"
允许
"
));
await
button
.
click
();
for
(
let
i
=
0
;
i
<
10
;
i
++
)
{
await
sleep
(
500
);
let
button
=
await
driver
.
findComponent
(
uitest
.
ON
.
text
(
"
允许
"
));
if
(
button
!=
undefined
)
{
await
button
.
click
();
break
;
}
}
let
appInfo
=
await
bundle
.
getApplicationInfo
(
name
,
0
,
100
);
let
tokenID
=
appInfo
.
accessTokenId
;
...
...
multimedia/medialibrary/mediaLibrary_album/Test.json
浏览文件 @
5828e838
...
...
@@ -17,6 +17,8 @@
"rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*"
,
"mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios}"
,
"mkdir -p /storage/media/100/local/temp"
,
"param set persist.sys.suspend_manager_enabled 0"
,
"reboot"
,
"param set persist.ace.testmode.enabled 1"
,
"power-shell wakeup"
,
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100"
,
...
...
@@ -54,6 +56,8 @@
"sleep 10"
],
"teardown-command"
:
[
"param set persist.sys.suspend_manager_enabled 1"
,
"reboot"
,
"hilog -b X -D 0xD002B70"
,
"power-shell setmode 600"
]
...
...
multimedia/medialibrary/mediaLibrary_base/Test.json
浏览文件 @
5828e838
...
...
@@ -17,6 +17,8 @@
"rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*"
,
"mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios,Documents}"
,
"mkdir -p /storage/media/100/local/temp"
,
"param set persist.sys.suspend_manager_enabled 0"
,
"reboot"
,
"param set persist.ace.testmode.enabled 1"
,
"power-shell wakeup"
,
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100"
,
...
...
@@ -36,8 +38,6 @@
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"param set persist.ace.testmode.enabled 1"
,
"param set persist.sys.suspend_manager_enabled 0"
,
"mkdir -pv /storage/media/100/local/files/Pictures/{Static,On,Off,OnAlbum,OffAlbum}"
,
"mkdir -pv /storage/media/100/local/files/Videos//{Static,On,Off}"
,
"mkdir -pv /storage/media/100/local/files/Audios/{Static,On,Off}"
,
...
...
multimedia/medialibrary/mediaLibrary_favorite/Test.json
浏览文件 @
5828e838
...
...
@@ -17,6 +17,8 @@
"rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*"
,
"mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios,Documents}"
,
"mkdir -p /storage/media/100/local/temp"
,
"param set persist.sys.suspend_manager_enabled 0"
,
"reboot"
,
"param set persist.ace.testmode.enabled 1"
,
"power-shell wakeup"
,
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100"
,
...
...
@@ -54,6 +56,8 @@
"sleep 10"
],
"teardown-command"
:
[
"param set persist.sys.suspend_manager_enabled 1"
,
"reboot"
,
"hilog -b X -D 0xD002B70"
,
"power-shell setmode 600"
]
...
...
multimedia/medialibrary/mediaLibrary_file/Test.json
浏览文件 @
5828e838
...
...
@@ -17,6 +17,8 @@
"rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*"
,
"mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios,Documents}"
,
"mkdir -p /storage/media/100/local/temp"
,
"param set persist.sys.suspend_manager_enabled 0"
,
"reboot"
,
"param set persist.ace.testmode.enabled 1"
,
"power-shell wakeup"
,
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100"
,
...
...
@@ -58,6 +60,8 @@
"sleep 10"
],
"teardown-command"
:
[
"param set persist.sys.suspend_manager_enabled 1"
,
"reboot"
,
"hilog -b X -D 0xD002B70"
,
"power-shell setmode 600"
]
...
...
multimedia/medialibrary/mediaLibrary_fileAsset/Test.json
浏览文件 @
5828e838
...
...
@@ -17,6 +17,8 @@
"rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*"
,
"mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios,Documents}"
,
"mkdir -p /storage/media/100/local/temp"
,
"param set persist.sys.suspend_manager_enabled 0"
,
"reboot"
,
"param set persist.ace.testmode.enabled 1"
,
"power-shell wakeup"
,
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100"
,
...
...
@@ -36,9 +38,6 @@
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"param set persist.ace.testmode.enabled 1"
,
"param set persist.sys.suspend_manager_enabled 0"
,
"reboot"
,
"mkdir -pv /storage/media/100/local/files/Pictures/{ModifyCb,ModifyPro,RW,R,W,RW_cb,R_cb,W_cb,openClose}"
,
"mkdir -pv /storage/media/100/local/files/Videos/{ModifyCb,ModifyPro,RW,R,W,RW_cb,R_cb,W_cb,openClose}"
,
"mkdir -pv /storage/media/100/local/files/Audios/{ModifyCb,ModifyPro,RW,R,W,RW_cb,R_cb,W_cb,openClose}"
,
...
...
multimedia/medialibrary/mediaLibrary_fileKey/Test.json
浏览文件 @
5828e838
...
...
@@ -17,6 +17,8 @@
"rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*"
,
"mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios,Documents}"
,
"mkdir -p /storage/media/100/local/temp"
,
"param set persist.sys.suspend_manager_enabled 0"
,
"reboot"
,
"param set persist.ace.testmode.enabled 1"
,
"power-shell wakeup"
,
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100"
,
...
...
@@ -50,6 +52,8 @@
"sleep 10"
],
"teardown-command"
:
[
"param set persist.sys.suspend_manager_enabled 1"
,
"reboot"
,
"hilog -b X -D 0xD002B70"
,
"power-shell setmode 600"
]
...
...
multimedia/medialibrary/mediaLibrary_fileResult/Test.json
浏览文件 @
5828e838
...
...
@@ -17,6 +17,8 @@
"rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*"
,
"mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios,Documents}"
,
"mkdir -p /storage/media/100/local/temp"
,
"param set persist.sys.suspend_manager_enabled 0"
,
"reboot"
,
"param set persist.ace.testmode.enabled 1"
,
"power-shell wakeup"
,
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100"
,
...
...
@@ -54,6 +56,8 @@
"sleep 10"
],
"teardown-command"
:
[
"param set persist.sys.suspend_manager_enabled 1"
,
"reboot"
,
"hilog -b X -D 0xD002B70"
,
"power-shell setmode 600"
]
...
...
multimedia/medialibrary/mediaLibrary_getThumbnail/Test.json
浏览文件 @
5828e838
...
...
@@ -17,6 +17,8 @@
"rm -rf /data/app/el2/100/database/com.ohos.medialibrary.MediaLibraryDataA/*"
,
"mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios}"
,
"mkdir -p /storage/media/100/local/temp"
,
"param set persist.sys.suspend_manager_enabled 0"
,
"reboot"
,
"param set persist.ace.testmode.enabled 1"
,
"power-shell wakeup"
,
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100"
,
...
...
@@ -35,9 +37,6 @@
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"param set persist.ace.testmode.enabled 1"
,
"param set persist.sys.suspend_manager_enabled 0"
,
"reboot"
,
"mkdir -pv /storage/media/100/local/files/Pictures/Thumbnail"
,
"mkdir -pv /storage/media/100/local/files/Videos/Thumbnail"
,
"mkdir -pv /storage/media/100/local/files/Audios/Thumbnail"
,
...
...
multimedia/medialibrary/mediaLibrary_mediafetchoptions/Test.json
浏览文件 @
5828e838
...
...
@@ -17,6 +17,8 @@
"rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*"
,
"mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios,Documents}"
,
"mkdir -p /storage/media/100/local/temp"
,
"param set persist.sys.suspend_manager_enabled 0"
,
"reboot"
,
"param set persist.ace.testmode.enabled 1"
,
"power-shell wakeup"
,
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100"
,
...
...
@@ -54,6 +56,8 @@
"sleep 10"
],
"teardown-command"
:
[
"param set persist.sys.suspend_manager_enabled 1"
,
"reboot"
,
"hilog -b X -D 0xD002B70"
,
"power-shell setmode 600"
]
...
...
multimedia/medialibrary/mediaLibrary_trash/Test.json
浏览文件 @
5828e838
...
...
@@ -17,6 +17,8 @@
"rm -rf /data/app/el2/100/database/com.ohos.medialibrary.MediaLibraryDataA/*"
,
"mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios,Documents}"
,
"mkdir -p /storage/media/100/local/temp"
,
"param set persist.sys.suspend_manager_enabled 0"
,
"reboot"
,
"param set persist.ace.testmode.enabled 1"
,
"power-shell wakeup"
,
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100"
,
...
...
@@ -54,6 +56,8 @@
"sleep 10"
],
"teardown-command"
:
[
"param set persist.sys.suspend_manager_enabled 1"
,
"reboot"
,
"hilog -b X -D 0xD002B70"
,
"power-shell setmode 600"
]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录