TestimoX

API Reference

Class

RuleConfigExporter

Namespace TestimoX.Configuration.Rules
Assembly TestimoX
Modifiers static

Exports the current in-memory rule set to a serializable RuleConfig list that can be saved and edited for later runs.

Inheritance

  • Object
  • RuleConfigExporter

Methods

public static List<RuleConfig> Export(IEnumerable<Rule> rules) #
Returns: List<RuleConfig>

Creates a list of RuleConfig objects representing the provided rules.

Parameters

rules System.Collections.Generic.IEnumerable{TestimoX.Definitions.Rule} requiredposition: 0
Rule set to export.
public static Void Save(String path, IEnumerable<Rule> rules) #
Returns: Void

Saves an exported RuleConfig list to the specified file as JSON (indented).

Parameters

path System.String requiredposition: 0
Destination file path.
rules System.Collections.Generic.IEnumerable{TestimoX.Definitions.Rule} requiredposition: 1
Rule set to export.