Test.json 2.3 KB
Newer Older
T
tongtongdad 已提交
1 2 3 4
{
    "description": "Configuration for Image Tests",
    "driver": {
        "type": "JSUnitTest",
L
lwx1121892 已提交
5
        "test-timeout": "1500000",
T
tongtongdad 已提交
6 7 8 9
        "package": "ohos.acts.multimedia.image",
		"shell-timeout": "120000"
    },
    "kits": [
L
lwx1121892 已提交
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
		{
            "type": "PushKit",
            "pre-push": [
            ],
            "push": [
                "./resource/image/test.tiff ->/storage/media/100/local/files",
				"./resource/image/test.123 ->/storage/media/100/local/files",
				"./resource/image/test.bmp ->/storage/media/100/local/files",
                "./resource/image/test.png ->/storage/media/100/local/files",
				"./resource/image/test.gif ->/storage/media/100/local/files",
				"./resource/image/test.jpg ->/storage/media/100/local/files",
				"./resource/image/test_exif.jpg ->/storage/media/100/local/files",
				"./resource/image/moving_test.gif ->/storage/media/100/local/files"
				
            ]
        },
T
tongtongdad 已提交
26
   
T
tongtongdad 已提交
27 28 29
		{
            "type": "ShellKit",
            "run-command": [
L
lwx1121892 已提交
30 31 32 33 34 35 36 37 38
                "mkdir /storage/media/100/local/files/cjh",
				"cp /storage/media/100/local/files/test.tiff /storage/media/100/local/files/cjh/",
				"cp /storage/media/100/local/files/test.123 /storage/media/100/local/files/cjh/",
				"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/cjh/",
				"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/cjh/",
				"cp /storage/media/100/local/files/test.gif /storage/media/100/local/files/cjh/",
				"cp /storage/media/100/local/files/test.jpg /storage/media/100/local/files/cjh/",
				"cp /storage/media/100/local/files/test_exif.jpg /storage/media/100/local/files/cjh/",
				"cp /storage/media/100/local/files/moving_test.gif /storage/media/100/local/files/cjh/",
T
tongtongdad 已提交
39
                "chmod -R 666 /data/media/*",
L
lwx1121892 已提交
40 41 42
                "chmod -R 666 /storage/media/100/local/files/cjh/*",
				"killall com.ohos.medialibrary.MediaScannerAbilityA",
                "aa start  -a MediaScannerAbility -b com.ohos.medialibrary.MediaScannerAbilityA"
T
tongtongdad 已提交
43 44
            ],
            "teardown-command":[
T
tongtongdad 已提交
45 46 47
              
            ]
        },
L
lwx1121892 已提交
48
        
T
tongtongdad 已提交
49 50
        {
            "test-file-name": [
T
tongtongdad 已提交
51
                "ActsImageJsTest.hap"
T
tongtongdad 已提交
52 53 54 55 56
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        }
    ]
T
tongtongdad 已提交
57
    
T
tongtongdad 已提交
58
}