Struct aws_sdk_devicefarm::types::builders::TestBuilder
source · #[non_exhaustive]pub struct TestBuilder { /* private fields */ }Expand description
A builder for Test.
Implementations§
source§impl TestBuilder
impl TestBuilder
sourcepub fn type(self, input: TestType) -> Self
pub fn type(self, input: TestType) -> Self
The test'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 test'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 get_type(&self) -> &Option<TestType>
pub fn get_type(&self) -> &Option<TestType>
The test'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_created(self, input: Option<DateTime>) -> Self
pub fn set_created(self, input: Option<DateTime>) -> Self
When the test was created.
sourcepub fn get_created(&self) -> &Option<DateTime>
pub fn get_created(&self) -> &Option<DateTime>
When the test was created.
sourcepub fn status(self, input: ExecutionStatus) -> Self
pub fn status(self, input: ExecutionStatus) -> Self
The test'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 test's status.
Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
sourcepub fn get_status(&self) -> &Option<ExecutionStatus>
pub fn get_status(&self) -> &Option<ExecutionStatus>
The test'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 test'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 test's result.
Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
sourcepub fn get_result(&self) -> &Option<ExecutionResult>
pub fn get_result(&self) -> &Option<ExecutionResult>
The test'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 test's start time.
sourcepub fn get_started(&self) -> &Option<DateTime>
pub fn get_started(&self) -> &Option<DateTime>
The test's start time.
sourcepub fn set_stopped(self, input: Option<DateTime>) -> Self
pub fn set_stopped(self, input: Option<DateTime>) -> Self
The test's stop time.
sourcepub fn get_stopped(&self) -> &Option<DateTime>
pub fn get_stopped(&self) -> &Option<DateTime>
The test's stop time.
sourcepub fn set_counters(self, input: Option<Counters>) -> Self
pub fn set_counters(self, input: Option<Counters>) -> Self
The test's result counters.
sourcepub fn get_counters(&self) -> &Option<Counters>
pub fn get_counters(&self) -> &Option<Counters>
The test'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 test's result.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
A message about the test's result.
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.
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.
sourcepub fn get_device_minutes(&self) -> &Option<DeviceMinutes>
pub fn get_device_minutes(&self) -> &Option<DeviceMinutes>
Represents the total (metered or unmetered) minutes used by the test.
Trait Implementations§
source§impl Clone for TestBuilder
impl Clone for TestBuilder
source§fn clone(&self) -> TestBuilder
fn clone(&self) -> TestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TestBuilder
impl Debug for TestBuilder
source§impl Default for TestBuilder
impl Default for TestBuilder
source§fn default() -> TestBuilder
fn default() -> TestBuilder
source§impl PartialEq for TestBuilder
impl PartialEq for TestBuilder
source§fn eq(&self, other: &TestBuilder) -> bool
fn eq(&self, other: &TestBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TestBuilder
Auto Trait Implementations§
impl Freeze for TestBuilder
impl RefUnwindSafe for TestBuilder
impl Send for TestBuilder
impl Sync for TestBuilder
impl Unpin for TestBuilder
impl UnwindSafe for TestBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more