Test.json 1.7 KB
Newer Older
Z
zhangxingxia 已提交
1 2 3 4 5 6 7 8 9 10 11 12
{
    "description": "Configuration for filemanager Tests",
    "driver": {
        "type": "JSUnitTest",
        "test-timeout": "2000000",
        "package": "ohos.acts.storage.filemanager",
		"shell-timeout": "60000"
    },
    "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 35
                "cd /storage/media/100/local/files/",
                "mkdir photo",
                "mkdir document",
                "mkdir video",
                "mkdir audio",
                "mkdir photo/weixin",
                "touch photo/weixin/1.jpg",
                "touch photo/weixin/2.jpg",
                "touch photo/weixin/3.jpg",
                "touch photo/weixin/1.mp3",
                "touch photo/weixin/1.mp4",
                "mkdir photo/taobao",
                "touch photo/taobao/1.mp4",
                "mkdir taobao",
                "touch taobao/1.jpg",
                "mkdir image",
                "touch image/1.jpg",
                "touch image/2.jpg",
                "mkdir alarms",
                "touch alarms/tree.mp3",
                "mkdir wps",
                "touch wps/news.pdf",
                "touch wps/introduce.doc",
Z
zhangxingxia 已提交
36 37 38
				"killall com.ohos.medialibrary.MediaScannerAbilityA",
                "aa start  -a MediaScannerAbility -b com.ohos.medialibrary.MediaScannerAbilityA",
				"sleep 10",
Z
zhangxingxia 已提交
39 40 41 42
                "setenforce 0"
            ],
            "teardown-command":[
                "setenforce 1",
Z
zhangxingxia 已提交
43
                "rm -rf /storage/media/100/local/files/*"
Z
zhangxingxia 已提交
44 45 46 47 48 49 50 51 52 53 54
            ]
        },
        {
            "test-file-name": [
                "ActsStorageFilemanagerJsTest.hap"
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        }
    ]
}