Test.json 1.5 KB
Newer Older
C
caochuan 已提交
1 2 3 4 5 6
{
    "description": "Configuration for Image Tests",
    "driver": {
        "type": "OHJSUnitTest",
        "test-timeout": "300000",
        "shell-timeout": "120000",
C
caochuan 已提交
7 8
        "bundle-name": "ohos.acts.multimedia.image",
        "package-name": "ohos.acts.multimedia.image"
C
caochuan 已提交
9 10 11 12 13 14 15 16 17 18 19 20
    },
    "kits": [
        {
            "test-file-name": [
                "ActsImageGetImagePropertyJsTest.hap"
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        },
        {
            "type": "ShellKit",
            "run-command": [
C
caochuan 已提交
21 22
                "mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/files/",
                "chmod -R 666 /data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/files/*"
C
caochuan 已提交
23
            ],
C
caochuan 已提交
24
            "teardown-command": []
C
caochuan 已提交
25 26 27 28 29
        },
        {
            "type": "PushKit",
            "pre-push": [],
            "push": [
C
caochuan 已提交
30 31
                "./resource/image/test_exif1.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/files",
                "./resource/image/test_hw.jpg->/data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/files"
C
caochuan 已提交
32 33 34 35 36 37
            ]
        },
        {
            "type": "ShellKit",
            "run-command": [
                "hilog -Q pidoff",
C
caochuan 已提交
38
                "chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/files/*"
C
caochuan 已提交
39 40
            ],
            "teardown-command": [
C
caochuan 已提交
41
                "rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image/*"
C
caochuan 已提交
42 43 44 45
            ]
        }
    ]
}