Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support templateId and refs in Run and Case #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/main/java/com/codepine/api/testrail/TestRail.java
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,12 @@ public class List extends Request<java.util.List<Case>> {
@JsonSerialize(using = ListToCsvSerializer.class)
private java.util.List<Integer> updatedBy;

@JsonView(List.class)
private Integer templateId;

@JsonView(List.class)
private String refsFilter;

private List(int projectId, java.util.List<CaseField> caseFields) {
super(config, Method.GET, String.format(REST_PATH, projectId, ""), new TypeReference<java.util.List<Case>>() {
});
Expand Down Expand Up @@ -1596,6 +1602,9 @@ public class List extends Request<java.util.List<Run>> {
@JsonSerialize(using = ListToCsvSerializer.class)
private java.util.List<Integer> suiteId;

@JsonView(List.class)
private String refsFilter;

private List(int projectId) {
super(config, Method.GET, REST_PATH + projectId, new TypeReference<java.util.List<Run>>() {
});
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/codepine/api/testrail/model/Case.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ public class Case {

private int suiteId;

@JsonView({TestRail.Cases.Add.class, TestRail.Cases.Update.class})
private Integer templateId;

@JsonView({TestRail.Cases.Add.class, TestRail.Cases.Update.class})
@JsonIgnore
private Map<String, Object> customFields;
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/codepine/api/testrail/model/Run.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,7 @@ public class Run {

private int customStatus7Count;


@JsonView({TestRail.Runs.Add.class, TestRail.Runs.Update.class, TestRail.Plans.Add.class, TestRail.Plans.AddEntry.class})
private String refs;
}