Skip to content

Commit

Permalink
Merge pull request #319 from snieguu/master
Browse files Browse the repository at this point in the history
Version 2.43-SNAPSHOT
  • Loading branch information
szprutamich authored Jun 28, 2017
2 parents ff54055 + d65f658 commit 9fa0dae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.testdroid</groupId>
<artifactId>testdroid-api</artifactId>
<version>2.42</version>
<version>2.43-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Testdroid API v2</name>
<url>https://github.com/bitbar/testdroid-api</url>
Expand Down
15 changes: 15 additions & 0 deletions src/main/java/com/testdroid/api/model/APIProject.java
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,15 @@ private Map<String, Object> getCreateRunParameters(String testRunName, List<Long
return result;
}

private Map<String, Object> getCreateRunParameters(String testRunName, String deviceNamePattern,
Long testRunId) {
Map<String, Object> result = new HashMap<>();
result.putAll(getCreateRunParameters(testRunName));
result.put("deviceNamePattern", deviceNamePattern);
result.putAll(getCreateRunParameters(testRunId));
return result;
}

private Map<String, Object> getCreateParameterParameters(final String key, final String value) {
Map<String, Object> map = new HashMap<>();
map.put("key", key);
Expand Down Expand Up @@ -389,6 +398,12 @@ public APITestRun run(String testRunName, List<Long> usedDevicesId, Long testRun
return postResource(getRunsURI(), getCreateRunParameters(testRunName, usedDevicesId, testRunId), APITestRun.class);
}

@JsonIgnore
public APITestRun run(String testRunName, String deviceNamePattern, Long testRunId) throws APIException {
return postResource(getRunsURI(), getCreateRunParameters(testRunName, deviceNamePattern, testRunId),
APITestRun.class);
}

@JsonIgnore
public APITestRun runWithConfig(
String testRunName, List<Long> deviceIds, APITestRunConfig config, Long appFileId, Long testFileId,
Expand Down

0 comments on commit 9fa0dae

Please sign in to comment.