AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the ScheduleRun operation. Schedules a run.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.DeviceFarm.AmazonDeviceFarmRequest
      Amazon.DeviceFarm.Model.ScheduleRunRequest

Namespace: Amazon.DeviceFarm.Model
Assembly: AWSSDK.DeviceFarm.dll
Version: 3.x.y.z

Syntax

C#
public class ScheduleRunRequest : AmazonDeviceFarmRequest
         IAmazonWebServiceRequest

The ScheduleRunRequest type exposes the following members

Constructors

NameDescription
Public Method ScheduleRunRequest()

Properties

NameTypeDescription
Public Property AppArn System.String

Gets and sets the property AppArn.

The ARN of an application package to run tests against, created with CreateUpload. See ListUploads.

Public Property Configuration Amazon.DeviceFarm.Model.ScheduleRunConfiguration

Gets and sets the property Configuration.

Information about the settings for the run to be scheduled.

Public Property DevicePoolArn System.String

Gets and sets the property DevicePoolArn.

The ARN of the device pool for the run to be scheduled.

Public Property DeviceSelectionConfiguration Amazon.DeviceFarm.Model.DeviceSelectionConfiguration

Gets and sets the property DeviceSelectionConfiguration.

The filter criteria used to dynamically select a set of devices for a test run and the maximum number of devices to be included in the run.

Either devicePoolArn or deviceSelectionConfiguration is required in a request.

Public Property ExecutionConfiguration Amazon.DeviceFarm.Model.ExecutionConfiguration

Gets and sets the property ExecutionConfiguration.

Specifies configuration information about a test run, such as the execution timeout (in minutes).

Public Property Name System.String

Gets and sets the property Name.

The name for the run to be scheduled.

Public Property ProjectArn System.String

Gets and sets the property ProjectArn.

The ARN of the project for the run to be scheduled.

Public Property Test Amazon.DeviceFarm.Model.ScheduleRunTest

Gets and sets the property Test.

Information about the test for the run to be scheduled.

Examples

The following example schedules a test run named MyRun.

To schedule a test run


var client = new AmazonDeviceFarmClient();
var response = client.ScheduleRun(new ScheduleRunRequest 
{
    Name = "MyRun",
    DevicePoolArn = "arn:aws:devicefarm:us-west-2:123456789101:pool:EXAMPLE-GUID-123-456", // You can get the Amazon Resource Name (ARN) of the device pool by using the list-pools CLI command.
    ProjectArn = "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", // You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command.
    Test = new ScheduleRunTest {
        Type = "APPIUM_JAVA_JUNIT",
        TestPackageArn = "arn:aws:devicefarm:us-west-2:123456789101:test:EXAMPLE-GUID-123-456"
    }
});

Run run = response.Run;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5