From 97b62b8b1c84a4f5cf38637a4379f70b22eaf26f Mon Sep 17 00:00:00 2001 From: zhouke Date: Tue, 20 Jun 2023 09:39:37 +0800 Subject: [PATCH] =?UTF-8?q?uitest=E6=B5=8B=E8=AF=95=E5=A5=97hap=E5=8C=85to?= =?UTF-8?q?kenId=E5=BC=82=E5=B8=B8=E4=BF=AE=E5=A4=8D.Signed-off-by:=20.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhouke --- testfwk/uitest/src/main/ets/test/uitest.test.ets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testfwk/uitest/src/main/ets/test/uitest.test.ets b/testfwk/uitest/src/main/ets/test/uitest.test.ets index 46896a121..1d77e02e6 100644 --- a/testfwk/uitest/src/main/ets/test/uitest.test.ets +++ b/testfwk/uitest/src/main/ets/test/uitest.test.ets @@ -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') }) -- GitLab