get_run
(**kwargs)¶Gets information about a run.
See also: AWS API Documentation
Request Syntax
response = client.get_run(
arn='string'
)
[REQUIRED]
The run's ARN.
{
'run': {
'arn': 'string',
'name': 'string',
'type': 'BUILTIN_FUZZ'|'BUILTIN_EXPLORER'|'WEB_PERFORMANCE_PROFILE'|'APPIUM_JAVA_JUNIT'|'APPIUM_JAVA_TESTNG'|'APPIUM_PYTHON'|'APPIUM_NODE'|'APPIUM_RUBY'|'APPIUM_WEB_JAVA_JUNIT'|'APPIUM_WEB_JAVA_TESTNG'|'APPIUM_WEB_PYTHON'|'APPIUM_WEB_NODE'|'APPIUM_WEB_RUBY'|'CALABASH'|'INSTRUMENTATION'|'UIAUTOMATION'|'UIAUTOMATOR'|'XCTEST'|'XCTEST_UI'|'REMOTE_ACCESS_RECORD'|'REMOTE_ACCESS_REPLAY',
'platform': 'ANDROID'|'IOS',
'created': datetime(2015, 1, 1),
'status': 'PENDING'|'PENDING_CONCURRENCY'|'PENDING_DEVICE'|'PROCESSING'|'SCHEDULING'|'PREPARING'|'RUNNING'|'COMPLETED'|'STOPPING',
'result': 'PENDING'|'PASSED'|'WARNED'|'FAILED'|'SKIPPED'|'ERRORED'|'STOPPED',
'started': datetime(2015, 1, 1),
'stopped': datetime(2015, 1, 1),
'counters': {
'total': 123,
'passed': 123,
'failed': 123,
'warned': 123,
'errored': 123,
'stopped': 123,
'skipped': 123
},
'message': 'string',
'totalJobs': 123,
'completedJobs': 123,
'billingMethod': 'METERED'|'UNMETERED',
'deviceMinutes': {
'total': 123.0,
'metered': 123.0,
'unmetered': 123.0
},
'networkProfile': {
'arn': 'string',
'name': 'string',
'description': 'string',
'type': 'CURATED'|'PRIVATE',
'uplinkBandwidthBits': 123,
'downlinkBandwidthBits': 123,
'uplinkDelayMs': 123,
'downlinkDelayMs': 123,
'uplinkJitterMs': 123,
'downlinkJitterMs': 123,
'uplinkLossPercent': 123,
'downlinkLossPercent': 123
},
'parsingResultUrl': 'string',
'resultCode': 'PARSING_FAILED'|'VPC_ENDPOINT_SETUP_FAILED',
'seed': 123,
'appUpload': 'string',
'eventCount': 123,
'jobTimeoutMinutes': 123,
'devicePoolArn': 'string',
'locale': 'string',
'radios': {
'wifi': True|False,
'bluetooth': True|False,
'nfc': True|False,
'gps': True|False
},
'location': {
'latitude': 123.0,
'longitude': 123.0
},
'customerArtifactPaths': {
'iosPaths': [
'string',
],
'androidPaths': [
'string',
],
'deviceHostPaths': [
'string',
]
},
'webUrl': 'string',
'skipAppResign': True|False,
'testSpecArn': 'string',
'deviceSelectionResult': {
'filters': [
{
'attribute': 'ARN'|'PLATFORM'|'OS_VERSION'|'MODEL'|'AVAILABILITY'|'FORM_FACTOR'|'MANUFACTURER'|'REMOTE_ACCESS_ENABLED'|'REMOTE_DEBUG_ENABLED'|'INSTANCE_ARN'|'INSTANCE_LABELS'|'FLEET_TYPE',
'operator': 'EQUALS'|'LESS_THAN'|'LESS_THAN_OR_EQUALS'|'GREATER_THAN'|'GREATER_THAN_OR_EQUALS'|'IN'|'NOT_IN'|'CONTAINS',
'values': [
'string',
]
},
],
'matchedDevicesCount': 123,
'maxDevices': 123
},
'vpcConfig': {
'securityGroupIds': [
'string',
],
'subnetIds': [
'string',
],
'vpcId': 'string'
}
}
}
Response Structure
Represents the result of a get run request.
The run to get results from.
The run's ARN.
The run's name.
The run's type.
Must be one of the following values:
Note
For Android, an app explorer that traverses an Android app, interacting with it and capturing screenshots at the same time.
The run's platform.
Allowed values include:
When the run was created.
The run's status.
Allowed values include:
The run's result.
Allowed values include:
The run's start time.
The run's stop time.
The run's result counters.
The total number of entities.
The number of passed entities.
The number of failed entities.
The number of warned entities.
The number of errored entities.
The number of stopped entities.
The number of skipped entities.
A message about the run's result.
The total number of jobs for the run.
The total number of completed jobs.
Specifies the billing method for a test run: metered
or unmetered
. If the parameter is not specified, the default value is metered
.
Note
If you have unmetered device slots, you must set this to unmetered
to use them. Otherwise, the run is counted toward metered device minutes.
Represents the total (metered or unmetered) minutes used by the test run.
When specified, represents the total minutes used by the resource to run tests.
When specified, represents only the sum of metered minutes used by the resource to run tests.
When specified, represents only the sum of unmetered minutes used by the resource to run tests.
The network profile being used for a test run.
The Amazon Resource Name (ARN) of the network profile.
The name of the network profile.
The description of the network profile.
The type of network profile. Valid values are listed here.
The data throughput rate in bits per second, as an integer from 0 to 104857600.
The data throughput rate in bits per second, as an integer from 0 to 104857600.
Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.
Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.
Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.
Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.
Proportion of transmitted packets that fail to arrive from 0 to 100 percent.
Proportion of received packets that fail to arrive from 0 to 100 percent.
Read-only URL for an object in an S3 bucket where you can get the parsing results of the test package. If the test package doesn't parse, the reason why it doesn't parse appears in the file that this URL points to.
Supporting field for the result field. Set only if result
is SKIPPED
. PARSING_FAILED
if the result is skipped because of test package parsing failure.
For fuzz tests, this is a seed to use for randomizing the UI fuzz test. Using the same seed value between tests ensures identical event sequences.
An app to upload or that has been uploaded.
For fuzz tests, this is the number of events, between 1 and 10000, that the UI fuzz test should perform.
The number of minutes the job executes before it times out.
The ARN of the device pool for the run.
Information about the locale that is used for the run.
Information about the radio states for the run.
True if Wi-Fi is enabled at the beginning of the test. Otherwise, false.
True if Bluetooth is enabled at the beginning of the test. Otherwise, false.
True if NFC is enabled at the beginning of the test. Otherwise, false.
True if GPS is enabled at the beginning of the test. Otherwise, false.
Information about the location that is used for the run.
The latitude.
The longitude.
Output CustomerArtifactPaths
object for the test run.
Comma-separated list of paths on the iOS device where the artifacts generated by the customer's tests are pulled from.
Comma-separated list of paths on the Android device where the artifacts generated by the customer's tests are pulled from.
Comma-separated list of paths in the test execution environment where the artifacts generated by the customer's tests are pulled from.
The Device Farm console URL for the recording of the run.
When set to true
, for private devices, Device Farm does not sign your app again. For public devices, Device Farm always signs your apps again.
For more information about how Device Farm re-signs your apps, see Do you modify my app? in the AWS Device Farm FAQs .
The ARN of the YAML-formatted test specification for the run.
The results of a device filter used to select the devices for a test run.
The filters in a device selection result.
Represents a device filter used to select a set of devices to be included in a test run. This data structure is passed in as the deviceSelectionConfiguration
parameter to ScheduleRun
. For an example of the JSON request syntax, see ScheduleRun.
It is also passed in as the filters
parameter to ListDevices
. For an example of the JSON request syntax, see ListDevices.
The aspect of a device such as platform or model used as the selection criteria in a device filter.
The supported operators for each attribute are provided in the following list.
ARN
The Amazon Resource Name (ARN) of the device (for example, arn:aws:devicefarm:us-west-2::device:12345Example
).
Supported operators: EQUALS
, IN
, NOT_IN
PLATFORM
The device platform. Valid values are ANDROID or IOS.
Supported operators: EQUALS
OS_VERSION
The operating system version (for example, 10.3.2).
Supported operators: EQUALS
, GREATER_THAN
, GREATER_THAN_OR_EQUALS
, IN
, LESS_THAN
, LESS_THAN_OR_EQUALS
, NOT_IN
MODEL
The device model (for example, iPad 5th Gen).
Supported operators: CONTAINS
, EQUALS
, IN
, NOT_IN
AVAILABILITY
The current availability of the device. Valid values are AVAILABLE, HIGHLY_AVAILABLE, BUSY, or TEMPORARY_NOT_AVAILABLE.
Supported operators: EQUALS
FORM_FACTOR
The device form factor. Valid values are PHONE or TABLET.
Supported operators: EQUALS
MANUFACTURER
The device manufacturer (for example, Apple).
Supported operators: EQUALS
, IN
, NOT_IN
REMOTE_ACCESS_ENABLED
Whether the device is enabled for remote access. Valid values are TRUE or FALSE.
Supported operators: EQUALS
REMOTE_DEBUG_ENABLED
Whether the device is enabled for remote debugging. Valid values are TRUE or FALSE.
Supported operators: EQUALS
Because remote debugging is no longer supported, this filter is ignored.
INSTANCE_ARN
The Amazon Resource Name (ARN) of the device instance.
Supported operators: EQUALS
, IN
, NOT_IN
INSTANCE_LABELS
The label of the device instance.
Supported operators: CONTAINS
FLEET_TYPE
The fleet type. Valid values are PUBLIC or PRIVATE.
Supported operators: EQUALS
Specifies how Device Farm compares the filter's attribute to the value. See the attribute descriptions.
An array of one or more filter values used in a device filter.
Operator Values
Attribute Values
The number of devices that matched the device filter selection criteria.
The maximum number of devices to be selected by a device filter and included in a test run.
The VPC security groups and subnets that are attached to a project.
An array of one or more security groups IDs in your Amazon VPC.
An array of one or more subnet IDs in your Amazon VPC.
The ID of the Amazon VPC.
Exceptions
DeviceFarm.Client.exceptions.ArgumentException
DeviceFarm.Client.exceptions.NotFoundException
DeviceFarm.Client.exceptions.LimitExceededException
DeviceFarm.Client.exceptions.ServiceAccountException
Examples
The following example gets information about a specific test run.
response = client.get_run(
# You can get the run ARN by using the list-runs CLI command.
arn='arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE',
)
print(response)
Expected Output:
{
'run': {
'name': 'My Test Run',
'type': 'BUILTIN_EXPLORER',
'arn': 'arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE',
'billingMethod': 'METERED',
'completedJobs': 0,
'counters': {
'errored': 0,
'failed': 0,
'passed': 0,
'skipped': 0,
'stopped': 0,
'total': 0,
'warned': 0,
},
'created': datetime(2016, 8, 31, 18, 18, 29, 2, 244, 0),
'deviceMinutes': {
'metered': 0.0,
'total': 0.0,
'unmetered': 0.0,
},
'platform': 'ANDROID',
'result': 'PENDING',
'status': 'RUNNING',
'totalJobs': 3,
},
'ResponseMetadata': {
'...': '...',
},
}