diff --git a/en/application-dev/reference/apis/js-apis-uitest.md b/en/application-dev/reference/apis/js-apis-uitest.md index 8c229cc5ec06e1bef82452420848b8175a02c22c..d738e7b69170bc84f17286594cfd98b3ff908249 100644 --- a/en/application-dev/reference/apis/js-apis-uitest.md +++ b/en/application-dev/reference/apis/js-apis-uitest.md @@ -31,7 +31,7 @@ Enumerates the match patterns supported for component attributes. | Name | Value | Description | | ----------- | ---- | -------------- | -| EQUALS | 0 | Equal to the given value. | +| EQUALS | 0 | Equals the given value. | | CONTAINS | 1 | Contains the given value. | | STARTS_WITH | 2 | Starts with the given value.| | ENDS_WITH | 3 | Ends with the given value.| @@ -70,12 +70,12 @@ Provides bounds information of a component. **System capability**: SystemCapability.Test.UiTest -| Name | Type | Readable| Writable| Description | -| ------- | ------ | ---- | ---- | ------------------------- | -| leftX | number | Yes | No | X-coordinate of the upper left corner of the component bounds.| -| topY | number | Yes | No | Y-coordinate of the upper left corner of the component bounds.| -| rightX | number | Yes | No | X-coordinate of the lower right corner of the component bounds.| -| bottomY | number | Yes | No | Y-coordinate of the lower right corner of the component bounds.| +| Name | Type | Readable| Writable| Description | +| ------ | ------ | ---- | ---- | ------------------------- | +| left | number | Yes | No | X-coordinate of the upper left corner of the component bounds.| +| top | number | Yes | No | Y-coordinate of the upper left corner of the component bounds.| +| right | number | Yes | No | X-coordinate of the lower right corner of the component bounds.| +| bottom | number | Yes | No | Y-coordinate of the lower right corner of the component bounds.| ## WindowMode9+ @@ -219,7 +219,7 @@ Specifies the clickable status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ------------------------------------------------------------ | -| b | boolean | No | Clickable status of the target component.
**true**: clickable.
**false**: not clickable.
Default value: **true**| +| b | boolean | No | Clickable status of the target component.
**true**: clickable.
**false**: not clickable.
Default value: **true** | **Return value** @@ -245,7 +245,7 @@ Specifies the long-clickable status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ------------------------------------------------------------ | -| b | boolean | No | Long-clickable status of the target component.
**true**: long-clickable.
**false**: not long-clickable.
Default value: **true**| +| b | boolean | No | Long-clickable status of the target component.
**true**: long-clickable.
**false**: not long-clickable.
Default value: **true** | **Return value** @@ -272,7 +272,7 @@ Specifies the scrollable status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ----------------------------------------------------------- | -| b | boolean | No | Scrollable status of the target component.
**true**: scrollable.
**false**: not scrollable.
Default value: **true**| +| b | boolean | No | Scrollable status of the target component.
**true**: scrollable.
**false**: not scrollable.
Default value: **true** | **Return value** @@ -298,7 +298,7 @@ Specifies the enabled status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | --------------------------------------------------------- | -| b | boolean | No | Enabled status of the target component.
**true**: enabled.
**false**: disabled.
Default value: **true**| +| b | boolean | No | Enabled status of the target component.
**true**: enabled.
**false**: not enabled.
Default value: **true** | **Return value** @@ -324,7 +324,7 @@ Specifies the focused status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ----------------------------------------------------- | -| b | boolean | No | Focused status of the target component.
**true**: focused.
**false**: not focused.
Default value: **true**| +| b | boolean | No | Focused status of the target component.
**true**: focused.
**false**: not focused.
Default value: **true** | **Return value** @@ -350,7 +350,7 @@ Specifies the selected status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ------------------------------------------------------------ | -| b | boolean | No | Selected status of the target component.
**true**: selected.
**false**: not selected.
Default value: **true**| +| b | boolean | No | Selected status of the target component.
**true**: selected.
**false**: not selected.
Default value: **true** | **Return value** @@ -376,7 +376,7 @@ Specifies the checked status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ------------------------------------------------------------ | -| b | boolean | No | Checked status of the target component.
**true**: checked.
**false**: not checked.
Default value: **false**| +| b | boolean | No | Checked status of the target component.
**true**: checked.
**false**: not checked.
Default value: **false** | **Return value** @@ -402,7 +402,7 @@ Specifies the checkable status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ------------------------------------------------------------ | -| b | boolean | No | Checkable status of the target component.
**true**: checkable.
**false**: not checkable.
Default value: **false**| +| b | boolean | No | Checkable status of the target component.
**true**: checkable.
**false**: not checkable.
Default value: **false** | **Return value** @@ -2788,7 +2788,7 @@ This API is deprecated since API version 9. You are advised to use [clickable**true**: clickable.
**false**: not clickable.
Default value: **true**| +| b | boolean | No | Clickable status of the target component.
**true**: clickable.
**false**: not clickable.
Default value: **true** | **Return value** @@ -2817,7 +2817,7 @@ This API is deprecated since API version 9. You are advised to use [scrollable**true**: scrollable.
**false**: not scrollable.
Default value: **true**| +| b | boolean | No | Scrollable status of the target component.
**true**: scrollable.
**false**: not scrollable.
Default value: **true** | **Return value** @@ -2845,7 +2845,7 @@ This API is deprecated since API version 9. You are advised to use [enabled | Name| Type | Mandatory| Description | | ------ | ------- | ---- | --------------------------------------------------------- | -| b | boolean | No | Enabled status of the target component.
**true**: enabled.
**false**: not disabled.
Default value: **true**| +| b | boolean | No | Enabled status of the target component.
**true**: enabled.
**false**: not enabled.
Default value: **true** | **Return value** @@ -2873,7 +2873,7 @@ This API is deprecated since API version 9. You are advised to use [focused | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ----------------------------------------------------- | -| b | boolean | No | Focused status of the target component.
**true**: focused.
**false**: not focused.
Default value: **true**| +| b | boolean | No | Focused status of the target component.
**true**: focused.
**false**: not focused.
Default value: **true** | **Return value** @@ -2901,7 +2901,7 @@ This API is deprecated since API version 9. You are advised to use [selected**true**: selected.
**false**: not selected.
Default value: **true**| +| b | boolean | No | Selected status of the target component.
**true**: selected.
**false**: not selected.
Default value: **true** | **Return value** diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-testfwk_arkxtest.md b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-testfwk_arkxtest.md new file mode 100644 index 0000000000000000000000000000000000000000..1206d659402df80e9892ca3e7b4eba1e729c9357 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-testfwk_arkxtest.md @@ -0,0 +1,42 @@ +# Test Subsystem ChangeLog + +## cl.testfwk_arkxtest.1 API Name Change of Rect + +The definition of **Rect**, an enumeration type that indicates the component bound information, is changed since version 4.0.2.1. + +## Change Impacts + +This change affects the **Rect** API provided by **@ohos.uitest**. If you have used the **Rect** 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. + +## Key API/Component Changes + +### Rect9+ + +Before change + +| Name | Value | Description | +| ------- | ---- | ------------------------- | +| leftX | 1 | X-coordinate of the upper left corner of the component bounds.| +| topY | 2 | Y-coordinate of the upper left corner of the component bounds.| +| rightX | 3 | X-coordinate of the lower right corner of the component bounds.| +| bottomY | 4 | Y-coordinate of the lower right corner of the component bounds.| + +After change + +| Name | Value | Description | +| ------ | ---- | ------------------------- | +| left | 1 | X-coordinate of the upper left corner of the component bounds.| +| top | 2 | Y-coordinate of the upper left corner of the component bounds.| +| right | 3 | X-coordinate of the lower right corner of the component bounds.| +| bottom | 4 | Y-coordinate of the lower right corner of the component bounds.| + +## Adaptation Guide + +### Adaptation to the API Name Change + +You can replace the class name according to the following rules: + +- `leftX-->left` +- `topY-->top` +- `rightX-->right` +- `bottomY-->bottom`