> ## Documentation Index
> Fetch the complete documentation index at: https://docs.provar.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Group requirements into suites

> Make a suite, move requirements into and out of it, rename or archive it, and run everything in it at once.

A [suite](https://docs.provar.dev/glossary.md#suite) is a group of [requirements](https://docs.provar.dev/glossary.md#requirement) in a [project](https://docs.provar.dev/glossary.md#project). Suites
hold requirements, not [tests](https://docs.provar.dev/glossary.md#test) or [scenarios](https://docs.provar.dev/glossary.md#scenario). The tests or scenarios come along
because they sit under each requirement. Use suites to keep related requirements together, and to run them all in one
go. Suites work the same way in both project types, with one difference noted below.

## Before you start

**In TrustAI**

* A project with at least one requirement. See [Write requirements](https://docs.provar.dev/guides/beginner/write-requirements.md).
* The **Editor** or **Admin** [project role](https://docs.provar.dev/glossary.md#project-role) in it.
* To run a suite: a saved test or scenario under at least one of its requirements, and
  [credits](https://docs.provar.dev/glossary.md#credits) in your [workspace](https://docs.provar.dev/glossary.md#workspace).

## Make a suite

1. On the **Scenarios** or **Tests** page, click **Create** at the top right, then **New suite**.

   **You should see:** **New suite**, with a **Name** field and the note "A suite groups requirements that belong
   together." **Create suite** can't be clicked until you enter a name.

2. Enter a **Name**, such as `Required fields`, and click **Create suite**.

   **You should see:** the message **Created suite** and the suite's name, and the project overview counts it
   under **Suites**. The list shows the new suite's heading with **0** beside it and "No requirements in this suite
   yet. Use + to add one, or move one here from its Suite field." In a project with no requirements yet, the page
   says **Add your first requirement** instead, until you add one.

You can also get a suite from a [standard](https://docs.provar.dev/glossary.md#standard). When you add
[recommended tests and scenarios](https://docs.provar.dev/glossary.md#recommended-tests-and-scenarios) to a project, their requirements arrive
in a suite named after the part of the standard they came from. See
[Test an Agentforce agent](https://docs.provar.dev/guides/intermediate/test-an-agentforce-agent.md).

## Put a requirement in a suite

**For a new requirement:** click **Create**, then **New requirement**. Under the name, a field shows **Unassigned**.
It has no label. Click it and choose the suite. Or point at a suite's heading in the list and click the **+** on it
(its name is **New requirement in** the suite's name). Then that field shows the suite's name for you.
[Write requirements](https://docs.provar.dev/guides/beginner/write-requirements.md) shows the form.

**For a requirement you already have:**

1. Click the requirement's name in the list to open its panel.

   **You should see:** the panel's **Definition** tab, with **Coverage**, **Suite** and **Description**.
   **Suite** shows **Unassigned** if the requirement isn't in a suite.

2. Click the suite under **Suite** and pick the suite you want.

   **You should see:** your suites, leaving out the one the requirement is in now. After you pick, the message
   **Requirement moved**, and the requirement moves under that suite's heading in the list.

The list only offers suites you've already made. If you type a name that isn't there, it says **No matches**. Make
the suite first, then come back.

## Take a requirement out of a suite

1. Open the requirement's panel and click the suite under **Suite**.

   **You should see:** **Unassigned** in the list, with your other suites.

2. Click **Unassigned**.

   **You should see:** the requirement under the **Unassigned** heading in the list. The **Unassigned** heading only
   shows while at least one requirement isn't in a suite.

A requirement sits in one suite at a time. Moving it doesn't change its tests, scenarios or results.

## See requirements by suite

Click **Display options** at the top right of the list (next to the filter button).

* With **Group by suite** on, which is how the list starts, each suite is a heading with its requirements under it.
  The number beside a suite's name is how many requirements it holds.
* With **Group by suite** off, the list is one long list, and a **Suite** column shows each requirement's suite.
  In an agent evaluation project, click a requirement's suite there and pick another suite (or **Unassigned**) to
  move it. In a functional testing project, the column only shows the suite: move a requirement from its **Suite**
  field instead.

**You should see:** the list change as soon as you flip **Group by suite**.

Click a suite's heading to fold it up or open it again.

## Rename a suite

Double-click the suite's name on its heading, type the new name and press **Enter**.

**You should see:** a message such as **Renamed “Opportunity rules” to “Opportunity fields”**, and the new name on
the heading.

Or use the menu:

1. Point at the suite's heading and click **⋮** (its name is **Actions for** the suite's name), then
   **Rename suite**.

   **You should see:** **Rename suite**, with the suite's **Name**. **Rename** can't be clicked until you change it.

2. Enter the new name and click **Rename**.

   **You should see:** the new name on the suite's heading in the list.

## Run a suite

1. Point at the suite's heading. Click the run button (▷) that appears on it. Its name says what it runs, such as
   **Run 2 tests in Required fields** or **Run 4 scenarios in Case privacy**.

   **You should see:** the same dialog as for one test or scenario, counting everything in the suite under
   **This will run**, such as **2 tests selected** and **2 tests will run**.

   * **Functional testing:** **Run tests**.
   * **Agent evaluation:** **Run & evaluate scenarios**, with **Attempts per scenario**. In a project with no
     default agent, it says "No default agent is chosen." with **Fix in project settings**.

   The run button only appears once the suite has a saved test or scenario.

2. Click the button at the bottom: **Run 2 tests** (or however many) or **Run evaluation**.

   **You should see:** the run's page opens. Each requirement in the suite is listed with its suite's name beside it,
   and its tests or scenarios under it. **Run details** shows the run's **Result** when it ends.

The **Unassigned** heading has a run button too, for the requirements that aren't in a suite.

To run only some requirements, tick the box on each requirement's row instead. The box on a suite's heading
(**Select every requirement in** and the suite's name) ticks every requirement in that suite. In our functional
testing walkthrough, it ticked their tests too. A bar appears at the top of the list, with how many will run and a run button: **Run selected tests**
(functional testing) or **Run** (agent evaluation).
[Run tests and read results](https://docs.provar.dev/guides/beginner/run-tests-and-read-results.md) explains the results.

## Archive a suite

[Archiving](https://docs.provar.dev/glossary.md#archive) a suite takes it out of the list. TrustAI asks what to do with the requirements in it first.

1. Point at the suite's heading, click **⋮**, then **Archive suite…**.

   **You should see:** **Archive** and the suite's name, with **Reason for archiving** and "What happens to the
   requirements?". It offers two choices:

   * **Archive requirements too:** "Only the exact eligible definitions in the reviewed plan are archived. History is
     retained."
   * **Move requirements:** "Archive the suite and keep its requirements in a destination you choose."

2. Write a reason. To keep the requirements, choose **Move requirements**, then choose where they go under
   **Move requirements to**: **Unassigned** or another suite. Click **Review**.

   **You should see:** a summary of what will happen, such as "Move 1 requirement", "Archive 1 suite" and the
   destination. **Edit options** takes you back.

3. Click **Archive**.

   **You should see:** a second box, **Archive** and the suite's name with a question mark: "Archive the records
   shown in this review. History is retained. This does not permanently delete records." Click **Archive** again.

4. Wait for the archive to finish.

   **You should see:** **Archive completed** and **Done**. Click **Done**. The suite is gone from the list, and its
   requirements are under the destination you chose.

## If something goes wrong

| What you see | What to do |
| - | - |
| You made a suite, but the page still says **Add your first requirement** | That's expected in a project with no requirements yet. Add a requirement and your suites show in the list. |
| The **Suite** list says **No matches** | You can't make a suite from there. Click **Create**, then **New suite**, then come back. |
| A suite's heading has no **⋮**, run button or **+** | If the overview panel is open on a narrow screen, it can cover them. Click **Hide overview** at the top right of the list, then point at the heading again. |
| A suite has no run button | Point at its heading. If there's still no button, none of its requirements has a saved test or scenario yet. |
| The **Unassigned** heading is gone | That's expected when every requirement is in a suite. |
| After **Create suite**, the box says **Creation is not confirmed** | Wait a few seconds first: in our check this showed for a moment and then went away by itself. If it stays, TrustAI didn't hear back in time. Click **Retry create**. In our walkthrough, this made the suite once, not twice. |
| While archiving, the box says **Completion is not confirmed for every change** | Wait a few seconds first: in our check this showed for a moment and then went away by itself. If it stays, click **Retry archive**. It repeats only the changes that weren't confirmed. Wait for **Archive completed**. |

## Next

* [Run tests and read results](https://docs.provar.dev/guides/beginner/run-tests-and-read-results.md)
* [Fix a failing test or scenario](https://docs.provar.dev/guides/intermediate/fix-a-failing-test.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.