Test.json 2.3 KB
Newer Older
Z
zhangxingxia 已提交
1 2 3 4 5 6
{
    "description": "Configuration for filemanager Tests",
    "driver": {
        "type": "JSUnitTest",
        "test-timeout": "2000000",
        "package": "ohos.acts.storage.filemanager",
Z
zhangxingxia 已提交
7
        "shell-timeout": "60000"
Z
zhangxingxia 已提交
8 9 10 11 12
    },
    "kits": [
		{
            "type": "ShellKit",
            "run-command": [
Z
zhangxingxia 已提交
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
                "mkdir /storage/media/100/local/files/photo",
                "mkdir /storage/media/100/local/files/document",
                "mkdir /storage/media/100/local/files/video",
                "mkdir /storage/media/100/local/files/audio",
                "mkdir /storage/media/100/local/files/photo/weixin",
                "touch /storage/media/100/local/files/photo/weixin/1.jpg",
                "touch /storage/media/100/local/files/photo/weixin/2.jpg",
                "touch /storage/media/100/local/files/photo/weixin/3.jpg",
                "touch /storage/media/100/local/files/photo/weixin/1.mp3",
                "touch /storage/media/100/local/files/photo/weixin/1.mp4",
                "mkdir /storage/media/100/local/files/photo/taobao",
                "touch /storage/media/100/local/files/photo/taobao/1.mp4",
                "mkdir /storage/media/100/local/files/taobao",
                "touch /storage/media/100/local/files/taobao/1.jpg",
                "mkdir /storage/media/100/local/files/image",
                "touch /storage/media/100/local/files/image/1.jpg",
                "touch /storage/media/100/local/files/image/2.jpg",
                "mkdir /storage/media/100/local/files/alarms",
                "touch /storage/media/100/local/files/alarms/tree.mp3",
                "mkdir /storage/media/100/local/files/wps",
                "touch /storage/media/100/local/files/wps/news.pdf",
                "touch /storage/media/100/local/files/wps/introduce.doc",
Z
zhangxingxia 已提交
35
                "killall com.ohos.medialibrary.MediaScannerAbilityA",
Z
zhangxingxia 已提交
36
                "aa start  -a MediaScannerAbility -b com.ohos.medialibrary.MediaScannerAbilityA",
Z
zhangxingxia 已提交
37
                "sleep 10"
Z
zhangxingxia 已提交
38 39
            ],
            "teardown-command":[
Z
zhangxingxia 已提交
40
                "rm -rf /storage/media/100/local/files/*"
Z
zhangxingxia 已提交
41 42 43 44 45 46 47 48 49 50 51
            ]
        },
        {
            "test-file-name": [
                "ActsStorageFilemanagerJsTest.hap"
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        }
    ]
}