Test.json 2.9 KB
Newer Older
G
gudehe 已提交
1 2 3 4
{
    "description": "Configuration for mediaLibrary Tests",
    "driver": {
        "type": "JSUnitTest",
J
jiyong_sd 已提交
5
        "test-timeout": "600000",
G
gudehe 已提交
6
        "package": "ohos.acts.multimedia.mediaLibrary",
J
jiyong_sd 已提交
7
        "shell-timeout": "600000"
G
gudehe 已提交
8 9 10 11 12 13 14
    },
    "kits": [
        {
            "type": "PushKit",
            "pre-push": [
            ],
            "push": [
G
gudehe 已提交
15 16
                "./resource/medialibrary/01.jpg ->/storage/media/100/local/files",
                "./resource/medialibrary/01.mp3 ->/storage/media/100/local/files",
J
jiyong_sd 已提交
17
                "./resource/medialibrary/01.mp4 ->/storage/media/100/local/files"
G
gudehe 已提交
18 19 20 21 22
            ]
        },
        {
            "type": "ShellKit",
            "run-command": [
P
panqiangbiao 已提交
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
                "mkdir /storage/media/100/local/files/pictures",
                "cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/pictures/",
                "cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/pictures/",
                "cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/pictures/",
                "mkdir /storage/media/100/local/files/pictures/weixin",
                "cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/pictures/weixin",
                "cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/pictures/weixin",
                "cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/pictures/weixin",
                "mkdir /storage/media/100/local/files/camera",
                "cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/camera/01.jpg",
                "cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/camera/02.jpg",
                "cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/camera/01.mp3",
                "cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/camera/02.mp3",
                "cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/camera/01.mp4",
                "cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/camera/02.mp4",
P
panqiangbiao 已提交
38
                "mkdir /storage/media/100/local/files/File",
J
jiyong_sd 已提交
39 40
                "touch /storage/media/100/local/files/File/test.dat",
                "touch /storage/media/100/local/files/File/test2.dat",
G
gudehe 已提交
41
                "chmod -R 777 /storage/media/100/local/files/*",
P
panqiangbiao 已提交
42 43 44
                "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*",
                "killall com.ohos.medialibrary.MediaScannerAbilityA",
                "aa start  -a MediaScannerAbility -b com.ohos.medialibrary.MediaScannerAbilityA"
G
gudehe 已提交
45 46
            ],
            "teardown-command":[
G
gudehe 已提交
47
                "rm -rf /storage/media/100/local/files/*"
G
gudehe 已提交
48 49 50 51
            ]
        },
        {
            "test-file-name": [
T
tongtongdad 已提交
52
                "ActsMediaLibraryJsTest.hap"
G
gudehe 已提交
53 54 55 56 57
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        }
    ]
G
gudehe 已提交
58
}
P
panqiangbiao 已提交
59