KTestHelper
kds-plugin-document / Exports / KTestHelper
Interface: KTestHelper
Deprecated
酷大师测试帮助器
插件开发者不应使用这一接口
The KTestHelper class contains some utilities that are only used for testing. Plugin developers shouldn't use this interface for it plugin development, as it would rapidly change and might also be removed later
Table of contents
Methods
Methods
executeCmd
▸ Private
executeCmd(cmd
): HostPromise
<boolean
>
used for automation test only!! execute test command.
Parameters
Name | Type |
---|---|
cmd | string |
Returns
HostPromise
<boolean
>
Defined in
api.d.ts:3948
setDesign
▸ Private
setDesign(id
, needSave
): HostPromise
<boolean
>
used for automation test only!! reset the current design.
Parameters
Name | Type |
---|---|
id | string |
needSave | boolean |
Returns
HostPromise
<boolean
>
Defined in
api.d.ts:3942
toDesignInfo
▸ toDesignInfo(): string
convert the design into design information string.
Returns
string
string in Json format
Defined in
api.d.ts:3936