测试人社区

Appium-performance-data-types

Get Performance Data Types

Returns the information types of the system state which is supported to read as like cpu, memory, network traffic, and battery
//: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/device/performance-data/performance-data-types.yml)

Example Usage

// Java
List<String> performanceTypes = driver.getSupportedPerformanceDataTypes();

# Python
self.driver.get_performance_data_types()

// Javascript
// webdriver.io example
driver.getPerformanceDataTypes();

// wd example
await driver.getSupportedPerformanceDataTypes();

# Ruby
# ruby_lib example
get_performance_data_types

# ruby_lib_core example
@driver.get_performance_data_types

# PHP
// TODO PHP sample

// C#
// Not supported

Support

Appium Server

Platform Driver Platform Versions Appium Version Driver Version
iOS XCUITest None None None
UIAutomation None None None
Android Espresso ?+ 1.9.0+ All
UiAutomator2 ?+ 1.6.0+ All
UiAutomator 4.3+ All All
Mac Mac None None None
Windows Windows None None None

Appium Clients

HTTP API Specifications

Endpoint

POST /session/:session_id/appium/performanceData/types

URL Parameters

name description
session_id ID of the session to route the command to

JSON Parameters

None

Response

The available performance data types (cpuinfo|batteryinfo|networkinfo|memoryinfo) (array<string>)

See Also

官方链接为:http://appium.io/docs/en/commands/device/performance-data/performance-data-types