Record Class CaseResult
java.lang.Object
java.lang.Record
com.gtnewhorizons.horizonqa.report.CaseResult
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCaseResult(String id, String classname, String name, CaseResult.Status status, boolean required, int tickCount, double timeSeconds, String failureMessage, String failureType, String failureTrace, List<String> outputLines) CaseResult(String id, String classname, String name, CaseResult.Status status, boolean required, int tickCount, double timeSeconds, String failureMessage, String failureType, String failureTrace, List<String> outputLines, String blockedByIssueId) Creates an instance of aCaseResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockedByIssueIdrecord component.Returns the value of theclassnamerecord component.final booleanIndicates whether some other object is "equal to" this one.booleanerror()booleanfailed()booleanbooleanReturns the value of thefailureMessagerecord component.Returns the value of thefailureTracerecord component.Returns the value of thefailureTyperecord component.static CaseResultfrom(GameTestInstance inst) final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanbooleanname()Returns the value of thenamerecord component.booleanbooleanReturns the value of theoutputLinesrecord component.Supplied parameter summary when this result represents a parameterized case.booleanpassed()booleanrequired()Returns the value of therequiredrecord component.booleanbooleanbooleanskipped()static CaseResultskipped(GameTestDefinition definition, String reason, String skipType) static CaseResultskippedByIssue(GameTestDefinition definition, String blockedByIssueId, String message) static CaseResultskippedByIssue(GameTestDefinition definition, String blockedByIssueId, String message, String failureType) booleanstatus()Returns the value of thestatusrecord component.static CaseResulttemplateError(GameTestDefinition definition, String message, Throwable cause) intReturns the value of thetickCountrecord component.booleantimedOut()doubleReturns the value of thetimeSecondsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CLEANUP_ERROR
- See Also:
-
TEMPLATE_ERROR
- See Also:
-
ASSUMPTION_FAILED
- See Also:
-
MISSING_REQUIRED_MOD
- See Also:
-
-
Constructor Details
-
CaseResult
public CaseResult(String id, String classname, String name, CaseResult.Status status, boolean required, int tickCount, double timeSeconds, String failureMessage, String failureType, String failureTrace, List<String> outputLines, String blockedByIssueId) Creates an instance of aCaseResultrecord class.- Parameters:
id- the value for theidrecord componentclassname- the value for theclassnamerecord componentname- the value for thenamerecord componentstatus- the value for thestatusrecord componentrequired- the value for therequiredrecord componenttickCount- the value for thetickCountrecord componenttimeSeconds- the value for thetimeSecondsrecord componentfailureMessage- the value for thefailureMessagerecord componentfailureType- the value for thefailureTyperecord componentfailureTrace- the value for thefailureTracerecord componentoutputLines- the value for theoutputLinesrecord componentblockedByIssueId- the value for theblockedByIssueIdrecord component
-
CaseResult
-
-
Method Details
-
from
-
skippedByIssue
public static CaseResult skippedByIssue(GameTestDefinition definition, String blockedByIssueId, String message) -
skippedByIssue
public static CaseResult skippedByIssue(GameTestDefinition definition, String blockedByIssueId, String message, String failureType) -
skipped
-
templateError
public static CaseResult templateError(GameTestDefinition definition, String message, Throwable cause) -
parameterSummary
Supplied parameter summary when this result represents a parameterized case.The summary is also emitted as JUnit
system-out; this accessor lets status JSON expose the same input without copying all event output into that compact report. -
passed
public boolean passed() -
failed
public boolean failed() -
timedOut
public boolean timedOut() -
skipped
public boolean skipped() -
skipReason
-
error
public boolean error() -
incomplete
public boolean incomplete() -
failedRequiredCase
public boolean failedRequiredCase() -
requiredFailed
public boolean requiredFailed() -
requiredTimedOut
public boolean requiredTimedOut() -
optionalFailed
public boolean optionalFailed() -
optionalTimedOut
public boolean optionalTimedOut() -
failedOptionalCase
public boolean failedOptionalCase() -
skippedBySetup
public boolean skippedBySetup() -
infrastructureError
public boolean infrastructureError() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
classname
Returns the value of theclassnamerecord component.- Returns:
- the value of the
classnamerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
tickCount
public int tickCount()Returns the value of thetickCountrecord component.- Returns:
- the value of the
tickCountrecord component
-
timeSeconds
public double timeSeconds()Returns the value of thetimeSecondsrecord component.- Returns:
- the value of the
timeSecondsrecord component
-
failureMessage
Returns the value of thefailureMessagerecord component.- Returns:
- the value of the
failureMessagerecord component
-
failureType
Returns the value of thefailureTyperecord component.- Returns:
- the value of the
failureTyperecord component
-
failureTrace
Returns the value of thefailureTracerecord component.- Returns:
- the value of the
failureTracerecord component
-
outputLines
Returns the value of theoutputLinesrecord component.- Returns:
- the value of the
outputLinesrecord component
-
blockedByIssueId
Returns the value of theblockedByIssueIdrecord component.- Returns:
- the value of the
blockedByIssueIdrecord component
-