Class FZagalaSpecFeatureExportMenuExtension#

Class Documentation#

class FZagalaSpecFeatureExportMenuExtension#

Adds the export entries to the Content Browser right-click menu of feature assets:

  • Export as Gherkin (.feature)

  • Export as SpecFlow (.feature)

  • Export as FitNesse (.wiki)

  • Export as Robot Framework (.robot)

  • Export as Gauge (.spec)

  • Export as ZagalaSpec (.zagalaspec)

The entries are added to the asset context menu through ToolMenus, in a section that is only shown when every selected asset is a feature (its class implements IZagalaSpecFeature). Assets are only loaded when an entry is executed.

Public Static Functions

static void Register()#

Registers the menu extension; it is applied as soon as ToolMenus is ready.

static void Unregister()#

Removes the menu extension.

static bool AreAllFeatureAssets(const TArray<FAssetData> &Assets)#

Checks whether the export entries should be shown for a selection.

Parameters:

Assets – The selected assets.

Returns:

True if the selection is not empty and the class of every asset implements IZagalaSpecFeature.

Public Static Attributes

static const FName SectionName#

Name of the section that holds the export entries.