Test.json 2.7 KB
Newer Older
W
weiyufeng 已提交
1 2 3
{
    "description": "Configuration for mediaLibrary Tests",
    "driver": {
C
caochuan 已提交
4 5 6 7 8 9
        "type": "OHJSUnitTest",
        "test-timeout": "180000",
        "bundle-name": "ohos.acts.multimedia.mediaLibrary",
        "module-name": "phone",
        "shell-timeout": "600000",
        "testcase-timeout": 70000
W
weiyufeng 已提交
10 11 12 13
    },
    "kits": [
        {
            "type": "ShellKit",
C
caochuan 已提交
14
            "pre-push": [],
W
weiyufeng 已提交
15 16 17 18
            "run-command": [
                "rm -rf /storage/media/100/local/files/*",
                "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*",
                "mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios,Documents}",
C
caochuan 已提交
19
                "mkdir -p /storage/media/100/local/temp",
20 21
                "param set persist.sys.suspend_manager_enabled 0",
                "reboot",
22
                "param set persist.ace.testmode.enabled 1",
C
caochuan 已提交
23 24 25
                "power-shell wakeup",
                "uinput  -T -d 300 600 -m 300 600 300 100 -u 300 100",
                "power-shell setmode 602"
W
weiyufeng 已提交
26 27 28 29
            ]
        },
        {
            "type": "PushKit",
C
caochuan 已提交
30
            "pre-push": [],
W
weiyufeng 已提交
31
            "push": [
C
caochuan 已提交
32 33 34 35
                "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp",
                "./resource/medialibrary/01.mp3 ->/storage/media/100/local/temp",
                "./resource/medialibrary/01.mp4 ->/storage/media/100/local/temp",
                "./resource/medialibrary/01.dat ->/storage/media/100/local/temp"
W
weiyufeng 已提交
36 37 38 39 40 41
            ]
        },
        {
            "type": "ShellKit",
            "run-command": [
                "mkdir -pv /storage/media/100/local/files/Pictures/ImageInfo",
C
caochuan 已提交
42
                "mkdir -pv /storage/media/100/local/files/Audios/Static",
C
caochuan 已提交
43 44
                "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/ImageInfo/01.jpg",
                "cp /storage/media/100/local/temp/01.mp3 /storage/media/100/local/files/Audios/Static/01.mp3",
W
weiyufeng 已提交
45 46 47 48
                "chmod -R 777 /storage/media/100/local/files/*",
                "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*",
                "hilog -Q pidoff",
                "hilog -p off",
C
caochuan 已提交
49
                "hilog -b I",
C
caochuan 已提交
50
                "hilog -b D -D 0xD002B70",
Y
yangbo 已提交
51
                "scanner",
W
weiyufeng 已提交
52
                "sleep 10"
1
modify  
18742514821 已提交
53
            ],
C
caochuan 已提交
54
            "teardown-command": [
55 56
                "param set persist.sys.suspend_manager_enabled 1",
                "reboot",
C
caochuan 已提交
57 58
                "hilog -b X -D 0xD002B70",
                "power-shell setmode 600"
W
weiyufeng 已提交
59 60 61 62
            ]
        },
        {
            "test-file-name": [
C
caochuan 已提交
63
                "ActsMediaLibraryFileKeyTest.hap"
W
weiyufeng 已提交
64 65 66 67 68 69
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        }
    ]
}