Test.json 1.4 KB
Newer Older
C
chengxingzhen 已提交
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 44 45 46 47 48 49

{
    "description": "Configuration for hjunit demo Tests",
    "driver": {
        "type": "JSUnitTest",
        "test-timeout": "120000",
        "package": "com.example.actsspecifieduseractionextensionzerotest",
        "shell-timeout": "60000"
    },
    "kits": [
        {
            "test-file-name": [
                "ActsSpecifiedUserActionextensionZeroTest.hap",
                "ActsSpecifiedUserActionextensiononeTest.hap"
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        },
        {
            "type": "PushKit",
            "push": [
                "ActsSpecifiedUserActionextensionZeroTest.hap->/system/app/ActsSpecifiedUserActionextensionZeroTest.hap"]
        },
        {
            "type": "ShellKit",
            "run-command": [
                "acm create -n 101 -t normal",
                "acm create -n 102 -t normal",
                "acm switch -i 101"
            ],
            "teardown-command":[
                "acm delete -i 101",
                "acm delete -i 102"
            ]
        },
        {
            "type": "PushKit",
            "push": [
                "ActsSpecifiedUserActionextensiononeTest.hap->/system/app/ActsSpecifiedUserActionextensiononeTest.hap"]
        },
        {
            "type": "ShellKit",
            "run-command": [
                "acm switch -i 100"
            ]
        }
    ]
}