#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for Run
Implementations
sourceimpl Builder
impl Builder
sourcepub fn type(self, input: TestType) -> Self
pub fn type(self, input: TestType) -> Self
The run's type.
Must be one of the following values:
-
BUILTIN_FUZZ
-
BUILTIN_EXPLORER
For Android, an app explorer that traverses an Android app, interacting with it and capturing screenshots at the same time.
-
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
sourcepub fn set_type(self, input: Option<TestType>) -> Self
pub fn set_type(self, input: Option<TestType>) -> Self
The run's type.
Must be one of the following values:
-
BUILTIN_FUZZ
-
BUILTIN_EXPLORER
For Android, an app explorer that traverses an Android app, interacting with it and capturing screenshots at the same time.
-
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
sourcepub fn platform(self, input: DevicePlatform) -> Self
pub fn platform(self, input: DevicePlatform) -> Self
The run's platform.
Allowed values include:
-
ANDROID
-
IOS
sourcepub fn set_platform(self, input: Option<DevicePlatform>) -> Self
pub fn set_platform(self, input: Option<DevicePlatform>) -> Self
The run's platform.
Allowed values include:
-
ANDROID
-
IOS
sourcepub fn set_created(self, input: Option<DateTime>) -> Self
pub fn set_created(self, input: Option<DateTime>) -> Self
When the run was created.
sourcepub fn status(self, input: ExecutionStatus) -> Self
pub fn status(self, input: ExecutionStatus) -> Self
The run's status.
Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
sourcepub fn set_status(self, input: Option<ExecutionStatus>) -> Self
pub fn set_status(self, input: Option<ExecutionStatus>) -> Self
The run's status.
Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
sourcepub fn result(self, input: ExecutionResult) -> Self
pub fn result(self, input: ExecutionResult) -> Self
The run's result.
Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
sourcepub fn set_result(self, input: Option<ExecutionResult>) -> Self
pub fn set_result(self, input: Option<ExecutionResult>) -> Self
The run's result.
Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
sourcepub fn set_started(self, input: Option<DateTime>) -> Self
pub fn set_started(self, input: Option<DateTime>) -> Self
The run's start time.
sourcepub fn set_stopped(self, input: Option<DateTime>) -> Self
pub fn set_stopped(self, input: Option<DateTime>) -> Self
The run's stop time.
sourcepub fn set_counters(self, input: Option<Counters>) -> Self
pub fn set_counters(self, input: Option<Counters>) -> Self
The run's result counters.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
A message about the run's result.
sourcepub fn total_jobs(self, input: i32) -> Self
pub fn total_jobs(self, input: i32) -> Self
The total number of jobs for the run.
sourcepub fn set_total_jobs(self, input: Option<i32>) -> Self
pub fn set_total_jobs(self, input: Option<i32>) -> Self
The total number of jobs for the run.
sourcepub fn completed_jobs(self, input: i32) -> Self
pub fn completed_jobs(self, input: i32) -> Self
The total number of completed jobs.
sourcepub fn set_completed_jobs(self, input: Option<i32>) -> Self
pub fn set_completed_jobs(self, input: Option<i32>) -> Self
The total number of completed jobs.
sourcepub fn billing_method(self, input: BillingMethod) -> Self
pub fn billing_method(self, input: BillingMethod) -> Self
Specifies the billing method for a test run: metered or unmetered. If the parameter is not specified, the default value is metered.
If you have unmetered device slots, you must set this to unmetered to use them. Otherwise, the run is counted toward metered device minutes.
sourcepub fn set_billing_method(self, input: Option<BillingMethod>) -> Self
pub fn set_billing_method(self, input: Option<BillingMethod>) -> Self
Specifies the billing method for a test run: metered or unmetered. If the parameter is not specified, the default value is metered.
If you have unmetered device slots, you must set this to unmetered to use them. Otherwise, the run is counted toward metered device minutes.
sourcepub fn device_minutes(self, input: DeviceMinutes) -> Self
pub fn device_minutes(self, input: DeviceMinutes) -> Self
Represents the total (metered or unmetered) minutes used by the test run.
sourcepub fn set_device_minutes(self, input: Option<DeviceMinutes>) -> Self
pub fn set_device_minutes(self, input: Option<DeviceMinutes>) -> Self
Represents the total (metered or unmetered) minutes used by the test run.
sourcepub fn network_profile(self, input: NetworkProfile) -> Self
pub fn network_profile(self, input: NetworkProfile) -> Self
The network profile being used for a test run.
sourcepub fn set_network_profile(self, input: Option<NetworkProfile>) -> Self
pub fn set_network_profile(self, input: Option<NetworkProfile>) -> Self
The network profile being used for a test run.
sourcepub fn parsing_result_url(self, input: impl Into<String>) -> Self
pub fn parsing_result_url(self, input: impl Into<String>) -> Self
Read-only URL for an object in an S3 bucket where you can get the parsing results of the test package. If the test package doesn't parse, the reason why it doesn't parse appears in the file that this URL points to.
sourcepub fn set_parsing_result_url(self, input: Option<String>) -> Self
pub fn set_parsing_result_url(self, input: Option<String>) -> Self
Read-only URL for an object in an S3 bucket where you can get the parsing results of the test package. If the test package doesn't parse, the reason why it doesn't parse appears in the file that this URL points to.
sourcepub fn result_code(self, input: ExecutionResultCode) -> Self
pub fn result_code(self, input: ExecutionResultCode) -> Self
Supporting field for the result field. Set only if result is SKIPPED. PARSING_FAILED if the result is skipped because of test package parsing failure.
sourcepub fn set_result_code(self, input: Option<ExecutionResultCode>) -> Self
pub fn set_result_code(self, input: Option<ExecutionResultCode>) -> Self
Supporting field for the result field. Set only if result is SKIPPED. PARSING_FAILED if the result is skipped because of test package parsing failure.
sourcepub fn seed(self, input: i32) -> Self
pub fn seed(self, input: i32) -> Self
For fuzz tests, this is a seed to use for randomizing the UI fuzz test. Using the same seed value between tests ensures identical event sequences.
sourcepub fn set_seed(self, input: Option<i32>) -> Self
pub fn set_seed(self, input: Option<i32>) -> Self
For fuzz tests, this is a seed to use for randomizing the UI fuzz test. Using the same seed value between tests ensures identical event sequences.
sourcepub fn app_upload(self, input: impl Into<String>) -> Self
pub fn app_upload(self, input: impl Into<String>) -> Self
An app to upload or that has been uploaded.
sourcepub fn set_app_upload(self, input: Option<String>) -> Self
pub fn set_app_upload(self, input: Option<String>) -> Self
An app to upload or that has been uploaded.
sourcepub fn event_count(self, input: i32) -> Self
pub fn event_count(self, input: i32) -> Self
For fuzz tests, this is the number of events, between 1 and 10000, that the UI fuzz test should perform.
sourcepub fn set_event_count(self, input: Option<i32>) -> Self
pub fn set_event_count(self, input: Option<i32>) -> Self
For fuzz tests, this is the number of events, between 1 and 10000, that the UI fuzz test should perform.
sourcepub fn job_timeout_minutes(self, input: i32) -> Self
pub fn job_timeout_minutes(self, input: i32) -> Self
The number of minutes the job executes before it times out.
sourcepub fn set_job_timeout_minutes(self, input: Option<i32>) -> Self
pub fn set_job_timeout_minutes(self, input: Option<i32>) -> Self
The number of minutes the job executes before it times out.
sourcepub fn device_pool_arn(self, input: impl Into<String>) -> Self
pub fn device_pool_arn(self, input: impl Into<String>) -> Self
The ARN of the device pool for the run.
sourcepub fn set_device_pool_arn(self, input: Option<String>) -> Self
pub fn set_device_pool_arn(self, input: Option<String>) -> Self
The ARN of the device pool for the run.
sourcepub fn locale(self, input: impl Into<String>) -> Self
pub fn locale(self, input: impl Into<String>) -> Self
Information about the locale that is used for the run.
sourcepub fn set_locale(self, input: Option<String>) -> Self
pub fn set_locale(self, input: Option<String>) -> Self
Information about the locale that is used for the run.
sourcepub fn set_radios(self, input: Option<Radios>) -> Self
pub fn set_radios(self, input: Option<Radios>) -> Self
Information about the radio states for the run.
sourcepub fn location(self, input: Location) -> Self
pub fn location(self, input: Location) -> Self
Information about the location that is used for the run.
sourcepub fn set_location(self, input: Option<Location>) -> Self
pub fn set_location(self, input: Option<Location>) -> Self
Information about the location that is used for the run.
sourcepub fn customer_artifact_paths(self, input: CustomerArtifactPaths) -> Self
pub fn customer_artifact_paths(self, input: CustomerArtifactPaths) -> Self
Output CustomerArtifactPaths object for the test run.
sourcepub fn set_customer_artifact_paths(
self,
input: Option<CustomerArtifactPaths>
) -> Self
pub fn set_customer_artifact_paths(
self,
input: Option<CustomerArtifactPaths>
) -> Self
Output CustomerArtifactPaths object for the test run.
sourcepub fn web_url(self, input: impl Into<String>) -> Self
pub fn web_url(self, input: impl Into<String>) -> Self
The Device Farm console URL for the recording of the run.
sourcepub fn set_web_url(self, input: Option<String>) -> Self
pub fn set_web_url(self, input: Option<String>) -> Self
The Device Farm console URL for the recording of the run.
sourcepub fn skip_app_resign(self, input: bool) -> Self
pub fn skip_app_resign(self, input: bool) -> Self
When set to true, for private devices, Device Farm does not sign your app again. For public devices, Device Farm always signs your apps again.
For more information about how Device Farm re-signs your apps, see Do you modify my app? in the AWS Device Farm FAQs.
sourcepub fn set_skip_app_resign(self, input: Option<bool>) -> Self
pub fn set_skip_app_resign(self, input: Option<bool>) -> Self
When set to true, for private devices, Device Farm does not sign your app again. For public devices, Device Farm always signs your apps again.
For more information about how Device Farm re-signs your apps, see Do you modify my app? in the AWS Device Farm FAQs.
sourcepub fn test_spec_arn(self, input: impl Into<String>) -> Self
pub fn test_spec_arn(self, input: impl Into<String>) -> Self
The ARN of the YAML-formatted test specification for the run.
sourcepub fn set_test_spec_arn(self, input: Option<String>) -> Self
pub fn set_test_spec_arn(self, input: Option<String>) -> Self
The ARN of the YAML-formatted test specification for the run.
sourcepub fn device_selection_result(self, input: DeviceSelectionResult) -> Self
pub fn device_selection_result(self, input: DeviceSelectionResult) -> Self
The results of a device filter used to select the devices for a test run.
sourcepub fn set_device_selection_result(
self,
input: Option<DeviceSelectionResult>
) -> Self
pub fn set_device_selection_result(
self,
input: Option<DeviceSelectionResult>
) -> Self
The results of a device filter used to select the devices for a test run.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more