Variations
A/B testing with variations across models and configurations.
Variations let you run the same test with different configurations to compare results side by side. Each variation can override the profile, run count, context IDs, and feature configuration.
How Variations Work
When you execute a test with variations:
The framework runs the default configuration first (
RunCounttimes)Each variation runs with its own settings (
RunCounttimes, inherited or overridden)All runs share a single execution ID
The response includes separate metrics for the default config, each variation, and an aggregate
This lets you compare how different models or settings perform on the same test.
Variation Properties
Name
string
Yes
Display name (for example, "GPT-4o", "Claude Sonnet")
Description
string
No
What this variation tests
ProfileId
guid
No
Profile override. Null inherits from the test.
RunCount
int
No
Run count override. Null inherits from the test.
ContextIds
guid[]
No
Context IDs override. Null inherits from the test.
TestFeatureConfig
JSON
No
Feature config override (deep-merged with the test's config).
Deep Merge Behavior
When a variation provides TestFeatureConfig, the framework deep-merges the variation config with the test's base config:
Object properties are recursively merged
Arrays and primitives are replaced (not merged)
Null properties in the variation are ignored (the base value is kept)
This means you only need to specify the properties you want to override.
Creating a Test with Variations

In this example:
The default config (GPT-4o) runs 3 times
The "Claude Sonnet" variation runs 3 times (inherited)
The "GPT-4o Mini" variation runs 5 times (overridden)
Reading Variation Results
The execution response includes per-variation metrics:
Comparing Variations
Use the compare-variations endpoint to do pairwise drill-down between any two variation groups (or default vs variation):
Set sourceVariationId to null to compare the default configuration against a variation.
The response includes pass rate deltas, duration deltas, and regression/improvement indicators.
Related
Concepts - Core testing concepts
Run a Test - Single test execution endpoint
Compare Variations - Comparison endpoints
Last updated
Was this helpful?