API Reference
TestimoConfigRunner
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) #VoidApplies a minimal RunConfig to an engine.
Parameters
- engine TestimoX.Testimo
- rc TestimoX.Configuration.Run.RunConfig
- configPath System.String = null
public static Void ApplyToEngine(Testimo engine, ServiceConfig svc, String ruleConfigPath = null, String configPath = null) #VoidApplies 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
- svc TestimoX.Configuration.Service.ServiceConfig
- ruleConfigPath System.String = null
- configPath System.String = null
public static List<RuleConfig> LoadRuleConfigs(String path) #List<RuleConfig>Loads a RuleConfig JSON array from disk using Testimo default Json options.
Parameters
- path System.String
public static RunConfig LoadRunConfig(String path) #RunConfigLoads a minimal RunConfig (one-off run) from disk.
Parameters
- path System.String
public static async Task<TestimoRunResult> RunFromConfigAsync(String configPath, String ruleConfigPath = null, CancellationToken ct = null) #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
- ruleConfigPath System.String = null
- ct System.Threading.CancellationToken = null
public static async Task<TestimoRunResult> RunFromConfigAsync(String configPath, Action<Testimo> configureEngine, String ruleConfigPath = null, CancellationToken ct = null) #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
- Path to the configuration file.
- configureEngine System.Action{TestimoX.Testimo}
- Callback invoked after config is applied and before execution.
- ruleConfigPath System.String = null
- Optional override for the rule config path.
- ct System.Threading.CancellationToken = null
- Cancellation token.