> For the complete documentation index, see [llms.txt](https://support.attackforge.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.attackforge.com/app/getting-started/test-cases.md).

# Test Cases

## Overview <a href="#overview" id="overview"></a>

Test cases are the individual checks that make up a test: what to test, the record that it was tested, and the result. When you create a project, you choose one or more **test suites**. A test suite is a set of test cases for a methodology, playbook or checklist, such as OWASP, and every test case in the suites you choose is added to the project.

To see them, select `Test Cases` from the project menu.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FyGr1CeepUmfDQiAGs967%2Ftest-cases-at-a-glance.svg?alt=media&amp;token=cdb04720-5437-4083-9956-1f34d0e9a13e" alt=""><figcaption></figcaption></figure>

## Why test cases matter <a href="#why-test-cases-matter" id="why-test-cases-matter"></a>

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FBDA2QKhZpayMeRvzqiqJ%2Fwhy-test-cases-matter.svg?alt=media&amp;token=45775b1c-9dd6-4b70-9338-7756f0c51135" alt=""><figcaption></figcaption></figure>

* **They prove coverage.** Clients can see exactly what was tested, not just what was found.
* **They make testing consistent.** Testers and agents work through the same methodology every time, so nothing is missed.
* **They make results comparable.** Repeatable assessments can be compared across projects and over time.
* **They connect findings to checks.** Developers can see which test case each vulnerability came from, and the test case result updates as vulnerabilities are fixed.
* **They support quality assurance.** Review notes and locking give you evidence for peer review, audit and standards such as CREST.

## What each test case records <a href="#what-each-test-case-records" id="what-each-test-case-records"></a>

For every test case, AttackForge records:

* what was tested, when, and by whom
* its **status**, such as Not Tested or Tested
* its **result**: Passed, Failed or Remediated
* notes for the client, and workspace notes for the security team
* evidence files
* quality assurance reviews and notes

## Who benefits <a href="#who-benefits" id="who-benefits"></a>

| Who                           | How test cases help                                                                                                     |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| **Testers and agents**        | A structured checklist to work through, with somewhere to record notes, evidence and execution steps for each check     |
| **Project Coordinators**      | Testing progress at a glance, and the ability to share the work out by user and by asset                                |
| **Clients**                   | Proof of what was tested and what passed, alongside the findings                                                        |
| **Developers**                | Each vulnerability is linked to the test case that found it, and the result changes to Remediated once fixes are closed |
| **QA reviewers and auditors** | Review notes and locked test cases provide evidence of methodology and review                                           |

## Who can do what <a href="#who-can-do-what" id="who-can-do-what"></a>

| Task                                                                                            | Who                                             |
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------- |
| Update test case status, notes and evidence                                                     | Users with **Edit** access to the project       |
| See workspace notes                                                                             | Users with **Edit** access to the project       |
| Add and respond to review notes                                                                 | Users with **Edit** access to the project       |
| Assign test cases to users or assets, lock, unlock, delete, add test suites, create abuse cases | **Administrators** and **Project Coordinators** |

## Test cases at a glance <a href="#test-cases-at-a-glance" id="test-cases-at-a-glance"></a>

Test suites add test cases to the project, where they're assigned to testers and assets. The tester moves each one through its status. The result follows its linked vulnerabilities: Passed with none, Failed while any are open, and Remediated once all are closed.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FGlM3ysKle3QVWd7ngWov%2FScreenshot%202026-10-27%20at%205.29.29%E2%80%AFpm.png?alt=media&amp;token=13f755c6-ac76-447a-a9fd-d9a881bd806a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FB85AcqFgR1lBdUHxzgZ3%2FScreenshot%202026-10-27%20at%205.29.58%E2%80%AFpm.png?alt=media&amp;token=f9e774da-939b-4ed8-8dd1-83b47718d608" alt=""><figcaption></figcaption></figure>

## What a test case holds <a href="#what-a-test-case-holds" id="what-a-test-case-holds"></a>

Each test case has places to record evidence, notes for different audiences, and the steps for running it. Every audience gets what it needs, and nothing it shouldn't see.

| Part                | What it's for                                                                                  | Who sees it                                                                |
| ------------------- | ---------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| **Evidence**        | Supporting files that show what was done, such as screenshots or request and response captures | Project team                                                               |
| **Notes**           | Client-facing observations from the tester, with files                                         | The client and the project team                                            |
| **Workspace Notes** | The security team's own notes, observations and artefacts, such as raw scan output from a tool | Only users with **Edit** access to the project                             |
| **Review notes**    | Quality control and peer review of the testing                                                 | Reviewers and the testing team - users with **Edit** access to the project |
| **Execution flows** | Step-by-step instructions for running the test case                                            | Project team                                                               |

## Evidence <a href="#evidence" id="evidence"></a>

Attach supporting evidence files to each test case. Evidence shows the test was actually carried out, which matters for client trust, audits, and anyone retesting later.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FdVSxLtBy8NaujPrtcVjB%2FScreenshot%202026-10-27%20at%205.33.35%E2%80%AFpm.png?alt=media&amp;token=02252ff0-7949-4463-bdb4-b94beb966b0b" alt=""><figcaption></figcaption></figure>

## Notes <a href="#external-notes" id="external-notes"></a>

Use notes for observations the client should see, such as "Rate limiting is enforced on the login form after five attempts." Clients then understand what was checked even when a test case passes, rather than seeing a bare result. You can attach files to notes.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FDaW4NnPY06u6819N25n0%2FScreenshot%202026-10-27%20at%205.34.13%E2%80%AFpm.png?alt=media&amp;token=2f324554-00f4-4360-a686-50c7c7f9348c" alt=""><figcaption></figcaption></figure>

## Workspace notes <a href="#internal-notes" id="internal-notes"></a>

Use workspace notes for anything the security team needs to keep but the client shouldn't see: working observations, raw tool output, payloads, or artefacts such as uploaded scan results. Workspace notes are only visible to users with **Edit** access to the project.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FBNit2DctAlCPiqPSBVoA%2FScreenshot%202026-10-27%20at%205.35.08%E2%80%AFpm.png?alt=media&amp;token=946b6b8d-3942-4ddd-8912-116e23be852b" alt=""><figcaption></figcaption></figure>

## Review notes <a href="#review-notes" id="review-notes"></a>

Review notes support quality control and peer review of testing. A senior tester or QA reviewer can record their review against each test case. This gives you a record of methodology review, which standards such as CREST require. See also [Reviewing and QA Vulnerabilities](https://support.attackforge.com/app/getting-started/reviewing-and-qa-vulnerabilities).

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FBiI1lvGSD2YIyi1NcyTt%2FScreenshot%202026-10-27%20at%205.36.45%E2%80%AFpm.png?alt=media&amp;token=6755966a-41e0-47a7-a39d-b5cfdbd01c36" alt=""><figcaption></figcaption></figure>

## Execution flows <a href="#execution-flows" id="execution-flows"></a>

An execution flow gives the tester step-by-step guidance for a test case, such as:

* the procedure to follow
* the tools to use
* internal processes, such as who to notify before a destructive test
* links to external resources

Execution flows help less experienced testers work to the same standard as senior ones, and make sure each test is run the same way every time.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FKHaYanJgC6QIi6OCVeFa%2FScreenshot%202026-10-27%20at%205.39.05%E2%80%AFpm.png?alt=media&amp;token=a6d646ed-1053-420d-a8e4-59dccc17659f" alt=""><figcaption></figcaption></figure>

## Work through test cases <a href="#work-through-test-cases" id="work-through-test-cases"></a>

### Update a test case's status <a href="#update-a-test-cases-status" id="update-a-test-cases-status"></a>

The status shows where each check is up to, so coordinators can track progress and nothing is left untested by accident. Only users with **Edit** access to the project can update test cases.

| Status                  | Meaning                                                                                                            |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------ |
| **Not Tested**          | The default. Testing hasn't started.                                                                               |
| **Testing In Progress** | A tester is working on it.                                                                                         |
| **Tested**              | Testing is complete.                                                                                               |
| **Not Applicable**      | The check doesn't apply to this target, for example an authenticated check on a non-authenticated web application. |

To change a status, select the test case's current status and choose a new one from the dropdown. To update several at once, select them and choose the option you want.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FS7NJf0lxOZmVJ2Ng1uX1%2FScreenshot%202026-10-27%20at%205.41.00%E2%80%AFpm.png?alt=media&amp;token=d0f89662-cdb2-4b79-a712-3770b3931522" alt=""><figcaption></figcaption></figure>

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FXq1h9THIwSSyksu6rjMu%2FScreenshot%202026-10-27%20at%205.41.18%E2%80%AFpm.png?alt=media&amp;token=f80bc033-7ad0-428d-8803-3ac863223746" alt=""><figcaption></figcaption></figure>

**Sub-statuses.** If you need more detail, such as *Blocked* or *Awaiting credentials*, you can create custom sub-statuses with custom fields in `Administration` → `Projects` → `Test Cases`.

### Passed, Failed and Remediated <a href="#passed-failed-and-remediated" id="passed-failed-and-remediated"></a>

As well as its status, each test case has a **result**. You don't set the result. AttackForge works it out from the vulnerabilities linked to the test case, so it always matches the findings.

| Result         | When                                                   |
| -------------- | ------------------------------------------------------ |
| **Passed**     | No vulnerabilities are linked to the test case         |
| **Failed**     | One or more linked vulnerabilities are still open      |
| **Remediated** | Vulnerabilities are linked, and all of them are closed |

**To fail a test case,** link an open vulnerability to it. There are two ways to do this:

* When you create or update a vulnerability, select the test case or cases it failed.
* From the Test Cases page, add a vulnerability directly from the test case, so it's linked straight away.

The test case is marked Failed as soon as a open vulnerability is linked. You can see its linked vulnerabilities on its **Vulnerabilities** tab. Once all of them are closed, for example after a successful retest, it changes to Remediated automatically.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FP0wq2M9lV1Hzvbtcy4VD%2FScreenshot%202026-10-27%20at%205.43.50%E2%80%AFpm.png?alt=media&amp;token=06bb25bc-f17c-40a0-8c71-7d3b421ab0da" alt=""><figcaption></figcaption></figure>

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FfYTn0AzaL3Uo6aT8wvZ1%2FScreenshot%202026-10-27%20at%205.45.59%E2%80%AFpm.png?alt=media&amp;token=6c6f3b66-41fb-476c-bac2-67c89b68929b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FBE0GIczTjkUwkvipuDNa%2FScreenshot%202026-10-27%20at%205.45.20%E2%80%AFpm.png?alt=media&amp;token=c5d343b8-7ff7-4fa2-94f8-897fd961b167" alt=""><figcaption></figcaption></figure>

### Assign test cases to users <a href="#assign-test-cases-to-users" id="assign-test-cases-to-users"></a>

Administrators and Project Coordinators can assign test cases to team members who have Edit access. This shares the work out across the team, avoids two testers duplicating effort, and makes it clear who is accountable for each check.

Select the test cases, then choose the `Assign To` option from the actions menu.&#x20;

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FFowM9d4ef37D45eyumdq%2FScreenshot%202026-10-27%20at%205.47.38%E2%80%AFpm.png?alt=media&amp;token=5709f4a2-43fb-4a81-9da7-a04464a0e85e" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can also assign whole test suites to a person when you invite them to the project. See Invite project team members in [Creating and Managing Projects](https://support.attackforge.com/app/getting-started/creating-and-managing-projects).
{% endhint %}

### Assign test cases to assets <a href="#assign-test-cases-to-assets" id="assign-test-cases-to-assets"></a>

Administrators and Project Coordinators can assign one or more assets in scope to a test case. This shows which checks apply to which systems. It helps with:

* **sharing out work by asset**, such as one tester per application
* **coverage**, so you can see that every asset has been tested against the right checks
* **traceability**, so you can see which asset each check and its results relate to

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FM2AKnGCdqXgXWhIE4iTo%2FScreenshot%202026-10-27%20at%205.48.51%E2%80%AFpm.png?alt=media&amp;token=09027b37-e61d-4e93-a4a6-2fa112f1e017" alt=""><figcaption></figcaption></figure>

### Tailor test cases with custom fields <a href="#tailor-test-cases-with-custom-fields" id="tailor-test-cases-with-custom-fields"></a>

Different kinds of testing need different information recorded against each test case. A web application test case needs different fields from a red team exercise or a test run by an AI agent. Custom fields let you shape test cases to fit the type of testing, so each record captures what matters for that work.

#### Examples by testing type <a href="#examples-by-testing-type" id="examples-by-testing-type"></a>

| Testing type  | Example custom fields                                                                                 |
| ------------- | ----------------------------------------------------------------------------------------------------- |
| **Red team**  | Outcome, attack source, critical steps, execution start and stop times, observations during execution |
| **Blue team** | Detection outcome, detection time, prevention action, alerted source, logged source, detection notes  |
| **AI agents** | Test objectives, expected pass and fail criteria, expected tools, execution flows                     |

#### Example: web application test and purple team test <a href="#example-web-application-test-and-purple-team-test" id="example-web-application-test-and-purple-team-test"></a>

A web application penetration test might need only a few extra fields on each test case.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FzpzyFVRtAryZetnXYJ7H%2FScreenshot%202026-10-27%20at%205.50.28%E2%80%AFpm.png?alt=media&amp;token=65228f95-e4f8-4895-845e-61cd9dc09fef" alt=""><figcaption></figcaption></figure>

A purple team exercise needs a different structure: fields for **MITRE ATT\&CK** mappings, a **Red Team** section for the attack, and a **Blue Team** section for detection and response.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FaDCqEyHIhRW6tF4KysDd%2FScreenshot%202026-10-27%20at%205.51.25%E2%80%AFpm.png?alt=media&amp;token=da23e173-e707-462b-895b-4ea2290fae23" alt=""><figcaption></figcaption></figure>

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2F7XpbPqV3aOtM6ivnwFix%2FScreenshot%202026-10-27%20at%205.51.40%E2%80%AFpm.png?alt=media&amp;token=b438cf93-68ac-43e6-93de-f1b16a4f053a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2F8pQOQGiYpUXWvdsbvPe3%2FScreenshot%202026-10-27%20at%205.52.00%E2%80%AFpm.png?alt=media&amp;token=1cc772bc-531b-4445-b8ce-3ab4f11bf686" alt=""><figcaption></figcaption></figure>

#### How to set it up <a href="#how-to-set-it-up" id="how-to-set-it-up"></a>

1. **Define sections and fields.** Create sections, such as Red Team and Blue Team, and the fields in them, in `Administration` → `Projects` → `Test Cases`.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2Fr19FA5azGoUmeLlwtlG7%2FScreenshot%202026-10-27%20at%205.53.10%E2%80%AFpm.png?alt=media&amp;token=a8c2b6b0-aa91-4d9e-b2a2-796b4fdeb533" alt=""><figcaption></figcaption></figure>

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FzzBHNfU5DWvEdRN2u0Ji%2FScreenshot%202026-10-27%20at%205.53.30%E2%80%AFpm.png?alt=media&amp;token=28cdd8ee-82d3-49c9-8c82-f876794aabe6" alt=""><figcaption></figcaption></figure>

2. **Show them only where they apply.** Use **Hide Expressions** to control when a section or field appears. For example, show the Red Team and Blue Team sections only on purple team projects, so web application testers never see them.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FRx4sswC9uj9NmiLAeUR1%2FScreenshot%202026-10-27%20at%205.54.13%E2%80%AFpm.png?alt=media&amp;token=06728299-1ab1-4f13-b841-f7b73801a52b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FqmsaEpkVVXxP7EiJEMTG%2FScreenshot%202026-10-27%20at%205.54.40%E2%80%AFpm.png?alt=media&amp;token=f60bffab-c6ef-4be1-a67c-0a243c00e6bf" alt=""><figcaption></figcaption></figure>

3. **Control who can view and edit each field.** Use **Custom Field Access Controls** to decide who can view or edit each field. For example, only the blue team might be allowed to edit detection fields.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FuunaX6dBwSI9mrNChDs5%2FScreenshot%202026-10-27%20at%205.55.53%E2%80%AFpm.png?alt=media&amp;token=9d6f5cc1-68a6-47f0-8e24-6cdb4ef0a2ce" alt=""><figcaption></figcaption></figure>

## Use test cases for agentic testing <a href="#use-test-cases-for-agentic-testing" id="use-test-cases-for-agentic-testing"></a>

AI agents can run security testing from a project's test cases, in the same way a human tester does. The agent doesn't explore the target open-endedly. It works through the test cases assigned to it, records what it did on each one, and links any vulnerabilities it finds. The test cases become the agent's instructions, its boundary and its progress tracker.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2F9M7db91chcI04QTkvqng%2Fagentic-testing-with-test-cases.svg?alt=media&amp;token=a0bf64f3-8787-49e3-9bc4-f25f2b53f8b5" alt=""><figcaption></figcaption></figure>

For the full setup, see [Driving Agent Test Procedures from AttackForge Project Test Cases](https://support.attackforge.com/app/ai-agentic-workflows#id-7.-driving-agent-test-procedures-from-attackforge-project-test-cases) in *AI Agentic Workflows*.

### Why drive agents from test cases <a href="#why-drive-agents-from-test-cases" id="why-drive-agents-from-test-cases"></a>

| Benefit                   | What it means                                                                                                                      |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| **Scope containment**     | The assigned test cases are the boundary, so the agent stays within what the client authorised                                     |
| **Methodology guarantee** | If the engagement is sold as ASVS or WSTG coverage, working through the project's test suite is the only way to show that coverage |
| **Definable completion**  | A finite list of test cases makes "done" measurable                                                                                |
| **Bounded cost**          | A fixed amount of work gives predictable time and token spend                                                                      |
| **No rabbit-holing**      | A fixed backlog makes the agent cover the whole list before going deep on any one item                                             |
| **Division of labour**    | Test cases can be assigned to an agent or a person, so both work from the same list without duplication or gaps                    |
| **Comparability**         | The same test cases across runs, testers and quarters let you benchmark agents against people and track trends                     |
| **Consistent quality**    | The methodology lives in the test suite, not the prompt, so results don't depend on who writes the prompt                          |
| **Injection resistance**  | Any deviation caused by a hostile target stands out against the fixed list                                                         |
| **Traceable deviation**   | Anything outside the suite has to be added as a new test case, so exploration is a recorded decision                               |

### How the agent works through a test case <a href="#how-the-agent-works-through-a-test-case" id="how-the-agent-works-through-a-test-case"></a>

1. Pulls the test case's details from the project.
2. Studies the test case and its **execution flows** to understand what's required and where the boundaries are.
3. Creates a test plan for the test case.
4. Carries out the testing according to the plan.
5. Documents the test plan and the outcome on the test case.
6. If it finds a vulnerability, creates it and links it to the test case, which marks the test case as **Failed**.
7. Updates the test case's status, for example to **Tested** or **Not Applicable**.
8. Adds any further notes to the test case.

The results land in the same places as a human tester's: statuses, notes, linked vulnerabilities and the automatic Passed, Failed and Remediated results. Coordinators and reviewers can track and check the agent's work the same way as a person's.

### Prepare your test cases for agents <a href="#prepare-your-test-cases-for-agents" id="prepare-your-test-cases-for-agents"></a>

* **Make execution flows detailed.** They're the agent's main guide to what to do and where to stop, so the more detail they hold, the better the agent's test plan. If you don't have execution flows yet, AI can help you draft and refine them.
* **Add agent-specific custom fields** where useful, such as test objectives, expected pass and fail criteria, and expected tools. See [Tailor test cases with custom fields](#tailor-test-cases-with-custom-fields).
* **Assign the work.** Assign test cases to the agent or to people, so it's clear which checks each will do.
* **Use review notes** to QA the agent's work, as you would for a human tester.

### Tools the agent uses <a href="#tools-the-agent-uses" id="tools-the-agent-uses"></a>

The agent reads and updates test cases through [AttackForge's MCP](https://support.attackforge.com/app/automations-and-integrations/ai-mcp-and-skills.md) [tools](https://docs.attackforge.dev/mcp/pages/getting-started):

| Tool                          | Used to                                                       |
| ----------------------------- | ------------------------------------------------------------- |
| Count Project Test Cases      | See how much work is on the project                           |
| Find Project Test Cases       | Pull the test cases and their details                         |
| Patch Project Test Case       | Update a test case, such as its status                        |
| Find Project Test Case Notes  | Read existing notes on a test case                            |
| Create Project Test Case Note | Record the test plan, outcome and observations                |
| Patch Project Test Case Note  | Update a note                                                 |
| Find Vulnerabilities          | Check existing vulnerabilities before creating new ones       |
| Get Field Structure           | Understand the fields, including custom fields, on test cases |
| Get Args Schema For Tool      | Work out how to call each tool correctly                      |

{% hint style="info" %}
**Agents can add test cases too.** If an agent needs to run a check that isn't in the suite, it can register that procedure as a new test case on the project, so the deviation is recorded. See [Dynamically Registering Agent Test Procedures as Project Test Cases](https://support.attackforge.com/app/ai-agentic-workflows#id-6.-dynamically-registering-agent-test-procedures-as-project-test-cases).
{% endhint %}

## Manage test cases <a href="#manage-test-cases" id="manage-test-cases"></a>

These tasks are for **Administrators** and **Project Coordinators**.

### Add test suites after a project starts <a href="#add-test-suites-after-a-project-starts" id="add-test-suites-after-a-project-starts"></a>

Add test suites when the scope of testing grows, for example when an API test is added to a web application engagement, or when you start a new round of testing on the same project.

1. Select `Add` → `Test Suites`.
2. Choose the suites to add.
3. Choose whether to **automatically lock the previous test cases**.

New test cases are added unlocked and active. If you choose to lock the previous test cases, the project's status resets to **Waiting to Start** and its progress to **0%**, based only on the new suites. This suits a fresh round of testing, because earlier results don't count towards the new round's progress.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FjlYlmXXdKP0rLsDytIPx%2FScreenshot%202026-10-27%20at%208.02.43%E2%80%AFpm.png?alt=media&amp;token=206bcccb-afc1-4fba-84d4-0cb762b9555d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FXCjMheOxrNvSKrCzR0hF%2FScreenshot%202026-10-27%20at%208.02.58%E2%80%AFpm.png?alt=media&amp;token=7caf19a9-fbc3-4ab5-a75a-4e0273f8b14b" alt=""><figcaption></figcaption></figure>

### Lock and unlock test cases <a href="#lock-and-unlock-test-cases" id="lock-and-unlock-test-cases"></a>

Lock test cases to freeze them as a record of what was tested and found. For example, lock the first round of testing before a retest round begins. You can lock and unlock test cases at any time.

When a test case is locked:

* it **can't be updated**, and no notes or evidence can be added, which gives you audit assurance
* it **doesn't count** towards the project's status or completion percentage
* it **doesn't appear in reports**, which cover active test cases only

**To lock:** select the test cases, then choose `Lock` from the actions menu.&#x20;

**To unlock:** select `Show Locked`, select the test cases, then choose `Unlock` from the actions menu.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FSJT8hXWcYzLBJyLDzOxD%2FScreenshot%202026-10-27%20at%208.03.56%E2%80%AFpm.png?alt=media&amp;token=8ece7932-ad3b-4c46-b6b1-b2405fe5e075" alt=""><figcaption></figcaption></figure>

### Delete test cases <a href="#delete-test-cases" id="delete-test-cases"></a>

Delete test cases that don't need any action on this project, so the checklist only shows relevant work and progress reflects reality. Select the test cases, then choose `Delete` from the actions menu.

If a test case doesn't apply but you want a record that it was considered, set its status to **Not Applicable** instead of deleting it.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FZshg1iqrAtZzI91ykotm%2FScreenshot%202026-10-27%20at%208.04.33%E2%80%AFpm.png?alt=media&amp;token=8c05ab0d-f787-4986-995c-ddd7c06d7067" alt=""><figcaption></figcaption></figure>

### Create abuse cases <a href="#create-abuse-cases" id="create-abuse-cases"></a>

An abuse case is a test case written for one specific project or assessment objective, for checks that no standard methodology covers. For example, on a reverse auction website, you might write abuse cases to test the business logic of the bidding function, such as whether a bidder can retract a bid after the auction closes.

1. Select `Add` → `Abuse Case`.
2. Enter the details of the abuse case.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2Ftque2wcDkemekKmAUUtL%2FScreenshot%202026-10-27%20at%208.05.29%E2%80%AFpm.png?alt=media&amp;token=37e47da4-25c9-4b22-ba0f-cc09b294add8" alt=""><figcaption></figcaption></figure>

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FlIKC0TBjgeQDd2QU5NSk%2FScreenshot%202026-10-27%20at%208.05.39%E2%80%AFpm.png?alt=media&amp;token=6948ec94-939a-4c75-9e63-c1a4b0c20bbf" alt=""><figcaption></figcaption></figure>

To view or edit abuse cases, use the **Test Suites** module. To delete one, delete it from the project in the same way as any other test case (see Delete test cases).

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FLr4lpJnTYlooFKkdjqLW%2FScreenshot%202026-10-27%20at%208.06.32%E2%80%AFpm.png?alt=media&amp;token=be0ce925-fdf1-4d07-9ab4-bf5678196ed2" alt=""><figcaption></figcaption></figure>

## Tips and best practices <a href="#tips-and-best-practices" id="tips-and-best-practices"></a>

* **Always link vulnerabilities to the test cases that found them.** That's what sets the Failed and Remediated results, and lets developers trace each finding back to a check.
* **Write notes on passed test cases too.** A short note on what was checked shows the client the work behind a pass.
* **Keep raw output in workspace notes.** Tool output and payloads stay with the security team and out of client view.
* **Use Not Applicable rather than deleting,** when you want a record that a check was considered.
* **Assign by user and by asset on larger projects.** It shares the work out and makes coverage gaps easy to spot.
* **Lock the previous round before a retest.** You keep an audit record, and the new round's progress starts from zero.
* **Use Hide Expressions** so testers only see the fields that apply to their type of testing.
* **Write abuse cases for business logic.** Standard methodologies rarely cover how a specific application can be misused.

## FAQ <a href="#faq" id="faq"></a>

**I can't change a test case's status.** You need Edit access to the project, and the test case mustn't be locked. Locked test cases can't be updated.

**How do I mark a test case as Failed?** Link a vulnerability to it. The result is set automatically: Failed while any linked vulnerability is open, and Remediated once they're all closed.

**A test case still shows Failed after the fix was confirmed.** Check that every linked vulnerability is Closed. It only changes to Remediated when all of them are.

**Why don't some test cases appear in my report?** Locked test cases aren't included in reports, which cover active test cases only.

**Can clients see workspace notes?** No. Workspace notes are only visible to users with Edit access to the project. Use notes for anything the client should see.

**Where do I edit an abuse case?** In the Test Suites module. To delete one, delete it from the project.

## Related pages <a href="#related-pages" id="related-pages"></a>

* [Creating and Managing Projects](https://support.attackforge.com/app/getting-started/creating-and-managing-projects): choosing test suites and custom fields
* [Reviewing and QA Vulnerabilities](https://support.attackforge.com/app/getting-started/reviewing-and-qa-vulnerabilities)
* [Project Scope](https://support.attackforge.com/app/getting-started/project-scope): the assets you can assign to test cases
* [Test Suites module](https://support.attackforge.com/app/modules/testsuites.md)
* [Creating](https://support.attackforge.com/app/getting-started/creating-vulnerabilities.md) and [updating](https://support.attackforge.com/app/getting-started/updating-vulnerabilities.md) vulnerabilities


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.attackforge.com/app/getting-started/test-cases.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
