提交 5828e838 编写于 作者: Y yangbo

媒体库用例修改关冻结和使能命令

Signed-off-by: Nyangbo <yangbo258@huawei.com>
上级 2b3149b9
......@@ -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(200);
await sleep(500);
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;
......
......@@ -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"
]
......
......@@ -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}",
......
......@@ -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"
]
......
......@@ -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"
]
......
......@@ -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}",
......
......@@ -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"
]
......
......@@ -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"
]
......
......@@ -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",
......
......@@ -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"
]
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册