Table of Contents

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

steps IReadOnlyList<InferredStep>
metadata RecordedFlowSerializer.RecordedFlowMetadata
filePath string

Serialize(IReadOnlyList<InferredStep>, RecordedFlowMetadata)

Serializes steps to a YAML string.

public string Serialize(IReadOnlyList<InferredStep> steps, RecordedFlowSerializer.RecordedFlowMetadata metadata)

Parameters

steps IReadOnlyList<InferredStep>

Ordered list of inferred steps (actions + expectations).

metadata RecordedFlowSerializer.RecordedFlowMetadata

Flow header metadata.

Returns

string

YAML text compatible with FlowParser.Parse().