@sap_oss/wdio-qmate-service
Version:
[](https://api.reuse.software/info/github.com/SAP/wdio-qmate-service)[](http
29 lines (28 loc) • 1.48 kB
TypeScript
/**
* @class component
* @memberof util
* @description This class provides functions for writing component tests with qmate-proxy-service
*/
export declare class Component {
private _entryPointFolderPath;
/**
* @function loadEntryPoint
* @memberOf util.component
* @description Will be called in component test scripts. Returns a previously stored entry point object for sharing information (like a draft id) between preparation and the actual component tests.
* @param {String} [folderPath="./entrypoints"] - Custom folder path where entry points are stored.
* @returns {Object} The data object of the stored entry point.
* @example const entryPoint = util.component.loadEntryPoint();
*/
loadEntryPoint(folderPath?: string): Promise<any>;
/**
* @function storeEntryPoint
* @memberOf util.component
* @description Will be called in preparation scripts before component tests. Stores an entry point object for sharing information (like a draft id) between preparation and the actual component tests.
* @param {Object} data - The data object of the entry point to store.
* @param {String} [folderPath="./entrypoints"] - Custom folder path where entry points are stored.
* @example const entryPoint = util.component.storeEntryPoint({"draftId": "0123456789"});
*/
storeEntryPoint(data: any, folderPath?: string): Promise<void>;
}
declare const _default: Component;
export default _default;