public class AWSDeviceFarm extends Object
Constructor and Description |
---|
AWSDeviceFarm(com.amazonaws.auth.AWSCredentials creds)
AWSDeviceFarm constructor.
|
AWSDeviceFarm(String roleArn)
AWSDeviceFarm constructor.
|
Modifier and Type | Method and Description |
---|---|
com.amazonaws.services.devicefarm.model.GetRunResult |
describeRun(String runArn) |
com.amazonaws.services.devicefarm.model.AccountSettings |
getAccountSettings() |
com.amazonaws.services.devicefarm.model.DevicePool |
getDevicePool(com.amazonaws.services.devicefarm.model.Project project,
String devicePoolName)
Get Device Farm device pool by Device Farm project and device pool name.
|
com.amazonaws.services.devicefarm.model.DevicePool |
getDevicePool(String projectName,
String devicePoolName)
Get Device Farm device pool by Device Farm project and device pool name.
|
List<com.amazonaws.services.devicefarm.model.DevicePool> |
getDevicePools(com.amazonaws.services.devicefarm.model.Project project)
Get Device Farm device pools for a given Device Farm project.
|
List<com.amazonaws.services.devicefarm.model.DevicePool> |
getDevicePools(String projectName)
Get Device Farm device pools for a given Device Farm project.
|
String |
getOs(String appArtifact) |
com.amazonaws.services.devicefarm.model.Project |
getProject(String projectName)
Get Device Farm project by name.
|
List<com.amazonaws.services.devicefarm.model.Project> |
getProjects()
Get all Device Farm projects.
|
com.amazonaws.services.devicefarm.model.Upload |
getTestSpec(com.amazonaws.services.devicefarm.model.Project project,
String testSpecName)
Get Device Farm TestSpec by Device Farm project and TestSpec name.
|
List<com.amazonaws.services.devicefarm.model.Upload> |
getTestSpecs(com.amazonaws.services.devicefarm.model.Project project)
Get Device Farm TestSpecs for a given Device Farm project.
|
List<com.amazonaws.services.devicefarm.model.Upload> |
getTestSpecs(String projectName)
Get Device Farm TestSpecs for a given Device Farm project.
|
int |
getUnmeteredDevices(String os) |
int |
getUnmeteredDevicesForWeb() |
List<com.amazonaws.services.devicefarm.model.Upload> |
getUploads(com.amazonaws.services.devicefarm.model.Project project)
Get Device Farm uploads for a given Device Farm project.
|
com.amazonaws.services.devicefarm.model.VPCEConfiguration |
getVPCEConfiguration(String vpceServiceName) |
List<com.amazonaws.services.devicefarm.model.VPCEConfiguration> |
getVPCEConfigurations() |
Boolean |
isRestrictedDefaultSpec(com.amazonaws.services.devicefarm.model.Upload testSpec)
Helper function to detect a default testspec file for frameworks that cannot use it.
|
com.amazonaws.services.devicefarm.model.ListArtifactsResult |
listArtifacts(String runArn,
com.amazonaws.services.devicefarm.model.ArtifactCategory category) |
com.amazonaws.services.devicefarm.model.ListJobsResult |
listJobs(String runArn) |
com.amazonaws.services.devicefarm.model.ListSuitesResult |
listSuites(String jobArn) |
com.amazonaws.services.devicefarm.model.ListTestsResult |
listTests(String suiteArn) |
com.amazonaws.services.devicefarm.model.ScheduleRunResult |
scheduleRun(String projectArn,
String name,
String appArn,
String devicePoolArn,
com.amazonaws.services.devicefarm.model.ScheduleRunTest test,
Integer jobTimeoutMinutes,
com.amazonaws.services.devicefarm.model.ScheduleRunConfiguration configuration,
Boolean videoCapture,
Boolean skipAppResign,
com.amazonaws.services.devicefarm.model.DeviceSelectionConfiguration deviceSelectionConfiguration)
Schedule a test run on Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadApp(com.amazonaws.services.devicefarm.model.Project project,
String appArtifact)
Upload an app to Device Farm to be tested.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadExtraData(com.amazonaws.services.devicefarm.model.Project project,
String extraDataArtifact)
Upload an extra data file to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
AppiumJavaJUnitTest test)
Upload a test to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
AppiumJavaTestNGTest test)
Upload a test to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
AppiumNodeTest test)
Upload a test to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
AppiumPythonTest test)
Upload a test to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
AppiumRubyTest test)
Upload a test to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
AppiumWebJavaJUnitTest test)
Upload a test to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
AppiumWebJavaTestNGTest test)
Upload a test to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
AppiumWebNodeTest test)
Upload a test to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
AppiumWebPythonTest test)
Upload a test to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
AppiumWebRubyTest test)
Upload a test to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
CalabashTest test)
Upload a test to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
InstrumentationTest test)
Upload a test to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
UIAutomationTest test)
Upload a test to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
UIAutomatorTest test)
Upload a test to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
XCTestTest test)
Upload a test to Device Farm.
|
com.amazonaws.services.devicefarm.model.Upload |
uploadTest(com.amazonaws.services.devicefarm.model.Project project,
XCTestUITest test)
Upload a test to Device Farm.
|
AWSDeviceFarm |
withArtifactsDir(hudson.FilePath artifactsDir)
Artifacts directory setter.
|
AWSDeviceFarm |
withEnv(hudson.EnvVars env)
Environment setter.
|
AWSDeviceFarm |
withLogger(PrintStream logger)
Logger setter.
|
AWSDeviceFarm |
withWorkspace(hudson.FilePath workspace)
Workspace setter.
|
public AWSDeviceFarm(String roleArn)
roleArn
- Role ARN to use for authentication.public AWSDeviceFarm(com.amazonaws.auth.AWSCredentials creds)
creds
- AWSCredentials to use for authentication.public AWSDeviceFarm withLogger(PrintStream logger)
logger
- The log print stream.public AWSDeviceFarm withWorkspace(hudson.FilePath workspace)
workspace
- The FilePath to the Jenkins workspace.public AWSDeviceFarm withArtifactsDir(hudson.FilePath artifactsDir)
artifactsDir
- The FilePath to the Jenkins artifacts directory.public AWSDeviceFarm withEnv(hudson.EnvVars env)
env
- The EnvVars Jenkins environment.public List<com.amazonaws.services.devicefarm.model.Project> getProjects()
public com.amazonaws.services.devicefarm.model.Project getProject(String projectName) throws AWSDeviceFarmException
projectName
- String name of the Device Farm project.AWSDeviceFarmException
public List<com.amazonaws.services.devicefarm.model.VPCEConfiguration> getVPCEConfigurations()
public com.amazonaws.services.devicefarm.model.VPCEConfiguration getVPCEConfiguration(String vpceServiceName) throws AWSDeviceFarmException
AWSDeviceFarmException
public List<com.amazonaws.services.devicefarm.model.DevicePool> getDevicePools(String projectName) throws AWSDeviceFarmException
projectName
- String name of the Device Farm project.AWSDeviceFarmException
public List<com.amazonaws.services.devicefarm.model.DevicePool> getDevicePools(com.amazonaws.services.devicefarm.model.Project project)
project
- Device Farm Project.AWSDeviceFarmException
public List<com.amazonaws.services.devicefarm.model.Upload> getTestSpecs(String projectName) throws AWSDeviceFarmException
projectName
- String name of the Device Farm project.AWSDeviceFarmException
public List<com.amazonaws.services.devicefarm.model.Upload> getTestSpecs(com.amazonaws.services.devicefarm.model.Project project) throws AWSDeviceFarmException
project
- Device Farm Project.AWSDeviceFarmException
public Boolean isRestrictedDefaultSpec(com.amazonaws.services.devicefarm.model.Upload testSpec)
testSpec
- the testspec file to checkAWSDeviceFarmException
public List<com.amazonaws.services.devicefarm.model.Upload> getUploads(com.amazonaws.services.devicefarm.model.Project project)
project
- Device Farm Project.AWSDeviceFarmException
public com.amazonaws.services.devicefarm.model.DevicePool getDevicePool(String projectName, String devicePoolName) throws AWSDeviceFarmException
projectName
- String name of the Device Farm project.devicePoolName
- String name of the device pool.AWSDeviceFarmException
public com.amazonaws.services.devicefarm.model.DevicePool getDevicePool(com.amazonaws.services.devicefarm.model.Project project, String devicePoolName) throws AWSDeviceFarmException
project
- The Device Farm project.devicePoolName
- String name of the device pool.AWSDeviceFarmException
public com.amazonaws.services.devicefarm.model.Upload getTestSpec(com.amazonaws.services.devicefarm.model.Project project, String testSpecName) throws AWSDeviceFarmException
project
- The Device Farm project.testSpecName
- String name of the Device Farm testSpec.AWSDeviceFarmException
public com.amazonaws.services.devicefarm.model.Upload uploadApp(com.amazonaws.services.devicefarm.model.Project project, String appArtifact) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.appArtifact
- String path to the app to be uploaded to Device Farm.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadExtraData(com.amazonaws.services.devicefarm.model.Project project, String extraDataArtifact) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.extraDataArtifact
- String path to the extra data to be uploaded to Device Farm.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, InstrumentationTest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, CalabashTest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, UIAutomatorTest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, UIAutomationTest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, XCTestTest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, XCTestUITest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, AppiumJavaTestNGTest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, AppiumJavaJUnitTest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, AppiumPythonTest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, AppiumRubyTest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, AppiumNodeTest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, AppiumWebJavaTestNGTest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, AppiumWebJavaJUnitTest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, AppiumWebPythonTest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, AppiumWebRubyTest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.Upload uploadTest(com.amazonaws.services.devicefarm.model.Project project, AppiumWebNodeTest test) throws InterruptedException, IOException, AWSDeviceFarmException
project
- The Device Farm project to upload to.test
- Test object containing relevant test information.IOException
AWSDeviceFarmException
InterruptedException
public com.amazonaws.services.devicefarm.model.ScheduleRunResult scheduleRun(String projectArn, String name, String appArn, String devicePoolArn, com.amazonaws.services.devicefarm.model.ScheduleRunTest test, Integer jobTimeoutMinutes, com.amazonaws.services.devicefarm.model.ScheduleRunConfiguration configuration, Boolean videoCapture, Boolean skipAppResign, com.amazonaws.services.devicefarm.model.DeviceSelectionConfiguration deviceSelectionConfiguration) throws AWSDeviceFarmException
projectArn
- The ARN of the Device Farm project to run the test on.name
- The name of the test run.appArn
- The ARN of the app to test.devicePoolArn
- The ARN of the device pool to test against.test
- The run test.configuration
- The run configuration.AWSDeviceFarmException
public com.amazonaws.services.devicefarm.model.GetRunResult describeRun(String runArn)
public com.amazonaws.services.devicefarm.model.ListArtifactsResult listArtifacts(String runArn, com.amazonaws.services.devicefarm.model.ArtifactCategory category)
public com.amazonaws.services.devicefarm.model.ListJobsResult listJobs(String runArn)
public com.amazonaws.services.devicefarm.model.ListSuitesResult listSuites(String jobArn)
public com.amazonaws.services.devicefarm.model.ListTestsResult listTests(String suiteArn)
public int getUnmeteredDevices(String os)
public int getUnmeteredDevicesForWeb()
public String getOs(String appArtifact) throws AWSDeviceFarmException
AWSDeviceFarmException
public com.amazonaws.services.devicefarm.model.AccountSettings getAccountSettings()
Copyright © 2016–2024. All rights reserved.