Test.json 1.3 KB
Newer Older
J
jiyong_sd 已提交
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 35 36 37 38 39 40 41 42 43
{
    "description": "Configuration for resourceschedule js api Tests",
    "driver": {
        "type": "OHJSUnitTest",
        "test-timeout": "300000",
        "shell-timeout": "300000",
        "bundle-name": "ohos.acts.resourceschedule.taskmgr.js.function",
        "package-name": "ohos.acts.resourceschedule.taskmgr.js.function"
    },
    "kits": [
        {
            "test-file-name": [
                "ActsResourcescheduleTaskMgrTest.hap"
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        },
        {
            "type": "ShellKit",
            "run-command": [
                "remount",
                "mkdir /data/test"
            ]
        },
        {
            "type": "PushKit",
            "push": [
                "ContinuousTaskRelyHap.hap->/data/test/ContinuousTaskRelyHap.hap"
            ]
        },
        {
            "type": "ShellKit",
            "run-command": [
                "bm install -p /data/test/ContinuousTaskRelyHap.hap",
                "aa start -a com.example.continuoustaskserver.MainAbility -b com.example.continuoustaskserver"
            ],
            "teardown-command": [
                "bm uninstall -n com.example.continuoustaskserver",
                "rm -rf data/test"
            ]
        }
    ]
}