• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the Test Subsystem
2
3The table below lists the APIs changes of the test subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| ohos.uitest | UiWindow | close():Promise\<bool>; | Added|
10| ohos.uitest | UiWindow | resume():Promise\<bool>; | Added|
11| ohos.uitest | UiWindow | minimize():Promise\<bool>; | Added|
12| ohos.uitest | UiWindow | maximize():Promise\<bool>; | Added|
13| ohos.uitest | UiWindow | split():Promise\<bool>; | Added|
14| ohos.uitest | UiWindow | resize(wide: number, height: number, direction: ResizeDirection):Promise\<bool>; | Added|
15| ohos.uitest | UiWindow | moveTo(x: number, y: number):Promise\<bool>; | Added|
16| ohos.uitest | UiWindow | focus():Promise\<bool>; | Added|
17| ohos.uitest | UiWindow | isActived():Promise\<bool>; | Added|
18| ohos.uitest | UiWindow | isFocused():Promise\<bool>; | Added|
19| ohos.uitest | UiWindow | getWindowMode():Promise\<WindowMode>; | Added|
20| ohos.uitest | UiWindow | getTitle():Promise\<string>; | Added|
21| ohos.uitest | UiWindow | getBounds():Promise\<Rect>; | Added|
22| ohos.uitest | UiWindow | getBundleName():Promise\<string>; | Added|
23| ohos.uitest | UiDriver | triggerCombineKeys(key0: number, key1: number, key2?: number): Promise\<void>; | Added|
24| ohos.uitest | UiDriver | findWindow(filter:WindowFilter):Promise\<UiWindow>; | Added|
25| ohos.uitest | UiComponent | pinchIn(scale: number): Promise\<void>; | Added|
26| ohos.uitest | UiComponent | pinchOut(scale: number): Promise\<void>; | Added|
27| ohos.uitest | UiComponent | getBoundsCenter(): Promise\<Point>; | Added|
28| ohos.uitest | WindowFilter | readonly  actived?: bool; | Added|
29| ohos.uitest | WindowFilter | readonly  focused?: bool; | Added|
30| ohos.uitest | WindowFilter | readonly  title?: string; | Added|
31| ohos.uitest | WindowFilter | readonly  bundleName?: string; | Added|
32| ohos.uitest | Point | readonly  Y: number; | Added|
33| ohos.uitest | Point | readonly  X: number; | Added|
34| ohos.uitest | WindowMode | FLOATING | Added|
35| ohos.uitest | WindowMode | SECONDARY | Added|
36| ohos.uitest | WindowMode | PRIMARY | Added|
37| ohos.uitest | WindowMode | FULLSCREEN | Added|
38| ohos.uitest | ResizeDirection | RIGHT_DOWN | Added|
39| ohos.uitest | ResizeDirection | RIGHT_UP | Added|
40| ohos.uitest | ResizeDirection | LEFT_DOWN | Added|
41| ohos.uitest | ResizeDirection | LEFT_UP | Added|
42| ohos.uitest | ResizeDirection | DOWN | Added|
43| ohos.uitest | ResizeDirection | UP | Added|
44| ohos.uitest | ResizeDirection | RIGHT | Added|
45| ohos.uitest | ResizeDirection | LEFT | Added|
46| ohos.uitest | UiDriver | swipe(startx:number,starty:number,endx:number,endy:number):Promise\<void>; | Deprecated|
47| ohos.uitest | UiDriver |old : drag(startx: number, starty: number, endx: number, endy: number): Promise\<void>;<br>new :  drag(startx: number, starty: number, endx: number, endy: number, speed?: number): Promise\<void>;| Updated|
48| ohos.uitest | UiComponent |old : scrollToBottom(): Promise\<void>;<br>new : scrollToTop(speed?: number): Promise\<void>;| Updated|
49| ohos.uitest | UiComponent |old : scrollToTop(): Promise\<void>;<br>new : scrollToTop(speed?: number): Promise\<void>; | Updated|
50