Test.json 1.2 KB
Newer Older
1 2 3 4 5
{
    "description": "Configuration for uitest Tests",
    "driver": {
        "type": "OHJSUnitTest",
        "test-timeout": "1800000",
6 7
        "bundle-name": "com.uitest.acts",
        "package-name": "com.uitest.acts",
8 9 10 11 12 13 14 15 16
        "shell-timeout": "60000"
    },
    "kits": [
        {
            "test-file-name": [
                "$module.hap"
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
        },
        {
            "type": "PushKit",
            "push": [
                "resource/arkXtest/arkXtest_windowsTest.hap -> /data/local/tmp/arkXtest_windowsTest.hap",
                "resource/arkXtest/window_manager_config.xml -> /system/etc/window/resources/window_manager_config.xml"
            ]
        },
        {
            "type": "ShellKit",
            "run-command": [
                "power-shell wakeup",
                "uinput -T -d 300 600 -m 300 600 300 100 -u 300 100",
                "power-shell setmode 602",
                "bm install -p /data/local/tmp/arkXtest_windowsTest.hap"
            ],
            "teardown-command": [
                "bm uninstall -n com.example.windows"
            ]
36 37 38
        }
    ]
}