TestimoX

API Reference

Class

TestimoConfigRunner

Namespace TestimoX.Configuration.Runner
Assembly TestimoX
Modifiers static

High-level helper to run Testimo using a JSON configuration file (service.json compatible). Keeps calling code simple in Examples, CLI, or services.

Inheritance

  • Object
  • TestimoConfigRunner

Methods

public static Void ApplyRunConfig(Testimo engine, RunConfig rc, String configPath = null) #
Returns: Void

Applies a minimal RunConfig to an engine.

Parameters

engine TestimoX.Testimo requiredposition: 0
rc TestimoX.Configuration.Run.RunConfig requiredposition: 1
configPath System.String = null optionalposition: 2
public static Void ApplyToEngine(Testimo engine, ServiceConfig svc, String ruleConfigPath = null, String configPath = null) #
Returns: Void

Applies TestRun configuration (RuleNames, RuleOverrides, RuleConfigs) from a service config to the given Testimo engine. When ruleConfigPath is provided, it is used instead of TestRun's RuleConfigPath.

Parameters

engine TestimoX.Testimo requiredposition: 0
svc TestimoX.Configuration.Service.ServiceConfig requiredposition: 1
ruleConfigPath System.String = null optionalposition: 2
configPath System.String = null optionalposition: 3
public static List<RuleConfig> LoadRuleConfigs(String path) #
Returns: List<RuleConfig>

Loads a RuleConfig JSON array from disk using Testimo default Json options.

Parameters

path System.String requiredposition: 0
public static RunConfig LoadRunConfig(String path) #
Returns: RunConfig

Loads a minimal RunConfig (one-off run) from disk.

Parameters

path System.String requiredposition: 0
RunFromConfigAsync 2 overloads
public static async Task<TestimoRunResult> RunFromConfigAsync(String configPath, String ruleConfigPath = null, CancellationToken ct = null) #
Returns: Task<TestimoRunResult>

Loads a configuration file and runs Testimo. Accepts either: 1) Service-style config (with TestRun/AdSnapshot), or 2) Minimal run config (RunConfig).

Parameters

configPath System.String requiredposition: 0
ruleConfigPath System.String = null optionalposition: 1
ct System.Threading.CancellationToken = null optionalposition: 2
public static async Task<TestimoRunResult> RunFromConfigAsync(String configPath, Action<Testimo> configureEngine, String ruleConfigPath = null, CancellationToken ct = null) #
Returns: Task<TestimoRunResult>

Loads a configuration file, allows a host to adjust the configured engine, and runs Testimo. This is useful for applying host-level concerns such as licensing, environment caps, or defaults while still relying on the shared config parsing logic.

Parameters

configPath System.String requiredposition: 0
Path to the configuration file.
configureEngine System.Action{TestimoX.Testimo} requiredposition: 1
Callback invoked after config is applied and before execution.
ruleConfigPath System.String = null optionalposition: 2
Optional override for the rule config path.
ct System.Threading.CancellationToken = null optionalposition: 3
Cancellation token.