AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ScheduleRunTest

import "github.com/aws/aws-sdk-go/service/devicefarm"

type ScheduleRunTest struct { Filter *string `locationName:"filter" type:"string"` Parameters map[string]*string `locationName:"parameters" type:"map"` TestPackageArn *string `locationName:"testPackageArn" min:"32" type:"string"` TestSpecArn *string `locationName:"testSpecArn" min:"32" type:"string"` Type *string `locationName:"type" type:"string" required:"true" enum:"TestType"` }

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.

Filter

Type: *string

The test's filter.

Parameters

Type: map[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 higher), "latest", and "default".

“latest” will run the latest Appium version supported by Device Farm (1.9.1).

For “default”, Device Farm will choose 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, 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 username to use if the Explorer encounters a login form. If not supplied, no username will be inserted.

  • password: A password to use if the Explorer encounters a login form. If not supplied, no password will be 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"

TestPackageArn

Type: *string

The ARN of the uploaded test that will be run.

TestSpecArn

Type: *string

The ARN of the YAML-formatted test specification.

Type

Type: *string

The test's type.

Must be one of the following values:

  • BUILTIN_FUZZ: The built-in fuzz type.

  • BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.

  • APPIUM_JAVA_JUNIT: The Appium Java JUnit type.

  • APPIUM_JAVA_TESTNG: The Appium Java TestNG type.

  • APPIUM_PYTHON: The Appium Python type.

  • APPIUM_NODE: The Appium Node.js type.

  • APPIUM_RUBY: The Appium Ruby type.

  • APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for web apps.

  • APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for web apps.

  • APPIUM_WEB_PYTHON: The Appium Python type for web apps.

  • APPIUM_WEB_NODE: The Appium Node.js type for web apps.

  • APPIUM_WEB_RUBY: The Appium Ruby type for web apps.

  • CALABASH: The Calabash type.

  • INSTRUMENTATION: The Instrumentation type.

  • UIAUTOMATION: The uiautomation type.

  • UIAUTOMATOR: The uiautomator type.

  • XCTEST: The XCode test type.

  • XCTEST_UI: The XCode UI test type.

Type is a required field

Method

GoString

func (s ScheduleRunTest) GoString() string

GoString returns the string representation

SetFilter

func (s *ScheduleRunTest) SetFilter(v string) *ScheduleRunTest

SetFilter sets the Filter field's value.

SetParameters

func (s *ScheduleRunTest) SetParameters(v map[string]*string) *ScheduleRunTest

SetParameters sets the Parameters field's value.

SetTestPackageArn

func (s *ScheduleRunTest) SetTestPackageArn(v string) *ScheduleRunTest

SetTestPackageArn sets the TestPackageArn field's value.

SetTestSpecArn

func (s *ScheduleRunTest) SetTestSpecArn(v string) *ScheduleRunTest

SetTestSpecArn sets the TestSpecArn field's value.

SetType

func (s *ScheduleRunTest) SetType(v string) *ScheduleRunTest

SetType sets the Type field's value.

String

func (s ScheduleRunTest) String() string

String returns the string representation

Validate

func (s *ScheduleRunTest) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: