AI Agent

The BELLATRIX Agent turns a manual test case into a framework-quality automated test. Model-agnostic, in Claude Code, Cursor, GitHub Copilot and other coding agents. It runs the case in your real app, reads your project, adds only what is missing and hands back a built test linked to its SPECTRA ID.

Agentic framework BELLATRIX logo, the agent badge and headline; free and open source; the install command.

Language and Platform Skills

Install tells the agent which BELLATRIX it works with: one skill set per language and platform, plus the agents that use them.

Terminal · AutomateThePlanet_SystemTests
$ bellatrix init --agent claude --language csharp --domains desktop
✓ .bellatrix/bellatrix.instructions.md
✓ .claude/skills/bellatrix-desktop-app-services/SKILL.md
✓ .claude/skills/bellatrix-desktop-automate-spectra-test/SKILL.md
✓ .claude/skills/bellatrix-desktop-components/SKILL.md
✓ .claude/skills/bellatrix-desktop-execute-scenario/SKILL.md
✓ .claude/skills/bellatrix-desktop-execute-spectra-test/SKILL.md
✓ .claude/skills/bellatrix-desktop-generate-code/SKILL.md
✓ .claude/skills/bellatrix-desktop-locators-and-waits/SKILL.md
✓ .claude/skills/bellatrix-desktop-page-objects-and-patterns/SKILL.md
✓ .claude/skills/bellatrix-desktop-project-structure/SKILL.md
✓ .claude/skills/bellatrix-desktop-system-tests-recipes/SKILL.md
✓ .claude/skills/bellatrix-desktop-test-structure-and-lifecycle/SKILL.md
✓ .claude/skills/bellatrix-desktop-validations-and-assertions/SKILL.md
✓ .claude/agents/bellatrix-desktop-locator-specialist.md
✓ .claude/agents/bellatrix-desktop-system-tests-generator.md
✓ .bellatrix/config.json
bellatrix initskills + instructions
WEBMOBILEDESKTOP
C#cs-webcs-mobilecs-desktop
Javajava-webjava-mobilejava-desktop
TypeScriptts-webts-mobilets-desktop
One skill set per language × platform. The agent only learns the BELLATRIX you use.

Learn more about Language and Platform Skills

Live Test Case Execution

A separate BELLATRIX agent launches the app and executes TC-1006 step by step through the bellatrix desktop CLI.

test-cases/unit converter/TC-1006.mdSPECTRA
# Convert 1 meter to feet using Length converter
## Preconditions
Calculator is open in Unit Converter mode with Length category selected
## Steps
1. Open Unit Converter from the navigation menu
2. Select 'Length' category
3. Select 'Meters' as the source unit
4. Select 'Feet' as the target unit
5. Enter '1' in the meters input field
## Expected Result
The feet field displays approximately 3.28084 feet
Coding agentchat
✓ Read test-cases/unit converter/TC-1006.mdConvert 1 meter to feet · 5 steps
BELLATRIX AGENT✓ bellatrix desktop start-session --app calculator --session s1 --jsonCalculator launched
BELLATRIX AGENT✓ bellatrix desktop snapshot --session s1 --json{ path, elementCount, summary }
BELLATRIX AGENT✓ bellatrix desktop click --session s1 --xpath "//*[@AutomationId='TogglePaneButton']"navigation open, Length selected
BELLATRIX AGENT✓ bellatrix-desktop-locator-specialist//*[@AutomationId='Units1']
BELLATRIX AGENT✓ bellatrix desktop click --session s1 --xpath "//*[@AutomationId='Units1']"unit list open

It snapshots the UI, resolves each XPath with the locator specialist and checks the result before any code exists.

Validated locatorssession s1 · closed
Navigation//*[@AutomationId='TogglePaneButton']✓validated
Length//*[@AutomationId='Length']✓validated
Source unit//*[@AutomationId='Units1']✓validated
Target unit//*[@AutomationId='Units2']✓validated
Unit item//ListItem[@Name='Meters']✓validated

