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 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.
- 01 Install
- 02 Execute
- 03 Analyze
- 04 Extend
- 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.
- 01 Install
- 02 Execute
- 03 Analyze
- 04 Extend
- 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.
# 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 Every Locator Is Validated Live
It snapshots the UI, resolves each XPath with the locator specialist and checks the result before any code exists.
- Navigation //*[@AutomationId='TogglePaneButton'] ✓
- Length //*[@AutomationId='Length'] ✓
- Source unit //*[@AutomationId='Units1'] ✓
- Target unit //*[@AutomationId='Units2'] ✓
- Unit item //ListItem[@Name='Meters'] ✓
- 01 Install
- 02 Execute
- 03 Analyze
- 04 Extend
- 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.
- 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
- 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
- 01 Install
- 02 Execute
- 03 Analyze
- 04 Extend
- 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.
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();
}
} 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.
- 01 Install
- 02 Execute
- 03 Analyze
- 04 Extend
- 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.
[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");
}
} 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.