UNPKG

webdriverio

Version:

Next-gen browser and mobile automation test framework for Node.js

28 lines 1.31 kB
/** * * Get performance data for a specific application. Returns system state information like cpu, * memory, network traffic, and battery. Use `getPerformanceDataTypes()` to find available * data types. * * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method. * * <example> :getPerformanceData.js it('should get performance data for an app', async () => { // Get available data types first const types = await browser.getPerformanceDataTypes() // Get CPU info for an app const cpuData = await browser.getPerformanceData('com.example.app', 'cpuinfo', 5) }) * </example> * * @param {string} packageName The package name of the application to get performance data for * @param {string} dataType The type of performance data to retrieve (e.g. cpuinfo, memoryinfo) * @param {number} [dataReadTimeout] Timeout in seconds to wait for the data to be read * * @returns {`Promise<string[]>`} Performance data for the requested type * * @support ["android"] */ export declare function getPerformanceData(this: WebdriverIO.Browser, packageName: string, dataType: string, dataReadTimeout?: number): Promise<string[]>; //# sourceMappingURL=getPerformanceData.d.ts.map