Learn more about Live Test Case Execution

Project-aware Analysis

Before writing anything it maps your page objects, shared sections and models, and finds the one thing that is missing.

Demo.DesktopTestsyour project
  • Pages/UnitConverterWindow/
  • UnitConverterWindow.Map.csREUSE
  • UnitConverterWindow.Actions.csREUSE
  • UnitConverterWindow.Assertions.csREUSE
  • Pages/Shared/
  • NumberPadSection.csREUSE
  • Models/
  • ConverterType.csREUSE
  • LengthUnit.csREUSE
  • Components/
  • no WinUI ComboBox yetADD
  • Tests/UnitConverter/
  • UnitConverterConversionTests.csEDIT
BELLATRIX agentanalyze
ANALYZERead Pages/UnitConverterWindow: Map, Actions, Assertions
ANALYZERead NumberPadSection.cs: EnterDecimalNumber
ANALYZERead Models: ConverterType, LengthUnit
ANALYZERead UnitConverterConversionTests.cs: conventions
GAPGap: unit dropdowns are WinUI ComboBoxes; list items live at the window root

Framework-native Extensions

A custom component that overrides SelectByText, the way BELLATRIX recommends. The page object uses it; BELLATRIX itself stays untouched.

using Bellatrix.Desktop;
using OpenQA.Selenium;

namespace Demo.DesktopTests.Components;

public class WinUiComboBox : ComboBox
{
    public override void SelectByText(string value)
    {
        // Click the ComboBox to expand the dropdown flyout
        WrappedElement.Click();

        // WinUI3 popup items appear at the root of the accessibility tree
        new App().Components.CreateByXPath<Button>($"//ListItem[@Name='{value}']").Click();
    }
}
UnitConverterWindow.Map.cs · edited
using Demo.DesktopTests.Components;
// ===== UNIT DROPDOWNS =====
public WinUiComboBox InputUnitComboBox =>
App.Components.CreateByAutomationId<WinUiComboBox>("Units1");
public WinUiComboBox OutputUnitComboBox =>
App.Components.CreateByAutomationId<WinUiComboBox>("Units2");

Learn more about Framework-native Extensions

Traceable Test Generation

It reuses UnitConverterWindow and your models, tags the test with the SPECTRA ID and builds it before handing it back.

[TestFixture]
[App("Microsoft.WindowsCalculator_8wekyb3d8bbwe!App", Lifecycle.ReuseIfStarted)]
public class UnitConverterConversionTests : DesktopTest
{
    [Test]
    [ManualTestCase("TC-1006")]
    public void LengthConverter_OneMetreToFeet_DisplaysThreePointTwoEight()
    {
        var converter = App.Create<UnitConverterWindow>();

        converter.NavigateTo(ConverterType.Length);
        converter.SelectInputUnit(LengthUnit.Meters);
        converter.SelectOutputUnit(LengthUnit.Feet);
        converter.EnterValue("1");

        converter.AssertOutputValueContains("3.28084 Feet");
    }
}
Coding agentchat
BELLATRIX AGENT✓ bellatrix desktop close-session --session s1 --json
BELLATRIX AGENT✓ Write Components/WinUiComboBox.cscustom component, overrides SelectByText
BELLATRIX AGENT✓ Edit Pages/UnitConverterWindow/UnitConverterWindow.Map.csUnits1, Units2 now WinUiComboBox
BELLATRIX AGENT✓ Edit Tests/UnitConverter/UnitConverterConversionTests.cs+13 lines · [ManualTestCase("TC-1006")]
BELLATRIX AGENT✓ dotnet build Demo.DesktopTests/Demo.DesktopTests.csprojBuild succeeded.
BELLATRIX AGENT✓ Edit test-cases/unit converter/TC-1006.mdautomated_by: UnitConverterConversionTests

TC-1006 reproduced on the live app: 5 of 5 steps, every locator validated.

Learn more about Traceable Test Generation