Test.json 1.9 KB
Newer Older
C
chensi10 已提交
1 2 3 4
{
    "description": "Configuration for hjunit demo Tests",
    "driver": {
        "type": "JSUnitTest",
Z
zhaoyuan17 已提交
5
        "test-timeout": "300000",
J
jiyong 已提交
6
        "package": "com.example.actsbundlemanagertest",
S
shuxiong 已提交
7
        "shell-timeout": "60000"
C
chensi10 已提交
8 9 10 11
    },
    "kits": [
        {
            "test-file-name": [
J
jiyong 已提交
12
                "ActsBundleManagerTest.hap"
C
chensi10 已提交
13 14 15
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
J
jiyong 已提交
16
        },
I
inter515 已提交
17 18 19 20 21 22 23
        {
            "type": "ShellKit",
            "run-command": [
                "remount",
                "mkdir /data/test/"
            ]
        },
J
jiyong 已提交
24 25 26
        {
            "type": "PushKit",
            "push": [
I
inter515 已提交
27 28 29 30 31 32
                "bmsJstest1.hap->/data/test/bmsJstest1.hap",
                "bmsJstest2.hap->/data/test/bmsJstest2.hap",
                "bmsJstest3.hap->/data/test/bmsJstest3.hap",
                "bmsJstest4.hap->/data/test/bmsJstest4.hap",
                "bmsJstest5.hap->/data/test/bmsJstest5.hap",
                "bmsJstest6.hap->/data/test/bmsJstest6.hap"
J
jiyong 已提交
33
            ]
Z
zhaoyuan17 已提交
34 35 36 37
        },
        {
            "type": "ShellKit",
            "run-command": [
I
inter515 已提交
38 39 40 41 42 43 44 45 46 47 48 49 50 51
                "bm install -p /data/test/bmsJstest1.hap",
                "bm install -p /data/test/bmsJstest2.hap",
                "bm install -p /data/test/bmsJstest3.hap",
                "bm install -p /data/test/bmsJstest4.hap",
                "bm install -p /data/test/bmsJstest5.hap",
                "bm install -p /data/test/bmsJstest6.hap"
            ],
            "teardown-command":[
                "bm uninstall -n com.example.myapplication1",
                "bm uninstall -n com.example.myapplication2",
                "bm uninstall -n com.example.myapplication4",
                "bm uninstall -n com.example.myapplication5",
                "bm uninstall -n com.example.myapplication6",
                "rm -rf /data/test/"
Z
zhaoyuan17 已提交
52
            ]
I
inter515 已提交
53
        }
C
chensi10 已提交
54 55
    ]
}