openharmony 鸿蒙 changelogs-testfwk_arkxtest

2025-06-12 浏览 (1)

Test Subsystem ChangeLog

cl.testfwk_arkxtest.1 Change to the WindowFilter Attribute Names

Access Level

Public

Reason for Change

This change is a compatible change.

Change Impact

This change affects the WindowFilter API provided by @ohos.uitest. If you have used the WindowFilter API of @ohos.uitest-api9 during test case development, adaptation is required so that the compilation can be successful in the SDK environment of the new version.

Change Since

OpenHarmony SDK 4.1.5.3

Key API/Component Changes

WindowFilter9+

Before change

NameTypeReadableWritableDescription
bundleNamestringYesNoBundle name of the application to which the window belongs.
titlestringYesNoTitle of the window.
focusedbooleanYesNoWhether the window is in focused state.
activedbooleanYesNoWhether the window is interacting with the user.

After change

NameTypeReadableWritableDescription
bundleNamestringYesNoBundle name of the application to which the window belongs.
titlestringYesNoTitle of the window.
focusedbooleanYesNoWhether the window is in focused state.
activebooleanYesNoWhether the window is interacting with the user.

Adaptation Guide

Replace actived with active.

cl.testfwk_arkxtest.2 Deprecation of the UiWindow.isActived API

Access Level

Public

Reason for Change

The API capability is enhanced.

Change Impact

This change affects the UiWindow.isActived API provided by @ohos.uitest. If you have used the UiWindow.isActived API of @ohos.uitest-api9 during test case development, adaptation is required so that the compilation can be successful in the SDK environment of the new version.

Deprecated Since

OpenHarmony SDK 4.1.5.3

Deprecated APIs/Components

APIDescriptionSubstitute
isActived(): Promise<boolean>;Replaced by isActive().isActive(): Promise<boolean>;

Adaptation Guide

Replace isActived() with isActive().

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Access Token Changelog

harmony 鸿蒙ArkUI Subsystem Changelog

harmony 鸿蒙Security Subsystem - Key Management Service Changelog

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/wqrnGq