From 06eaa6d1eca934f15a347f4f269ec6c4db6306a9 Mon Sep 17 00:00:00 2001 From: zhouke Date: Wed, 22 Mar 2023 16:42:47 +0800 Subject: [PATCH] =?UTF-8?q?arkXtest=E6=B5=8B=E8=AF=95=E5=A5=97=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E8=A1=A5=E5=85=85=EF=BC=8C=E9=85=8D=E7=BD=AE=E9=83=A8?= =?UTF-8?q?=E4=BB=B6=E5=90=8D=E7=A7=B0.Signed-off-by:=20.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhouke --- arkXtest/uitest/BUILD.gn | 2 ++ arkXtest/uitest/src/main/ets/test/uitest.test.ets | 14 ++++++++++++++ arkXtest/uitestScene/BUILD.gn | 2 ++ 3 files changed, 18 insertions(+) diff --git a/arkXtest/uitest/BUILD.gn b/arkXtest/uitest/BUILD.gn index a60ae13c9..0a3f1dea5 100644 --- a/arkXtest/uitest/BUILD.gn +++ b/arkXtest/uitest/BUILD.gn @@ -22,6 +22,8 @@ ohos_js_hap_suite("ActsUiTest") { ets2abc = true certificate_profile = "//test/xts/acts/arkXtest/uitest/signature/auto_ohos_default_com.uitest.test.p7b" hap_name = "ActsUiTest" + part_name = "arkXtest" + subsystem_name = "arkXtest" } ohos_js_assets("uitest_ets_assets") { diff --git a/arkXtest/uitest/src/main/ets/test/uitest.test.ets b/arkXtest/uitest/src/main/ets/test/uitest.test.ets index 07bde45a6..8ed5eeb44 100644 --- a/arkXtest/uitest/src/main/ets/test/uitest.test.ets +++ b/arkXtest/uitest/src/main/ets/test/uitest.test.ets @@ -166,6 +166,20 @@ export default function UiTest() { expect(button2 != null).assertTrue() await stopApplication('com.uitestScene.acts') }) + + /* + * @tc.number: uiTest_10007 + * @tc.name: testInWindow + * @tc.desc: scroll the mouse wheel at the specified location to specify the cell. + */ + it('testInWindow', 0, async function () { + await startAbility('com.uitestScene.acts', 'com.uitestScene.acts.MainAbility') + let driver = Driver.create() + await driver.delayMs(waitUiReadyMs) + let btn = await driver.findComponent(ON.inWindow('com.uitestScene.acts').text('next page')) + expect(btn != null).assertTrue() + await stopApplication('com.uitestScene.acts') + }) }) describe('UiTest_API8', function () { diff --git a/arkXtest/uitestScene/BUILD.gn b/arkXtest/uitestScene/BUILD.gn index 246b67fcf..82fb621e1 100644 --- a/arkXtest/uitestScene/BUILD.gn +++ b/arkXtest/uitestScene/BUILD.gn @@ -24,6 +24,8 @@ ohos_hap_assist_suite("ActsUiTestScene") { testonly = true certificate_profile = "//test/xts/acts/arkXtest/uitestScene/signature/auto_ohos_default_com.uitestScene.test.p7b" hap_name = "ActsUiTestScene" + part_name = "arkXtest" + subsystem_name = "arkXtest" } ohos_js_assets("uitest_scene_ets_assets") { -- GitLab