Class RecordedFlowSerializer
- Namespace
- Cress.Recorder.Serialization
- Assembly
- Cress.Recorder.dll
Converts a list of InferredStep objects into a YAML string that is
schema-compatible with FlowParser / CressFlow.
public sealed class RecordedFlowSerializer
- Inheritance
-
RecordedFlowSerializer
- Inherited Members
Methods
SaveToFile(IReadOnlyList<InferredStep>, RecordedFlowMetadata, string)
Serializes steps to YAML and writes the result to filePath,
creating parent directories if necessary.
public void SaveToFile(IReadOnlyList<InferredStep> steps, RecordedFlowSerializer.RecordedFlowMetadata metadata, string filePath)
Parameters
stepsIReadOnlyList<InferredStep>metadataRecordedFlowSerializer.RecordedFlowMetadatafilePathstring
Serialize(IReadOnlyList<InferredStep>, RecordedFlowMetadata)
Serializes steps to a YAML string.
public string Serialize(IReadOnlyList<InferredStep> steps, RecordedFlowSerializer.RecordedFlowMetadata metadata)
Parameters
stepsIReadOnlyList<InferredStep>Ordered list of inferred steps (actions + expectations).
metadataRecordedFlowSerializer.RecordedFlowMetadataFlow header metadata.
Returns
- string
YAML text compatible with
FlowParser.Parse().