Skip to main content

Automation Planner

Plan: the Automation Planner is included from the Team plan, in the dashboard and in the API / MCP tools (which also need the Public API, Starter). Other plans see what it does and where to get it. It must also be switched on in Settings → Features.

The Automation Planner shows which manual test cases to automate next, and gives your coding agent everything it needs to do it. Ranking and briefs are computed from your own test data: no AI key is needed.

Feature flag: aiFeatures.automationPlanner. Turn it on in Settings → Features → AI Features, with or without an AI key.


From manual case to automated test​

  1. Open Automation Planner. The manual test cases of the selected project are listed, best candidates first, 100 at a time: Show 100 more loads the next ones. Filters narrows the list to folders or tags.
  2. Select up to 30 test cases and click View Automation Brief.
  3. Click Copy Prompt for IDE Agent and paste it into Claude Code, Cursor or Codex in your test repository. With the MCP server connected, you can ask the agent to call get_automation_brief instead.
  4. The agent writes the tests and starts each title with the test case key, such as AG-TC-12: Sign in.
  5. When the tests run, Agnox turns each manual test case into the automated one. It leaves the candidate list, and no duplicate is created.

Excluding cases that cannot be automated​

Some test cases need a person or real hardware: pairing a device, a firmware update over the air, a battery test. Exclude them so they stop showing up as candidates. Test Managers (Admin, Developer and Manual Tester roles) can change exclusions; every role sees them.

  • One or more test cases: select them and click Mark as Not Automatable in the bar at the bottom. A short reason, such as Hardware / Manual-only, is optional. A single case can also be marked from the ⊘ button on its row.
  • A whole suite or folder: open Filters, choose it under Exclude a suite or folder and click Exclude from Planner. Its sub-folders are excluded too, and a case with that legacy suite name is excluded as well. Excluded suites are listed as chips above the candidates; click × on a chip to bring its cases back.
  • Seeing and restoring: turn on Show excluded in Filters. Excluded cases are listed with a Not automatable or Excluded suite badge, and a marked case has Restore to Planner.

Excluded cases are left out of the candidate count, the API and the MCP tools. A Not automatable badge is also shown on the Test Cases page. The mark belongs to Agnox: importing test cases again with Update existing never changes it.


How cases are ranked​

Each candidate gets a score from 0 to 100. The same data always gives the same score.

SignalPoints
Severity (Critical 30, High 22, Medium 12, Low 4)up to 30
Manual runs in test cycles (2.5 each)up to 25
Manual runs that failed (one 10, two 15, three or more 20)up to 20
Smoke or Regression type, or a smoke, sanity, regression, critical or p0 tag (Security type: 6)up to 10
Written steps (8), expected results on at least half of them (4), preconditions (3)up to 15

A score of 70 or more is Critical, 50 or more is High, 30 or more is Medium, and anything lower is Low. The reasons behind the score are listed under each test case.

Only passed and failed results count as manual runs. Test cases that are already automated are left out.


The Automation Brief​

For each selected test case, the brief has its steps and expected results, preconditions, manual run history, score and reasons. It also names the test repository, detected from the project's GitHub CI runs, with a few existing spec files as examples. If no repository is detected, you can type one. Your Team Coding Conventions from Run Settings are included.


How a manual case becomes automated​

A test is linked to a manual test case when it names the case key:

  • in its title: AG-TC-12: Sign in or signs in [@AG-TC-12];
  • in a Playwright tag or annotation whose whole value is the key, such as { tag: '@AG-TC-12' }. This needs @agnox/playwright-reporter 2.8.0 or later, or an Agnox Hosted run;
  • in a JUnit or Allure tag or property whose whole value is the key.

Without a key, a test is linked when its full title (describe blocks included) is exactly the title of one manual test case, and no other test or test case has that title.

The test case keeps its key, title, steps, folder, history and test cycles. Its type changes to Automated, and the change is recorded in its history. This happens on the first reported run, or earlier when an agent calls sync_test_cases.

A skipped test, such as test.fixme(), does not change its manual test case. If several tests name the same key, the first one is linked and the others get test cases of their own.


AI strategy (optional)​

With an AI key configured, Generate AI strategy appears next to the brief. It writes a longer document for the selected test cases: risk breakdown, architecture recommendations and spec scaffolds. You can add a product spec and repository details first. The spec text is sent to the model for that document only and is not saved.

If you don't enter a repository, Agnox uses the detected one and sends its top-level file list and playwright.config to your AI provider.

Saved strategies are under History.


API​

MethodPathDescription
GET/api/v1/automation-planner/candidatesRanked manual test cases (API key)
POST/api/v1/automation-planner/briefAutomation Brief (API key)

candidates pages with offset and limit (at most 100). Cases marked not automatable or in an excluded suite are left out; includeExcluded=true returns them with an exclusion (source case or suite, reason, suite). The response also has notAutomatableCount and excludedSuites.

The dashboard changes exclusions with:

MethodPathBody
POST / DELETE/api/ai/automation-planner/not-automatable{ projectId, testCaseIds, reason? }: mark (at most 500) / restore
POST / DELETE/api/ai/automation-planner/excluded-suites{ projectId, suite }: exclude / include a suite or folder path

They need the Automation Planner plan capability, the feature flag on, and a Test Manager role.

See the Public API. Both work with any API key role, and only within your organization. They and the MCP tools do not depend on the feature flag, which controls the dashboard page.