未验证 提交 40b9ce27 编写于 作者: O openharmony_ci 提交者: Gitee

!9033 uitest测试套hap包tokenId异常修复

Merge pull request !9033 from 周柯/master
......@@ -8,14 +8,6 @@
"shell-timeout": "180000"
},
"kits": [
{
"test-file-name": [
"ActsUiTest.hap",
"ActsUiTestScene.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
},
{
"type": "ShellKit",
"run-command": [
......@@ -30,6 +22,14 @@
"param set persist.sys.suspend_manager_enabled 1",
"reboot"
]
},
{
"test-file-name": [
"ActsUiTest.hap",
"ActsUiTestScene.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
\ No newline at end of file
......@@ -243,6 +243,7 @@ export default function UiTest() {
await driver.delayMs(waitUiReadyMs)
let input_new = await driver.findComponent(BY.type('TextInput'))
let text = await input_new.getText()
console.info("testInputText result :" + text)
expect(text == '123').assertTrue()
await stopApplication('com.uitestScene.acts')
})
......@@ -599,6 +600,7 @@ export default function UiTest() {
await driver.delayMs(waitUiReadyMs)
let input_new = await driver.findComponent(ON.type('TextInput'))
let text = await input_new.getText()
console.info("testInputText result :" + text)
expect(text == '123').assertTrue()
await stopApplication('com.uitestScene.acts')
})
......@@ -619,6 +621,7 @@ export default function UiTest() {
await driver.delayMs(waitUiReadyMs)
let input_new = await driver.findComponent(ON.type('TextInput'))
let text = await input_new.getText()
console.info("testClearText result :" + text)
expect(text).assertEqual('')
await stopApplication('com.uitestScene.acts')
})
......@@ -981,6 +984,7 @@ export default function UiTest() {
await driver.triggerCombineKeys(2072, 2019)
await driver.triggerCombineKeys(2072, 2038)
let text2 = await driver.findComponent(ON.type('TextInput'))
console.info("testTriggerCombineKeys result :" + text2)
expect(await text2.getText() == '123123').assertTrue()
await stopApplication('com.uitestScene.acts')
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册