Test.json 2.3 KB
Newer Older
Z
zhaoyuan17 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
{
    "description": "Configuration for hjunit demo Tests",
    "driver": {
        "type": "JSUnitTest",
        "test-timeout": "180000",
        "package": "com.example.actsbmsgetinfostest",
        "shell-timeout": "60000"
    },
    "kits": [
        {
            "test-file-name": [
                "bmsSystemBundleTest1.hap",
                "bmsVendorBundleTest1.hap",
                "ActsBmsGetInfosTest.hap"
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        },
        {
            "type": "ShellKit",
            "run-command": [
                "remount",
                "mkdir /data/test"
            ]
        },
        {
            "type": "PushKit",
            "push": [
                "bmsThirdBundleTest1.hap->/data/test/bmsThirdBundleTest1.hap",
                "bmsThirdBundleTest2.hap->/data/test/bmsThirdBundleTest2.hap",
                "bmsThirdBundleTest3.hap->/data/test/bmsThirdBundleTest3.hap",
                "bmsThirdBundleTest4.hap->/data/test/bmsThirdBundleTest4.hap",
                "bmsThirdBundleTest5.hap->/data/test/bmsThirdBundleTest5.hap",
                "bmsThirdBundleTest6.hap->/data/test/bmsThirdBundleTest6.hap",
Z
zhaoyuan17 已提交
35
                "bmsThirdBundleTestA1.hap->/data/test/bmsThirdBundleTestA1.hap",
I
inter515 已提交
36
                "bmsSystemBundleTest2.hap->/data/test/bmsSystemBundleTest2.hap"
Z
zhaoyuan17 已提交
37 38 39 40 41
            ]
        },
        {
            "type": "ShellKit",
            "run-command": [
I
inter515 已提交
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
                "bm install -p /data/test/bmsThirdBundleTest1.hap",
                "bm install -p /data/test/bmsThirdBundleTest2.hap",
                "bm install -p /data/test/bmsThirdBundleTest3.hap",
                "bm install -p /data/test/bmsThirdBundleTest4.hap",
                "bm install -p /data/test/bmsThirdBundleTest5.hap",
                "bm install -p /data/test/bmsThirdBundleTest6.hap",
                "bm install -p /data/test/bmsSystemBundleTest2.hap"
            ],
            "teardown-command":[
                "bm uninstall -n com.example.third1",
                "bm uninstall -n com.example.third2",
                "bm uninstall -n com.example.third4",
                "bm uninstall -n com.example.third5",
                "bm uninstall -n com.example.third6",
                "bm uninstall -n com.example.system2",
                "rm -rf /data/test/"
Z
zhaoyuan17 已提交
58 59 60
            ]
        }
    ]
Z
zhaoyuan17 已提交
61
}