Struct aws_sdk_devicefarm::model::ScheduleRunTest
source · [−]#[non_exhaustive]pub struct ScheduleRunTest {
pub type: Option<TestType>,
pub test_package_arn: Option<String>,
pub test_spec_arn: Option<String>,
pub filter: Option<String>,
pub parameters: Option<HashMap<String, String>>,
}Expand description
Represents test settings. This data structure is passed in as the test parameter to ScheduleRun. For an example of the JSON request syntax, see ScheduleRun.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type: 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
test_package_arn: Option<String>The ARN of the uploaded test to be run.
test_spec_arn: Option<String>The ARN of the YAML-formatted test specification.
filter: Option<String>The test's filter.
parameters: 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
-
Implementations
sourceimpl ScheduleRunTest
impl ScheduleRunTest
sourcepub fn type(&self) -> Option<&TestType>
pub fn 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) -> Option<&str>
pub fn test_package_arn(&self) -> Option<&str>
The ARN of the uploaded test to be run.
sourcepub fn test_spec_arn(&self) -> Option<&str>
pub fn test_spec_arn(&self) -> Option<&str>
The ARN of the YAML-formatted test specification.
sourcepub fn parameters(&self) -> Option<&HashMap<String, String>>
pub fn 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
-
sourceimpl ScheduleRunTest
impl ScheduleRunTest
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ScheduleRunTest
Trait Implementations
sourceimpl Clone for ScheduleRunTest
impl Clone for ScheduleRunTest
sourcefn clone(&self) -> ScheduleRunTest
fn clone(&self) -> ScheduleRunTest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ScheduleRunTest
impl Debug for ScheduleRunTest
sourceimpl PartialEq<ScheduleRunTest> for ScheduleRunTest
impl PartialEq<ScheduleRunTest> for ScheduleRunTest
sourcefn eq(&self, other: &ScheduleRunTest) -> bool
fn eq(&self, other: &ScheduleRunTest) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ScheduleRunTest) -> bool
fn ne(&self, other: &ScheduleRunTest) -> bool
This method tests for !=.
impl StructuralPartialEq for ScheduleRunTest
Auto Trait Implementations
impl RefUnwindSafe for ScheduleRunTest
impl Send for ScheduleRunTest
impl Sync for ScheduleRunTest
impl Unpin for ScheduleRunTest
impl UnwindSafe for ScheduleRunTest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
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