com.google.api.services.testing.model.TestSpecification 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: 2018-10-08 17:45:39 UTC)
* on 2019-04-09 at 00:25:22 UTC
* Modify at your own risk.
*/
package com.google.api.services.testing.model;
/**
* A description of how to run the test.
*
* 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 Testing 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 TestSpecification extends com.google.api.client.json.GenericJson {
/**
* An Android instrumentation test.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private AndroidInstrumentationTest androidInstrumentationTest;
/**
* An Android robo test.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private AndroidRoboTest androidRoboTest;
/**
* An Android Application with a Test Loop.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private AndroidTestLoop androidTestLoop;
/**
* Disables performance metrics recording; may reduce test latency.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean disablePerformanceMetrics;
/**
* Disables video recording; may reduce test latency.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean disableVideoRecording;
/**
* Test setup requirements for iOS.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private IosTestSetup iosTestSetup;
/**
* An iOS XCTest, via an .xctestrun file.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private IosXcTest iosXcTest;
/**
* Test setup requirements for Android e.g. files to install, bootstrap scripts.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TestSetup testSetup;
/**
* Max time a test execution is allowed to run before it is automatically cancelled. The default
* value is 5 min.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String testTimeout;
/**
* An Android instrumentation test.
* @return value or {@code null} for none
*/
public AndroidInstrumentationTest getAndroidInstrumentationTest() {
return androidInstrumentationTest;
}
/**
* An Android instrumentation test.
* @param androidInstrumentationTest androidInstrumentationTest or {@code null} for none
*/
public TestSpecification setAndroidInstrumentationTest(AndroidInstrumentationTest androidInstrumentationTest) {
this.androidInstrumentationTest = androidInstrumentationTest;
return this;
}
/**
* An Android robo test.
* @return value or {@code null} for none
*/
public AndroidRoboTest getAndroidRoboTest() {
return androidRoboTest;
}
/**
* An Android robo test.
* @param androidRoboTest androidRoboTest or {@code null} for none
*/
public TestSpecification setAndroidRoboTest(AndroidRoboTest androidRoboTest) {
this.androidRoboTest = androidRoboTest;
return this;
}
/**
* An Android Application with a Test Loop.
* @return value or {@code null} for none
*/
public AndroidTestLoop getAndroidTestLoop() {
return androidTestLoop;
}
/**
* An Android Application with a Test Loop.
* @param androidTestLoop androidTestLoop or {@code null} for none
*/
public TestSpecification setAndroidTestLoop(AndroidTestLoop androidTestLoop) {
this.androidTestLoop = androidTestLoop;
return this;
}
/**
* Disables performance metrics recording; may reduce test latency.
* @return value or {@code null} for none
*/
public java.lang.Boolean getDisablePerformanceMetrics() {
return disablePerformanceMetrics;
}
/**
* Disables performance metrics recording; may reduce test latency.
* @param disablePerformanceMetrics disablePerformanceMetrics or {@code null} for none
*/
public TestSpecification setDisablePerformanceMetrics(java.lang.Boolean disablePerformanceMetrics) {
this.disablePerformanceMetrics = disablePerformanceMetrics;
return this;
}
/**
* Disables video recording; may reduce test latency.
* @return value or {@code null} for none
*/
public java.lang.Boolean getDisableVideoRecording() {
return disableVideoRecording;
}
/**
* Disables video recording; may reduce test latency.
* @param disableVideoRecording disableVideoRecording or {@code null} for none
*/
public TestSpecification setDisableVideoRecording(java.lang.Boolean disableVideoRecording) {
this.disableVideoRecording = disableVideoRecording;
return this;
}
/**
* Test setup requirements for iOS.
* @return value or {@code null} for none
*/
public IosTestSetup getIosTestSetup() {
return iosTestSetup;
}
/**
* Test setup requirements for iOS.
* @param iosTestSetup iosTestSetup or {@code null} for none
*/
public TestSpecification setIosTestSetup(IosTestSetup iosTestSetup) {
this.iosTestSetup = iosTestSetup;
return this;
}
/**
* An iOS XCTest, via an .xctestrun file.
* @return value or {@code null} for none
*/
public IosXcTest getIosXcTest() {
return iosXcTest;
}
/**
* An iOS XCTest, via an .xctestrun file.
* @param iosXcTest iosXcTest or {@code null} for none
*/
public TestSpecification setIosXcTest(IosXcTest iosXcTest) {
this.iosXcTest = iosXcTest;
return this;
}
/**
* Test setup requirements for Android e.g. files to install, bootstrap scripts.
* @return value or {@code null} for none
*/
public TestSetup getTestSetup() {
return testSetup;
}
/**
* Test setup requirements for Android e.g. files to install, bootstrap scripts.
* @param testSetup testSetup or {@code null} for none
*/
public TestSpecification setTestSetup(TestSetup testSetup) {
this.testSetup = testSetup;
return this;
}
/**
* Max time a test execution is allowed to run before it is automatically cancelled. The default
* value is 5 min.
* @return value or {@code null} for none
*/
public String getTestTimeout() {
return testTimeout;
}
/**
* Max time a test execution is allowed to run before it is automatically cancelled. The default
* value is 5 min.
* @param testTimeout testTimeout or {@code null} for none
*/
public TestSpecification setTestTimeout(String testTimeout) {
this.testTimeout = testTimeout;
return this;
}
@Override
public TestSpecification set(String fieldName, Object value) {
return (TestSpecification) super.set(fieldName, value);
}
@Override
public TestSpecification clone() {
return (TestSpecification) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy