Package io.qase.client.v2.models
Class ResultExecution
java.lang.Object
io.qase.client.v2.models.ResultExecution
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.4.0")
public class ResultExecution
extends Object
ResultExecution
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ResultExecutionCreate an instance of ResultExecution given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Duration of the test execution in milliseconds.Unix epoch time in seconds (whole part) and milliseconds (fractional part).Get stacktraceUnix epoch time in seconds (whole part) and milliseconds (fractional part).Can have the following values passed, failed, blocked, skipped, invalid + custom statusesGet threadinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetDuration(Long duration) voidsetEndTime(Double endTime) voidsetStacktrace(String stacktrace) voidsetStartTime(Double startTime) voidvoidstacktrace(String stacktrace) toJson()Convert an instance of ResultExecution to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_START_TIME
- See Also:
-
SERIALIZED_NAME_END_TIME
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_DURATION
- See Also:
-
SERIALIZED_NAME_STACKTRACE
- See Also:
-
SERIALIZED_NAME_THREAD
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ResultExecution
public ResultExecution()
-
-
Method Details
-
startTime
-
getStartTime
Unix epoch time in seconds (whole part) and milliseconds (fractional part).- Returns:
- startTime
-
setStartTime
-
endTime
-
getEndTime
Unix epoch time in seconds (whole part) and milliseconds (fractional part).- Returns:
- endTime
-
setEndTime
-
status
-
getStatus
Can have the following values passed, failed, blocked, skipped, invalid + custom statuses- Returns:
- status
-
setStatus
-
duration
-
getDuration
Duration of the test execution in milliseconds.- Returns:
- duration
-
setDuration
-
stacktrace
-
getStacktrace
Get stacktrace- Returns:
- stacktrace
-
setStacktrace
-
thread
-
getThread
Get thread- Returns:
- thread
-
setThread
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the ResultExecution instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ResultExecution
-
fromJson
Create an instance of ResultExecution given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ResultExecution
- Throws:
IOException- if the JSON string is invalid with respect to ResultExecution
-
toJson
Convert an instance of ResultExecution to an JSON string- Returns:
- JSON string
-