schedule_run
async
¶
schedule_run(
project_arn: AmazonResourceName,
test: ScheduleRunTest,
*,
config_overrides: Optional[AsyncDeviceFarmClientConfig] = 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.
>>> await 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/async_device_farm.py
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 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 | |