1# 测试框架子系统JS API变更 2 3OpenHarmony 3.2 Beta2版本相较于OpenHarmony 3.2 Beta1版本,测试框架子系统的API变更如下: 4 5## 接口变更 6 7| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | 8|---|---|---|---| 9| ohos.uitest | UiWindow | close():Promise\<bool>; | 新增 | 10| ohos.uitest | UiWindow | resume():Promise\<bool>; | 新增 | 11| ohos.uitest | UiWindow | minimize():Promise\<bool>; | 新增 | 12| ohos.uitest | UiWindow | maximize():Promise\<bool>; | 新增 | 13| ohos.uitest | UiWindow | split():Promise\<bool>; | 新增 | 14| ohos.uitest | UiWindow | resize(wide: number, height: number, direction: ResizeDirection):Promise\<bool>; | 新增 | 15| ohos.uitest | UiWindow | moveTo(x: number, y: number):Promise\<bool>; | 新增 | 16| ohos.uitest | UiWindow | focus():Promise\<bool>; | 新增 | 17| ohos.uitest | UiWindow | isActived():Promise\<bool>; | 新增 | 18| ohos.uitest | UiWindow | isFocused():Promise\<bool>; | 新增 | 19| ohos.uitest | UiWindow | getWindowMode():Promise\<WindowMode>; | 新增 | 20| ohos.uitest | UiWindow | getTitle():Promise\<string>; | 新增 | 21| ohos.uitest | UiWindow | getBounds():Promise\<Rect>; | 新增 | 22| ohos.uitest | UiWindow | getBundleName():Promise\<string>; | 新增 | 23| ohos.uitest | UiDriver | triggerCombineKeys(key0: number, key1: number, key2?: number): Promise\<void>; | 新增 | 24| ohos.uitest | UiDriver | findWindow(filter:WindowFilter):Promise\<UiWindow>; | 新增 | 25| ohos.uitest | UiComponent | pinchIn(scale: number): Promise\<void>; | 新增 | 26| ohos.uitest | UiComponent | pinchOut(scale: number): Promise\<void>; | 新增 | 27| ohos.uitest | UiComponent | getBoundsCenter(): Promise\<Point>; | 新增 | 28| ohos.uitest | WindowFilter | readonly actived?: bool; | 新增 | 29| ohos.uitest | WindowFilter | readonly focused?: bool; | 新增 | 30| ohos.uitest | WindowFilter | readonly title?: string; | 新增 | 31| ohos.uitest | WindowFilter | readonly bundleName?: string; | 新增 | 32| ohos.uitest | Point | readonly Y: number; | 新增 | 33| ohos.uitest | Point | readonly X: number; | 新增 | 34| ohos.uitest | WindowMode | FLOATING | 新增 | 35| ohos.uitest | WindowMode | SECONDARY | 新增 | 36| ohos.uitest | WindowMode | PRIMARY | 新增 | 37| ohos.uitest | WindowMode | FULLSCREEN | 新增 | 38| ohos.uitest | ResizeDirection | RIGHT_DOWN | 新增 | 39| ohos.uitest | ResizeDirection | RIGHT_UP | 新增 | 40| ohos.uitest | ResizeDirection | LEFT_DOWN | 新增 | 41| ohos.uitest | ResizeDirection | LEFT_UP | 新增 | 42| ohos.uitest | ResizeDirection | DOWN | 新增 | 43| ohos.uitest | ResizeDirection | UP | 新增 | 44| ohos.uitest | ResizeDirection | RIGHT | 新增 | 45| ohos.uitest | ResizeDirection | LEFT | 新增 | 46| ohos.uitest | UiDriver | swipe(startx:number,starty:number,endx:number,endy:number):Promise\<void>; | 废弃 | 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>;| 变更 | 48| ohos.uitest | UiComponent |old : scrollToBottom(): Promise\<void>;<br>new : scrollToTop(speed?: number): Promise\<void>;| 变更 | 49| ohos.uitest | UiComponent |old : scrollToTop(): Promise\<void>;<br>new : scrollToTop(speed?: number): Promise\<void>; | 变更 | 50 51