Class FZagalaSpecRobotFrameworkExporter#
Defined in File ZagalaSpecRobotFrameworkExporter.h
Inheritance Relationships#
Base Type#
public IZagalaSpecBDDExporter(Class IZagalaSpecBDDExporter)
Class Documentation#
-
class FZagalaSpecRobotFrameworkExporter : public IZagalaSpecBDDExporter#
Exports a feature to Robot Framework (.robot) text.
Produces *** Settings *** and *** Test Cases *** sections. Step keywords are title-case (Given/When/Then) following Robot BDD convention. The Format parameter is accepted for interface uniformity but is not used.
Multiple shared extensions are put into a Test Setup lines in *** Settings ***, having the first one preceeded by ‘Run Keywords’ and the rest separated with ‘AND’. For Example, Shared Context Extensions: Given context step A; Given context step B; And context step C Test Setup Run Keywords … context step A … AND context step B … AND context step C
Note
Export() and ExportToFile() are provided by IZagalaSpecBDDExporter.
Public Functions
-
virtual FString ExportFromIR(const FZagalaSpecFeatureIR &ImportedFeature, EZagalaSpecExportFormat Format) const override#
Export an FZagalaSpecFeatureIR IR struct to a format-specific text string.
All concrete exporters implement this as the primary conversion path. The base Export() default routes through this method via the .zagalaspec intermediate.
- Parameters:
ImportedFeature – Feature IR to export.
Format – Target export format.
- Returns:
The exported text.
-
virtual FString GenerateTextFeatureFromIR(const FZagalaSpecFeatureIR &ImportedFeature, EZagalaSpecExportFormat &Format) const override#
Generate the complete format-specific text of a feature IR.
- Parameters:
ImportedFeature – Feature IR to convert.
Format – Target export format.
- Returns:
The generated feature text.
-
virtual FString GenerateTextScenariosFromIR(const FZagalaSpecFeatureIR &ImportedFeature) const override#
Generate the format-specific text of every scenario in a feature IR.
- Parameters:
ImportedFeature – Feature IR whose scenarios are converted.
- Returns:
The concatenated scenario text.
-
virtual FString GenerateTextStepFromIR(const FZagalaSpecStepIR &Step) const override#
Generate the format-specific text of a single step IR.
- Parameters:
Step – Step IR to convert.
- Returns:
The generated step text.
-
virtual FString ExportFromIR(const FZagalaSpecFeatureIR &ImportedFeature, EZagalaSpecExportFormat Format) const override#