Skip to main content

jobs

Creates, updates, deletes, gets or lists a jobs resource.

Overview

Namejobs
TypeResource
Idaws.devicefarm.jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe job's name.
arnstringThe job's ARN. (pattern: <code>^arn:aws:devicefarm:.+</code>)
countersobjectThe job's result counters.
createdstring (date-time)When the job was created.
deviceobjectThe device (phone or tablet).
device_minutesobjectRepresents the total (metered or unmetered) minutes used by the job.
insightsobjectThe insights for the job, including the report status and test-level metrics. This field contains data only if you specified insightsTypes when you scheduled the run.
instance_arnstringThe ARN of the instance. (pattern: <code>^arn:aws:devicefarm:.+</code>)
messagestringA message about the job's result.
resultstringThe job's result. Allowed values include: PENDING PASSED WARNED FAILED SKIPPED ERRORED STOPPED (PENDING, PASSED, WARNED, FAILED, SKIPPED, ERRORED, STOPPED)
startedstring (date-time)The job's start time.
statusstringThe job's status. Allowed values include: PENDING PENDING_CONCURRENCY PENDING_DEVICE PROCESSING SCHEDULING PREPARING RUNNING COMPLETED STOPPING (PENDING, PENDING_CONCURRENCY, PENDING_DEVICE, PROCESSING, SCHEDULING, PREPARING, RUNNING, COMPLETED, STOPPING)
stoppedstring (date-time)The job's stop time.
type_stringThe job's type. Allowed values include the following: BUILTIN_FUZZ 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 INSTRUMENTATION XCTEST XCTEST_UI (BUILTIN_FUZZ, 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, INSTRUMENTATION, XCTEST, XCTEST_UI)
video_capturebooleanThis value is set to true if video capture is enabled. Otherwise, it is set to false.
video_endpointstringThe endpoint for streaming device video.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_jobselectregionGets information about a job.
list_jobsexecregion, arnGets information about jobs for a given test run.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Gets information about a job.

SELECT
name,
arn,
counters,
created,
device,
device_minutes,
insights,
instance_arn,
message,
result,
started,
status,
stopped,
type_,
video_capture,
video_endpoint
FROM aws.devicefarm.jobs
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

Gets information about jobs for a given test run.

EXEC aws.devicefarm.jobs.list_jobs
@region='{{ region }}' --required
@@json=
'{
"arn": "{{ arn }}",
"nextToken": "{{ nextToken }}"
}'
;