Record Class McpMobileReplayResult
java.lang.Object
java.lang.Record
com.shaft.mcp.McpMobileReplayResult
- Record Components:
recordingPath- original MCP recording pathsuccessful- whether generation or replay completedreplayedActionCount- number of actions replayed against a live sessioncodeBlocks- copy-paste replay, Page Object, and insertion blockswarnings- safe warningscaptureSessionPath- optional Capture-compatible session pathsourcePath- optional generated source pathtestDataPath- optional generated test-data pathreportPath- optional generation report pathreviewPath- optional deterministic review pathreport- optional Capture generation report
public record McpMobileReplayResult(Path recordingPath, boolean successful, int replayedActionCount, List<McpCodeBlock> codeBlocks, List<String> warnings, Path captureSessionPath, Path sourcePath, Path testDataPath, Path reportPath, Path reviewPath, CaptureGenerationReport report)
extends Record
Result for MCP mobile recording code generation or replay.
-
Constructor Summary
ConstructorsConstructorDescriptionMcpMobileReplayResult(Path recordingPath, boolean successful, int replayedActionCount, List<McpCodeBlock> codeBlocks, List<String> warnings) Creates a replay result without Capture generation metadata.McpMobileReplayResult(Path recordingPath, boolean successful, int replayedActionCount, List<McpCodeBlock> codeBlocks, List<String> warnings, Path captureSessionPath, Path sourcePath, Path testDataPath, Path reportPath, Path reviewPath, CaptureGenerationReport report) Creates an immutable mobile replay result. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecaptureSessionPathrecord component.Returns the value of thecodeBlocksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therecordingPathrecord component.intReturns the value of thereplayedActionCountrecord component.report()Returns the value of thereportrecord component.Returns the value of thereportPathrecord component.Returns the value of thereviewPathrecord component.Returns the value of thesourcePathrecord component.booleanReturns the value of thesuccessfulrecord component.Returns the value of thetestDataPathrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
McpMobileReplayResult
public McpMobileReplayResult(Path recordingPath, boolean successful, int replayedActionCount, List<McpCodeBlock> codeBlocks, List<String> warnings) Creates a replay result without Capture generation metadata.- Parameters:
recordingPath- original recording pathsuccessful- whether generation or replay completedreplayedActionCount- number of actions replayedcodeBlocks- copy-paste replay, Page Object, and insertion blockswarnings- safe warnings
-
McpMobileReplayResult
public McpMobileReplayResult(Path recordingPath, boolean successful, int replayedActionCount, List<McpCodeBlock> codeBlocks, List<String> warnings, Path captureSessionPath, Path sourcePath, Path testDataPath, Path reportPath, Path reviewPath, CaptureGenerationReport report) Creates an immutable mobile replay result.
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
recordingPath
Returns the value of therecordingPathrecord component.- Returns:
- the value of the
recordingPathrecord component
-
successful
public boolean successful()Returns the value of thesuccessfulrecord component.- Returns:
- the value of the
successfulrecord component
-
replayedActionCount
public int replayedActionCount()Returns the value of thereplayedActionCountrecord component.- Returns:
- the value of the
replayedActionCountrecord component
-
codeBlocks
Returns the value of thecodeBlocksrecord component.- Returns:
- the value of the
codeBlocksrecord component
-
warnings
-
captureSessionPath
Returns the value of thecaptureSessionPathrecord component.- Returns:
- the value of the
captureSessionPathrecord component
-
sourcePath
Returns the value of thesourcePathrecord component.- Returns:
- the value of the
sourcePathrecord component
-
testDataPath
Returns the value of thetestDataPathrecord component.- Returns:
- the value of the
testDataPathrecord component
-
reportPath
Returns the value of thereportPathrecord component.- Returns:
- the value of the
reportPathrecord component
-
reviewPath
Returns the value of thereviewPathrecord component.- Returns:
- the value of the
reviewPathrecord component
-
report
-