diff --git a/testfwk/uitest/Test.json b/testfwk/uitest/Test.json index 205648f48abbd372542957a68be2824401800ef1..f3b7635677d0dae8d52ecd4a8466fafcfdfc2f85 100644 --- a/testfwk/uitest/Test.json +++ b/testfwk/uitest/Test.json @@ -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 diff --git a/testfwk/uitest/src/main/ets/test/uitest.test.ets b/testfwk/uitest/src/main/ets/test/uitest.test.ets index 46896a12133d68fbee69b9b871cb27b0b90cc85b..1d77e02e6ad2ee9e2bd9c1052f76a17de6e836a9 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') })