Use with AI Agents
Ask your AI coding agent for BELLATRIX C# tests for web, desktop and mobile apps. Set it up once with the BELLATRIX Agent CLI.
Overview
With the BELLATRIX Agent, you describe a test in plain language and your AI coding agent (Claude Code, GitHub Copilot, Cursor or another agent) writes the BELLATRIX C# test, runs each step in the live app and resolves stable locators. You talk to the agent; the agent uses the bellatrix CLI, so you never need to call it yourself.
The full guide is at bellatrix.solutions/agent. This page is the short version for C#.
Install the CLI
Once per machine. You need the .NET SDK 8 or later. The CLI is the Bellatrix.Cli package on NuGet:
dotnet tool install -g Bellatrix.Cli
bellatrix --version
The last command prints the version, for example {"version":"3.2.0"}. Details, drivers and updates: Install and update.
Set Up Your Agent
In the root of your test repository, run:
bellatrix init --agent claude --language csharp --domains desktop,web,mobile
Replace claude with your agent and keep only the app types you test. init writes the BELLATRIX skills and helper agents into your repository, in your agent’s own layout. Supported agents and app types: Support matrix. All options: Set up your agent.
Your test project references BELLATRIX as usual (see How to Use Starter Kits?).
Ask Your Agent
Then ask your agent, for example:
Write a BELLATRIX test for TC-1006 Convert 1 meter to feet in the Windows Calculator.
Automate TC-1006.
Run TC-1006 in Calculator first and show me the locators you found.
See Automate a test case for how to write the test case and what the agent does with it.
Learn More
- BELLATRIX Agent documentation: workflow, web, desktop and mobile guides, CLI reference, known limits.
- Release notes and the Agent changelog.
- The CLI and the skill templates are open source: BELLATRIX-Agent on GitHub.