in src/main/java/org/jenkinsci/plugins/awsdevicefarm/AWSDeviceFarmRecorder.java [770:788]
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;
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;
}