35 / 66 · 09 Mobile & Cross-Platform Testing · Cloud Device Farms← prev⊞ allnext →☰ Read as one page
6.5AWS Device Farm
AWS Device Farm is pay-per-minute with no subscription, making it cost-effective for teams that run tests less frequently:
# Run tests on AWS Device Farm
import boto3
def create_test_run(project_arn, app_arn, test_package_arn):
client = boto3.client('devicefarm', region_name='us-west-2')
# Create a device pool (or use a curated one)
run = client.schedule_run(
projectArn=project_arn,
appArn=app_arn,
test={
'type': 'APPIUM_PYTHON',
'testPackageArn': test_package_arn,
},
devicePoolArn='arn:aws:devicefarm:us-west-2::devicepool:TOP_DEVICES',
configuration={
'jobTimeoutMinutes': 30,
},
)
return run['run']['arn']