schedule_run
¶
schedule_run(
project_arn: AmazonResourceName,
test: ScheduleRunTest,
*,
config_overrides: Optional[DeviceFarmClientConfig] = None,
app_arn: Optional[AmazonResourceName] = None,
device_pool_arn: Optional[AmazonResourceName] = None,
device_selection_configuration: Optional[DeviceSelectionConfiguration] = None,
name: Optional[Name] = None,
configuration: Optional[ScheduleRunConfiguration] = None,
execution_configuration: Optional[ExecutionConfiguration] = None,
) -> ScheduleRunResult
Schedules a run.
Parameters:
-
project_arn(AmazonResourceName) –The ARN of the project for the run to be scheduled.
-
app_arn(Optional[AmazonResourceName], default:None) –The ARN of an application package to run tests against, created with CreateUpload. See ListUploads.
-
device_pool_arn(Optional[AmazonResourceName], default:None) –The ARN of the device pool for the run to be scheduled.
-
device_selection_configuration(Optional[DeviceSelectionConfiguration], default:None) –The filter criteria used to dynamically select a set of devices for a test run and the maximum number of devices to be included in the run.
Either
devicePoolArnordeviceSelectionConfigurationis required in a request. -
name(Optional[Name], default:None) –The name for the run to be scheduled.
-
test(ScheduleRunTest) –Information about the test for the run to be scheduled.
-
configuration(Optional[ScheduleRunConfiguration], default:None) –Information about the settings for the run to be scheduled.
-
execution_configuration(Optional[ExecutionConfiguration], default:None) –Specifies configuration information about a test run, such as the execution timeout (in minutes).
Raises:
-
ArgumentException–An invalid argument was specified.
-
IdempotencyException–An entity with the same name already exists.
-
LimitExceededException–A limit was exceeded.
-
NotFoundException–The specified entity was not found.
-
ServiceAccountException–There was a problem with the service account.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To schedule a test run The following example schedules a test run named MyRun.
>>> client.schedule_run(project_arn='arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456', device_pool_arn='arn:aws:devicefarm:us-west-2:123456789101:pool:EXAMPLE-GUID-123-456', name='MyRun', test={'type': 'APPIUM_JAVA_JUNIT', 'testPackageArn': 'arn:aws:devicefarm:us-west-2:123456789101:test:EXAMPLE-GUID-123-456'})
Source code in docs_src/capo_device_farm/_services/device_farm.py
4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 | |