Struct aws_sdk_devicefarm::types::builders::ScheduleRunTestBuilder
source · #[non_exhaustive]pub struct ScheduleRunTestBuilder { /* private fields */ }Expand description
A builder for ScheduleRunTest.
Implementations§
source§impl ScheduleRunTestBuilder
impl ScheduleRunTestBuilder
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 test_package_arn(self, input: impl Into<String>) -> Self
pub fn test_package_arn(self, input: impl Into<String>) -> Self
The ARN of the uploaded test to be run.
sourcepub fn set_test_package_arn(self, input: Option<String>) -> Self
pub fn set_test_package_arn(self, input: Option<String>) -> Self
The ARN of the uploaded test to be run.
sourcepub fn get_test_package_arn(&self) -> &Option<String>
pub fn get_test_package_arn(&self) -> &Option<String>
The ARN of the uploaded test to be run.
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.
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.
sourcepub fn get_test_spec_arn(&self) -> &Option<String>
pub fn get_test_spec_arn(&self) -> &Option<String>
The ARN of the YAML-formatted test specification.
sourcepub fn set_filter(self, input: Option<String>) -> Self
pub fn set_filter(self, input: Option<String>) -> Self
The test's filter.
sourcepub fn get_filter(&self) -> &Option<String>
pub fn get_filter(&self) -> &Option<String>
The test's filter.
sourcepub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to parameters.
To override the contents of this collection use set_parameters.
The test's parameters, such as test framework parameters and fixture settings. Parameters are represented by name-value pairs of strings.
For all tests:
-
app_performance_monitoring: Performance monitoring is enabled by default. Set this parameter to false to disable it.
For Calabash tests:
-
profile: A cucumber profile (for example,
my_profile_name). -
tags: You can limit execution to features or scenarios that have (or don't have) certain tags (for example, @smoke or @smoke,~@wip).
For Appium tests (all types):
-
appium_version: The Appium version. Currently supported values are 1.6.5 (and later), latest, and default.
-
latest runs the latest Appium version supported by Device Farm (1.9.1).
-
For default, Device Farm selects a compatible version of Appium for the device. The current behavior is to run 1.7.2 on Android devices and iOS 9 and earlier and 1.7.2 for iOS 10 and later.
-
This behavior is subject to change.
-
For fuzz tests (Android only):
-
event_count: The number of events, between 1 and 10000, that the UI fuzz test should perform.
-
throttle: The time, in ms, between 0 and 1000, that the UI fuzz test should wait between events.
-
seed: A seed to use for randomizing the UI fuzz test. Using the same seed value between tests ensures identical event sequences.
For Explorer tests:
-
username: A user name to use if the Explorer encounters a login form. If not supplied, no user name is inserted.
-
password: A password to use if the Explorer encounters a login form. If not supplied, no password is inserted.
For Instrumentation:
-
filter: A test filter string. Examples:
-
Running a single test case:
com.android.abc.Test1 -
Running a single test:
com.android.abc.Test1#smoke -
Running multiple tests:
com.android.abc.Test1,com.android.abc.Test2
-
For XCTest and XCTestUI:
-
filter: A test filter string. Examples:
-
Running a single test class:
LoginTests -
Running a multiple test classes:
LoginTests,SmokeTests -
Running a single test:
LoginTests/testValid -
Running multiple tests:
LoginTests/testValid,LoginTests/testInvalid
-
For UIAutomator:
-
filter: A test filter string. Examples:
-
Running a single test case:
com.android.abc.Test1 -
Running a single test:
com.android.abc.Test1#smoke -
Running multiple tests:
com.android.abc.Test1,com.android.abc.Test2
-
sourcepub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
The test's parameters, such as test framework parameters and fixture settings. Parameters are represented by name-value pairs of strings.
For all tests:
-
app_performance_monitoring: Performance monitoring is enabled by default. Set this parameter to false to disable it.
For Calabash tests:
-
profile: A cucumber profile (for example,
my_profile_name). -
tags: You can limit execution to features or scenarios that have (or don't have) certain tags (for example, @smoke or @smoke,~@wip).
For Appium tests (all types):
-
appium_version: The Appium version. Currently supported values are 1.6.5 (and later), latest, and default.
-
latest runs the latest Appium version supported by Device Farm (1.9.1).
-
For default, Device Farm selects a compatible version of Appium for the device. The current behavior is to run 1.7.2 on Android devices and iOS 9 and earlier and 1.7.2 for iOS 10 and later.
-
This behavior is subject to change.
-
For fuzz tests (Android only):
-
event_count: The number of events, between 1 and 10000, that the UI fuzz test should perform.
-
throttle: The time, in ms, between 0 and 1000, that the UI fuzz test should wait between events.
-
seed: A seed to use for randomizing the UI fuzz test. Using the same seed value between tests ensures identical event sequences.
For Explorer tests:
-
username: A user name to use if the Explorer encounters a login form. If not supplied, no user name is inserted.
-
password: A password to use if the Explorer encounters a login form. If not supplied, no password is inserted.
For Instrumentation:
-
filter: A test filter string. Examples:
-
Running a single test case:
com.android.abc.Test1 -
Running a single test:
com.android.abc.Test1#smoke -
Running multiple tests:
com.android.abc.Test1,com.android.abc.Test2
-
For XCTest and XCTestUI:
-
filter: A test filter string. Examples:
-
Running a single test class:
LoginTests -
Running a multiple test classes:
LoginTests,SmokeTests -
Running a single test:
LoginTests/testValid -
Running multiple tests:
LoginTests/testValid,LoginTests/testInvalid
-
For UIAutomator:
-
filter: A test filter string. Examples:
-
Running a single test case:
com.android.abc.Test1 -
Running a single test:
com.android.abc.Test1#smoke -
Running multiple tests:
com.android.abc.Test1,com.android.abc.Test2
-
sourcepub fn get_parameters(&self) -> &Option<HashMap<String, String>>
pub fn get_parameters(&self) -> &Option<HashMap<String, String>>
The test's parameters, such as test framework parameters and fixture settings. Parameters are represented by name-value pairs of strings.
For all tests:
-
app_performance_monitoring: Performance monitoring is enabled by default. Set this parameter to false to disable it.
For Calabash tests:
-
profile: A cucumber profile (for example,
my_profile_name). -
tags: You can limit execution to features or scenarios that have (or don't have) certain tags (for example, @smoke or @smoke,~@wip).
For Appium tests (all types):
-
appium_version: The Appium version. Currently supported values are 1.6.5 (and later), latest, and default.
-
latest runs the latest Appium version supported by Device Farm (1.9.1).
-
For default, Device Farm selects a compatible version of Appium for the device. The current behavior is to run 1.7.2 on Android devices and iOS 9 and earlier and 1.7.2 for iOS 10 and later.
-
This behavior is subject to change.
-
For fuzz tests (Android only):
-
event_count: The number of events, between 1 and 10000, that the UI fuzz test should perform.
-
throttle: The time, in ms, between 0 and 1000, that the UI fuzz test should wait between events.
-
seed: A seed to use for randomizing the UI fuzz test. Using the same seed value between tests ensures identical event sequences.
For Explorer tests:
-
username: A user name to use if the Explorer encounters a login form. If not supplied, no user name is inserted.
-
password: A password to use if the Explorer encounters a login form. If not supplied, no password is inserted.
For Instrumentation:
-
filter: A test filter string. Examples:
-
Running a single test case:
com.android.abc.Test1 -
Running a single test:
com.android.abc.Test1#smoke -
Running multiple tests:
com.android.abc.Test1,com.android.abc.Test2
-
For XCTest and XCTestUI:
-
filter: A test filter string. Examples:
-
Running a single test class:
LoginTests -
Running a multiple test classes:
LoginTests,SmokeTests -
Running a single test:
LoginTests/testValid -
Running multiple tests:
LoginTests/testValid,LoginTests/testInvalid
-
For UIAutomator:
-
filter: A test filter string. Examples:
-
Running a single test case:
com.android.abc.Test1 -
Running a single test:
com.android.abc.Test1#smoke -
Running multiple tests:
com.android.abc.Test1,com.android.abc.Test2
-
sourcepub fn build(self) -> Result<ScheduleRunTest, BuildError>
pub fn build(self) -> Result<ScheduleRunTest, BuildError>
Consumes the builder and constructs a ScheduleRunTest.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ScheduleRunTestBuilder
impl Clone for ScheduleRunTestBuilder
source§fn clone(&self) -> ScheduleRunTestBuilder
fn clone(&self) -> ScheduleRunTestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ScheduleRunTestBuilder
impl Debug for ScheduleRunTestBuilder
source§impl Default for ScheduleRunTestBuilder
impl Default for ScheduleRunTestBuilder
source§fn default() -> ScheduleRunTestBuilder
fn default() -> ScheduleRunTestBuilder
source§impl PartialEq for ScheduleRunTestBuilder
impl PartialEq for ScheduleRunTestBuilder
source§fn eq(&self, other: &ScheduleRunTestBuilder) -> bool
fn eq(&self, other: &ScheduleRunTestBuilder) -> bool
self and other values to be equal, and is used
by ==.