NEW · BELLATRIX AGENT · v3.2.0

The Agentic Test Automation Framework

Open-source test automation for web, mobile, desktop and API in C#, Java and TypeScript. The agent runs a test case in your app, reads your project and writes the test the way the framework intends.

dotnet tool install -g Bellatrix.Cli
bellatrix init --agent claude --language csharp --domains desktop
FREE AND OPEN SOURCE
BUILT ON PlaywrightSelenium WebDriverAppiumNovaWindows Driver MODEL-AGNOSTIC · WORKS WITH Claude CodeCursorGitHub CopilotCodex CLIGemini CLI

From Test Case to Automated Test

One manual test case (TC-1006, "Convert 1 meter to feet" in Windows Calculator), executed on the live app, mapped against your project and handed back as a built, linked BELLATRIX test.

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

  1. 01 Install
  2. 02 Execute
  3. 03 Analyze
  4. 04 Extend
  5. 05 Automate

Skills for Your Language and Platform

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
$ dotnet tool install -g Bellatrix.Cli
$ bellatrix init --agent claude --language csharp --domains desktop
✓ .claude/skills/bellatrix-desktop-components
✓ .claude/skills/bellatrix-desktop-locators-and-waits
✓ .claude/skills/bellatrix-desktop-page-objects-and-patterns
✓ .claude/skills/bellatrix-desktop-execute-scenario
✓ .claude/skills/bellatrix-desktop-generate-code
bellatrix init skills + instructions
WEBMOBILEDESKTOP
C# cs-webcs-mobilecs-desktop
Java java-webjava-mobilejava-desktop
TypeScript ts-webts-mobilets-desktop
One skill set per language × platform. The agent only learns the BELLATRIX you use.
  1. 01 Install
  2. 02 Execute
  3. 03 Analyze
  4. 04 Extend
  5. 05 Automate

It Runs the Test Case in Your Real App

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.md SPECTRA
# 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 agent chat
Read test-cases/unit converter/TC-1006.md Convert 1 meter to feet · 5 steps
BELLATRIX AGENT bellatrix desktop start-session --app calculator --session s1 --json Calculator launched
BELLATRIX AGENT bellatrix desktop snapshot --session s1 --json { path, elementCount, summary }
BELLATRIX AGENT bellatrix desktop click --session s1 --locator "//*[@AutomationId='TogglePaneButton']" navigation open, Length selected
BELLATRIX AGENT bellatrix-desktop-locator-specialist //*[@AutomationId='Units1']
BELLATRIX AGENT bellatrix desktop click --session s1 --locator "//*[@AutomationId='Units1']" unit list open

Every Locator Is Validated Live

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

Validated locators session s1 · closed
  • Navigation //*[@AutomationId='TogglePaneButton'] ✓
  • Length //*[@AutomationId='Length'] ✓
  • Source unit //*[@AutomationId='Units1'] ✓
  • Target unit //*[@AutomationId='Units2'] ✓
  • Unit item //ListItem[@Name='Meters'] ✓
  1. 01 Install
  2. 02 Execute
  3. 03 Analyze
  4. 04 Extend
  5. 05 Automate

Then It Reads Your Project

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

Demo.DesktopTests your project
  • Pages/UnitConverterWindow/
  • UnitConverterWindow.Map.cs REUSE
  • UnitConverterWindow.Actions.cs REUSE
  • UnitConverterWindow.Assertions.cs REUSE
  • Pages/Shared/
  • NumberPadSection.cs REUSE
  • Models/
  • ConverterType.cs REUSE
  • LengthUnit.cs REUSE
  • Components/
  • no WinUI ComboBox yet ADD
  • Tests/UnitConverter/
  • UnitConverterConversionTests.cs EDIT
BELLATRIX agent analyze
  • ANALYZE Read Pages/UnitConverterWindow: Map, Actions, Assertions
  • ANALYZE Read NumberPadSection.cs: EnterDecimalNumber
  • ANALYZE Read Models: ConverterType, LengthUnit
  • ANALYZE Read UnitConverterConversionTests.cs: conventions
  • GAP Gap: unit dropdowns are WinUI ComboBoxes; list items live at the window root
  1. 01 Install
  2. 02 Execute
  3. 03 Analyze
  4. 04 Extend
  5. 05 Automate

Adds Only What Is Missing

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

Components/WinUiComboBox.cs · added by the agent
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();

        // Find the list item from the root of the window (WinUI3 popup items may
        // appear at the root level of the accessibility tree, not as element children)
        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");

Click to expand, then find the item at the window root: exactly what the agent saw on the live app.

  1. 01 Install
  2. 02 Execute
  3. 03 Analyze
  4. 04 Extend
  5. 05 Automate

Built, Linked, Handed Back

It reuses UnitConverterWindow and your models, tags the test with the SPECTRA ID [ManualTestCase("TC-1006")] and builds it before handing it back.

Tests/UnitConverter/UnitConverterConversionTests.cs
[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 agent chat
BELLATRIX AGENT bellatrix desktop close-session --session s1 --json
BELLATRIX AGENT Write Components/WinUiComboBox.cs custom component, overrides SelectByText
BELLATRIX AGENT Edit Pages/UnitConverterWindow/UnitConverterWindow.Map.cs Units1, Units2 now WinUiComboBox
BELLATRIX AGENT Edit Tests/UnitConverter/UnitConverterConversionTests.cs +13 lines · [ManualTestCase("TC-1006")]
BELLATRIX AGENT dotnet build Demo.DesktopTests/Demo.DesktopTests.csproj Build succeeded.
BELLATRIX AGENT Edit test-cases/unit converter/TC-1006.md automated_by: UnitConverterConversionTests

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

  • Page objects, shared sections and models reused, not regenerated

  • Every locator validated on the live app before code is written

  • Test is built and linked back to its SPECTRA test case

One Framework for Every Platform

The agent stands on years of BELLATRIX: the same API across web, mobile, desktop and API tests.

Web

Playwright and Selenium WebDriver behind one component API, with built-in waits and validations.

Mobile

Android and iOS through Appium, with the same patterns as your web tests.

Desktop

Windows applications through the NovaWindows Driver for Appium 2.

API

REST and GraphQL tests with the same reporting and lifecycle.

SPECTRA Orchestrates. BELLATRIX Automates. Testimize Optimizes.

SPECTRA decides what to test and tracks coverage. The BELLATRIX Agent turns those test cases into automation. Testimize supplies the data.

Want the Agent Working on Your Test Project?

We built BELLATRIX. We can set up the agent, skills and CI for your team, and train them to review what it writes.