All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.main.java.com.smartbear.readyapi.client.model.TestCase Maven / Gradle / Ivy

Go to download

Java client library for creating and executing test recipes against Ready!API TestServer

The newest version!
package com.smartbear.readyapi.client.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.smartbear.readyapi.client.model.TestStep;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;



/**
 * Properties of the test recipe. Analogues of the <a href=\"http://readyapi.smartbear.com/structure/cases/options/basic\">test case options</a>.<br/>See also <a href=\"http://readyapi.smartbear.com/testserver/howto/text/modifying\">Modifying Test Options</a>.
 **/

@ApiModel(description = "Properties of the test recipe. Analogues of the test case options.
See also Modifying Test Options.") @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-07-29T13:25:49.703+02:00") public class TestCase { private Boolean searchProperties = false; private Boolean maintainSession = false; private Boolean abortOnError = false; private Boolean failTestCaseOnError = false; private Boolean discardOkResults = false; private String socketTimeout = null; private Integer testCaseTimeout = null; private String clientCertFileName = null; private String clientCertPassword = null; private List testSteps = new ArrayList(); /** * ??? **/ public TestCase searchProperties(Boolean searchProperties) { this.searchProperties = searchProperties; return this; } @ApiModelProperty(example = "null", value = "???") @JsonProperty("searchProperties") public Boolean getSearchProperties() { return searchProperties; } public void setSearchProperties(Boolean searchProperties) { this.searchProperties = searchProperties; } /** * ??? **/ public TestCase maintainSession(Boolean maintainSession) { this.maintainSession = maintainSession; return this; } @ApiModelProperty(example = "null", value = "???") @JsonProperty("maintainSession") public Boolean getMaintainSession() { return maintainSession; } public void setMaintainSession(Boolean maintainSession) { this.maintainSession = maintainSession; } /** * Specifies if TestServer stops the recipe execution if an error occurs. **/ public TestCase abortOnError(Boolean abortOnError) { this.abortOnError = abortOnError; return this; } @ApiModelProperty(example = "null", value = "Specifies if TestServer stops the recipe execution if an error occurs.") @JsonProperty("abortOnError") public Boolean getAbortOnError() { return abortOnError; } public void setAbortOnError(Boolean abortOnError) { this.abortOnError = abortOnError; } /** * Specifies if TestServer logs the test run as failed if an error occurs. **/ public TestCase failTestCaseOnError(Boolean failTestCaseOnError) { this.failTestCaseOnError = failTestCaseOnError; return this; } @ApiModelProperty(example = "null", value = "Specifies if TestServer logs the test run as failed if an error occurs.") @JsonProperty("failTestCaseOnError") public Boolean getFailTestCaseOnError() { return failTestCaseOnError; } public void setFailTestCaseOnError(Boolean failTestCaseOnError) { this.failTestCaseOnError = failTestCaseOnError; } /** * Specifies if TestServer logs messages on successful test step execution (false) or not (true). Set this property to true to save memory. **/ public TestCase discardOkResults(Boolean discardOkResults) { this.discardOkResults = discardOkResults; return this; } @ApiModelProperty(example = "null", value = "Specifies if TestServer logs messages on successful test step execution (false) or not (true). Set this property to true to save memory.") @JsonProperty("discardOkResults") public Boolean getDiscardOkResults() { return discardOkResults; } public void setDiscardOkResults(Boolean discardOkResults) { this.discardOkResults = discardOkResults; } /** * ??? **/ public TestCase socketTimeout(String socketTimeout) { this.socketTimeout = socketTimeout; return this; } @ApiModelProperty(example = "null", value = "???") @JsonProperty("socketTimeout") public String getSocketTimeout() { return socketTimeout; } public void setSocketTimeout(String socketTimeout) { this.socketTimeout = socketTimeout; } /** * Sets the maximum execution time for the test in milliseconds. Default: 0 = timeout is not set. **/ public TestCase testCaseTimeout(Integer testCaseTimeout) { this.testCaseTimeout = testCaseTimeout; return this; } @ApiModelProperty(example = "null", value = "Sets the maximum execution time for the test in milliseconds. Default: 0 = timeout is not set.") @JsonProperty("testCaseTimeout") public Integer getTestCaseTimeout() { return testCaseTimeout; } public void setTestCaseTimeout(Integer testCaseTimeout) { this.testCaseTimeout = testCaseTimeout; } /** * Client certificate file name **/ public TestCase clientCertFileName(String clientCertFileName) { this.clientCertFileName = clientCertFileName; return this; } @ApiModelProperty(example = "null", value = "Client certificate file name") @JsonProperty("clientCertFileName") public String getClientCertFileName() { return clientCertFileName; } public void setClientCertFileName(String clientCertFileName) { this.clientCertFileName = clientCertFileName; } /** * Client certificate password **/ public TestCase clientCertPassword(String clientCertPassword) { this.clientCertPassword = clientCertPassword; return this; } @ApiModelProperty(example = "null", value = "Client certificate password") @JsonProperty("clientCertPassword") public String getClientCertPassword() { return clientCertPassword; } public void setClientCertPassword(String clientCertPassword) { this.clientCertPassword = clientCertPassword; } /** * An array of test steps to be executed. **/ public TestCase testSteps(List testSteps) { this.testSteps = testSteps; return this; } @ApiModelProperty(example = "null", value = "An array of test steps to be executed.") @JsonProperty("testSteps") public List getTestSteps() { return testSteps; } public void setTestSteps(List testSteps) { this.testSteps = testSteps; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } TestCase testCase = (TestCase) o; return Objects.equals(this.searchProperties, testCase.searchProperties) && Objects.equals(this.maintainSession, testCase.maintainSession) && Objects.equals(this.abortOnError, testCase.abortOnError) && Objects.equals(this.failTestCaseOnError, testCase.failTestCaseOnError) && Objects.equals(this.discardOkResults, testCase.discardOkResults) && Objects.equals(this.socketTimeout, testCase.socketTimeout) && Objects.equals(this.testCaseTimeout, testCase.testCaseTimeout) && Objects.equals(this.clientCertFileName, testCase.clientCertFileName) && Objects.equals(this.clientCertPassword, testCase.clientCertPassword) && Objects.equals(this.testSteps, testCase.testSteps); } @Override public int hashCode() { return Objects.hash(searchProperties, maintainSession, abortOnError, failTestCaseOnError, discardOkResults, socketTimeout, testCaseTimeout, clientCertFileName, clientCertPassword, testSteps); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TestCase {\n"); sb.append(" searchProperties: ").append(toIndentedString(searchProperties)).append("\n"); sb.append(" maintainSession: ").append(toIndentedString(maintainSession)).append("\n"); sb.append(" abortOnError: ").append(toIndentedString(abortOnError)).append("\n"); sb.append(" failTestCaseOnError: ").append(toIndentedString(failTestCaseOnError)).append("\n"); sb.append(" discardOkResults: ").append(toIndentedString(discardOkResults)).append("\n"); sb.append(" socketTimeout: ").append(toIndentedString(socketTimeout)).append("\n"); sb.append(" testCaseTimeout: ").append(toIndentedString(testCaseTimeout)).append("\n"); sb.append(" clientCertFileName: ").append(toIndentedString(clientCertFileName)).append("\n"); sb.append(" clientCertPassword: ").append(toIndentedString(clientCertPassword)).append("\n"); sb.append(" testSteps: ").append(toIndentedString(testSteps)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy