com.google.api.services.toolresults.model.TestSuiteOverview Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/google/apis-client-generator/
* (build: 2017-02-15 17:18:02 UTC)
* on 2017-06-07 at 03:00:34 UTC
* Modify at your own risk.
*/
package com.google.api.services.toolresults.model;
/**
* A summary of a test suite result either parsed from XML or uploaded directly by a user.
*
* Note: the API related comments are for StepService only. This message is also being used in
* ExecutionService in a read only mode for the corresponding step.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Tool Results API. For a detailed explanation
* see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class TestSuiteOverview extends com.google.api.client.json.GenericJson {
/**
* Number of test cases in error, typically set by the service by parsing the xml_source.
*
* - In create/response: always set - In update request: never
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer errorCount;
/**
* Number of failed test cases, typically set by the service by parsing the xml_source. May also
* be set by the user.
*
* - In create/response: always set - In update request: never
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer failureCount;
/**
* The name of the test suite.
*
* - In create/response: always set - In update request: never
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Number of test cases not run, typically set by the service by parsing the xml_source.
*
* - In create/response: always set - In update request: never
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer skippedCount;
/**
* Number of test cases, typically set by the service by parsing the xml_source.
*
* - In create/response: always set - In update request: never
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer totalCount;
/**
* If this test suite was parsed from XML, this is the URI where the original XML file is stored.
*
* Note: Multiple test suites can share the same xml_source
*
* Returns INVALID_ARGUMENT if the uri format is not supported.
*
* - In create/response: optional - In update request: never
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private FileReference xmlSource;
/**
* Number of test cases in error, typically set by the service by parsing the xml_source.
*
* - In create/response: always set - In update request: never
* @return value or {@code null} for none
*/
public java.lang.Integer getErrorCount() {
return errorCount;
}
/**
* Number of test cases in error, typically set by the service by parsing the xml_source.
*
* - In create/response: always set - In update request: never
* @param errorCount errorCount or {@code null} for none
*/
public TestSuiteOverview setErrorCount(java.lang.Integer errorCount) {
this.errorCount = errorCount;
return this;
}
/**
* Number of failed test cases, typically set by the service by parsing the xml_source. May also
* be set by the user.
*
* - In create/response: always set - In update request: never
* @return value or {@code null} for none
*/
public java.lang.Integer getFailureCount() {
return failureCount;
}
/**
* Number of failed test cases, typically set by the service by parsing the xml_source. May also
* be set by the user.
*
* - In create/response: always set - In update request: never
* @param failureCount failureCount or {@code null} for none
*/
public TestSuiteOverview setFailureCount(java.lang.Integer failureCount) {
this.failureCount = failureCount;
return this;
}
/**
* The name of the test suite.
*
* - In create/response: always set - In update request: never
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* The name of the test suite.
*
* - In create/response: always set - In update request: never
* @param name name or {@code null} for none
*/
public TestSuiteOverview setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Number of test cases not run, typically set by the service by parsing the xml_source.
*
* - In create/response: always set - In update request: never
* @return value or {@code null} for none
*/
public java.lang.Integer getSkippedCount() {
return skippedCount;
}
/**
* Number of test cases not run, typically set by the service by parsing the xml_source.
*
* - In create/response: always set - In update request: never
* @param skippedCount skippedCount or {@code null} for none
*/
public TestSuiteOverview setSkippedCount(java.lang.Integer skippedCount) {
this.skippedCount = skippedCount;
return this;
}
/**
* Number of test cases, typically set by the service by parsing the xml_source.
*
* - In create/response: always set - In update request: never
* @return value or {@code null} for none
*/
public java.lang.Integer getTotalCount() {
return totalCount;
}
/**
* Number of test cases, typically set by the service by parsing the xml_source.
*
* - In create/response: always set - In update request: never
* @param totalCount totalCount or {@code null} for none
*/
public TestSuiteOverview setTotalCount(java.lang.Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* If this test suite was parsed from XML, this is the URI where the original XML file is stored.
*
* Note: Multiple test suites can share the same xml_source
*
* Returns INVALID_ARGUMENT if the uri format is not supported.
*
* - In create/response: optional - In update request: never
* @return value or {@code null} for none
*/
public FileReference getXmlSource() {
return xmlSource;
}
/**
* If this test suite was parsed from XML, this is the URI where the original XML file is stored.
*
* Note: Multiple test suites can share the same xml_source
*
* Returns INVALID_ARGUMENT if the uri format is not supported.
*
* - In create/response: optional - In update request: never
* @param xmlSource xmlSource or {@code null} for none
*/
public TestSuiteOverview setXmlSource(FileReference xmlSource) {
this.xmlSource = xmlSource;
return this;
}
@Override
public TestSuiteOverview set(String fieldName, Object value) {
return (TestSuiteOverview) super.set(fieldName, value);
}
@Override
public TestSuiteOverview clone() {
return (TestSuiteOverview) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy