org.testobject.rest.api.model.InstrumentationReport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testobject-java-api Show documentation
Show all versions of testobject-java-api Show documentation
java wrapper for testobject's java apis
package org.testobject.rest.api.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
public class InstrumentationReport {
private final ProjectPath projectPath;
private final long id;
private final String batchName;
private final String testName;
private final int appVersionId;
private final String appVersionName;
private final long startTime;
private final int duration;
private final DeviceDescriptor.DeviceContainer device;
private final String videoId;
private final boolean isRunning;
private final String status;
private final Set getTestCaseGroups;
@JsonCreator
public InstrumentationReport(
@JsonProperty("projectPath") ProjectPath projectPath,
@JsonProperty("id") long id,
@JsonProperty("batchName") String batchName,
@JsonProperty("testName") String testName,
@JsonProperty("appVersionId") int appVersionId,
@JsonProperty("appVersionName") String appVersionName,
@JsonProperty("startTime") long startTime,
@JsonProperty("duration") int duration,
@JsonProperty("deviceDescriptor") DeviceDescriptor.DeviceContainer device,
@JsonProperty("videoId") String videoId,
@JsonProperty("running") boolean running,
@JsonProperty("status") String status,
@JsonProperty("testCaseGroups") Set getTestCaseGroups) {
this.projectPath = projectPath;
this.id = id;
this.batchName = batchName;
this.testName = testName;
this.appVersionId = appVersionId;
this.appVersionName = appVersionName;
this.startTime = startTime;
this.duration = duration;
this.device = device;
this.videoId = videoId;
this.isRunning = running;
this.status = status;
this.getTestCaseGroups = getTestCaseGroups;
}
public Set getGetTestCaseGroups() {
return getTestCaseGroups;
}
@Override
public String toString() {
return String.format("Path:%s;%s; id %d status %s video %s", projectPath.first, projectPath.second, id, status, videoId);
}
public ProjectPath getProjectPath() {
return projectPath;
}
public long getId() {
return id;
}
public String getBatchName() {
return batchName;
}
public String getTestName() {
return testName;
}
public int getAppVersionId() {
return appVersionId;
}
public String getAppVersionName() {
return appVersionName;
}
public long getStartTime() {
return startTime;
}
public int getDuration() {
return duration;
}
public DeviceDescriptor.DeviceContainer getDevice() {
return device;
}
public String getVideoId() {
return videoId;
}
public boolean isRunning() {
return isRunning;
}
public String getStatus() {
return status;
}
public static class ProjectPath {
private final String first;
private final String second;
@JsonCreator
public ProjectPath(@JsonProperty("first") String first, @JsonProperty("second") String second) {
this.first = first;
this.second = second;
}
public String getFirst() {
return first;
}
public String getSecond() {
return second;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy