List of usage examples for com.amazonaws.services.devicefarm.model ListTestsResult getTests
public java.util.List<Test> getTests()
Information about the tests.
From source file:org.jenkinsci.plugins.awsdevicefarm.AWSDeviceFarmRecorder.java
License:Open Source License
private Map<String, FilePath> getTests(AWSDeviceFarm adf, ScheduleRunResult run, Map<String, FilePath> suites) throws IOException, InterruptedException { Map<String, FilePath> tests = new HashMap<String, FilePath>(); String runArn = run.getRun().getArn(); String components[] = runArn.split(":"); // constructing suite ARN for each job using the run ARN components[5] = "suite"; for (Map.Entry<String, FilePath> suiteEntry : suites.entrySet()) { String suiteArn = suiteEntry.getKey(); components[6] = suiteArn;//w w w. j ava 2s. co m String fullsuiteArn = StringUtils.join(components, ":"); ListTestsResult result = adf.listTests(fullsuiteArn); for (Test test : result.getTests()) { String arn = test.getArn().split(":")[6]; tests.put(arn, new FilePath(suites.get(suiteArn), test.getName())); tests.get(arn).mkdirs(); } } return tests; }