get_test
(**kwargs)¶Gets information about a test.
See also: AWS API Documentation
Request Syntax
response = client.get_test(
arn='string'
)
[REQUIRED]
The test's ARN.
{
'test': {
'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',
'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',
'deviceMinutes': {
'total': 123.0,
'metered': 123.0,
'unmetered': 123.0
}
}
}
Response Structure
Represents the result of a get test request.
A test condition that is evaluated.
The test's ARN.
The test's name.
The test'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.
When the test was created.
The test's status.
Allowed values include:
The test's result.
Allowed values include:
The test's start time.
The test's stop time.
The test'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 test's result.
Represents the total (metered or unmetered) minutes used by the test.
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.
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.
response = client.get_test(
# You can get the test ARN by using the list-tests CLI command.
arn='arn:aws:devicefarm:us-west-2:123456789101:test:EXAMPLE-GUID-123-456',
)
print(response)
Expected Output:
{
'test': {
},
'ResponseMetadata': {
'...': '...',
},
}