Class FZagalaSpecStepPhaseResolver#
Defined in File ZagalaSpecStepPhaseResolver.h
Class Documentation#
-
class FZagalaSpecStepPhaseResolver#
Resolves the BDD keyword to emit when exporting a step’s text (IZagalaSpecExportableStep::GetAsText()).
Resolution order:
Scan the first word of the step text against the vocabulary lists in UZagalaSpecImportExportSettings (case-insensitive).
If unresolved -> default to Given.
When a vocabulary word is matched, it is stripped from the returned step text so the exporter can prepend the correct target-framework keyword; otherwise the text is returned unchanged.
Public Static Functions
-
static void Resolve(const FString &PlainTextInput, EZagalaSpecExportFormat Format, FString &OutKeyword, FString &OutStepText)#
- Parameters:
PlainTextInput – The full step text (starts with the BDD keyword, e.g. “Given the user logs in”).
Format – Target export format.
OutKeyword – Resolved keyword string (e.g. “Given”, “given”).
OutStepText – Step text with the leading vocabulary word stripped, or the full text if no word matched.