提交 db0ab940 编写于 作者: Z zhouke

增加uitest xts用例.Signed-off-by: <zhouke35@huawei.com>.

Signed-off-by: Nzhouke <zhouke35@huawei.com>
上级 70c44294
......@@ -1161,5 +1161,31 @@ export default function UiTest() {
expect(text == null).assertTrue()
await stopApplication('com.uitestScene.acts')
})
/*
* @tc.number: uiTest_5800
* @tc.name: testSplit
* @tc.desc: change this UiWindow into split screen mode.
*/
it('testSplit', 0, async function () {
await startAbility('com.uitestScene.acts', 'com.uitestScene.acts.MainAbility')
let driver = UiDriver.create()
await driver.delayMs(waitUiReadyMs)
let window1 = await driver.findWindow({bundleName:'com.uitestScene.acts'})
try {
await window1.split()
await driver.delayMs(waitUiReadyMs)
let window2 = await driver.findWindow({bundleName:'com.ohos.systemui'})
expect(window2 == null).assertTrue()
}
catch (err) {
if (err.message == 'this device can not support this action') {
expect(window1 != null).assertTrue()
} else {
expect(false).assertTrue()
}
}
await stopApplication('com.uitestScene.acts')
})
})
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册