---
title: "Test Case Templates"
description: "Create and manage test case templates in TestOrchestrator — the test case and test run field pools, the workspace default, project scope, and what a delete does to the cases on it."
source: "https://testorchestrator.com/docs/templates/test-case-templates"
---

# Test Case Templates

Test case templates control the field layout shown when creating or editing a test case — and the result form shown when a tester executes one. A template is a name, an enabled state, a chosen set of **test case fields** and **test run fields**, and the projects that may use it. How a field behaves — required or not, what it starts from, which options it offers — is set on the field, per project, not on the template.

## The template list

The **Test case templates** tab in Settings → Templates lists every test case template in the workspace, with a count beside the heading and a **New template** button. The table has five columns:

| Column | Description |
| --- | --- |
| **Template** | The name, as a link to the template’s editor. The workspace default carries a **Default** chip that explains itself on hover: _“New records start from this template, so it applies to every project and cannot be disabled or deleted”_. |
| **Fields** | How many fields the template carries. A template with none reads _None_, and the hint says why that matters: _“A template with no fields gives testers an empty form.”_ |
| **Projects** | _All_ when the template applies to every project, otherwise the number of projects it is scoped to. |
| **Status** | _Enabled_ or _Disabled_ — a state, not a switch. Changing it is a menu action; see [Enable and disable](https://testorchestrator.com/docs/templates/test-case-templates#enable-and-disable). |
| **Actions** | A row menu: **Edit template…**, **Set as default**, **Enable** / **Disable template**, and, below a divider, **Delete template…**. |

The search box filters by name; with no match the table is replaced by _“No templates match …”_, _Try a different name._ and a **Clear search** button. The **Template**, **Fields** and **Status** columns sort; the list opens sorted by name.

## The default template

Every workspace has exactly one default test case template, marked with the **Default** chip. Opening it says the same thing in a banner across the top of the editor:

> _“This is the default template — new cases start from it, so it applies to every project and cannot be disabled or deleted. Promote another template to change that.”_

Three of its own row-menu actions are therefore out of reach, each greyed with its reason: **Set as default** (_Already_), **Disable template** (_Default_) and **Delete template…** (_Default_). In its editor the **Enabled** switch is locked — _“The default template is always available.”_ — and so is **Applies to**, at _All projects_, because _“A default template must apply to all projects”_.

To change the default, choose **Set as default** on another template. The promotion demotes the incumbent in the same action, so exactly one Default chip remains, and it is offered with an **Undo**.

> **A disabled template cannot be promoted.** **Set as default** is greyed on a disabled row with the reason _Disabled_. Enable it first, then promote it — promoting no longer enables a template for you.

A case created without a template lands on the workspace default.

## How templates work with fields

Templates reference field definitions from [Settings → Fields](https://testorchestrator.com/docs/fields). The editor offers them as two independent pools, each headed with the number chosen out of the number available:

- **Test case fields**: _“Shown when writing or editing a case.”_
- **Test run fields**: _“Shown when recording a result for a case.”_

Each row is a tick box carrying the field’s label and its type — _Severity, Dropdown_. Ticking a row adds the field to this template; unticking removes it. That is the whole of what a template says about a field.

> **Field behaviour is not configured on the template.** Required state, starting value, the option list of a dropdown and the four Steps column slots all belong to the **field**, and are set per project in the field’s own editor — see [Project Overrides](https://testorchestrator.com/docs/fields/project-overrides). The template editor carries no per-field settings, so the same field behaves the same way in every template a project offers.

The template does not control field order either: fields appear in the order the Fields module lists them, and there is no reordering control here.

> **Test run fields on a template shape the result form.** The test run fields you tick here are the ones a tester is asked to fill in when recording a result on a case that uses this template — so two cases in the same run can present different result forms, or one can present none. See [Result fields](https://testorchestrator.com/docs/test-runs/recording-results#result-fields).

> **A template with no fields is allowed.** The save bar says _no fields chosen_ and the list shows _None_ against it — _“A template with no fields gives testers an empty form.”_ Nothing stops you saving it.

## Project assignment

The **Projects** panel of the editor decides _“Which projects offer this template when creating.”_ **Applies to** takes one of two answers:

- **All projects** — _Including new ones_: The template is offered in every project, and in every project added later. This is what a new template starts on.
- **Selected projects**: A searchable checkbox list appears, with the chosen count in its label — _“Only these projects offer it.”_ Projects outside the list never see the template.

On the default template this control is locked at **All projects**, with the reason on the control itself: _“A default template must apply to all projects”_.

## Create a template

1. Click **New template** on the Test case templates tab. A full-page editor opens.
2. Enter a **Name** — the placeholder suggests one, _e.g. Regression suite_. A name already used in this context blocks the save, and the button says so: _“A template with this name already exists here”_.
3. Tick the fields this template should carry in the **Test case fields** and **Test run fields** panels.
4. In the **Projects** panel, leave **All projects** or switch to **Selected projects** and pick them.
5. Click **Create template** in the save bar.

The save bar summarises what it is about to write — the name, and a warning of _no fields chosen_ if you left both pools empty. Leaving the editor with unsaved changes asks first.

## Edit a template

Click the template name in the list, or choose **Edit template…** from its row menu. Both open the same editor, at its own address, so an editor link can be shared. You can:

- Rename the template
- Enable or disable it
- Tick and untick fields in either pool
- Change which projects offer it

Removing a field from a template does not delete the field definition, and it does not delete the values stored on cases that use this template. It hides them. On those cases the field is not shown anywhere: the table cell is blank, the list and board show no chip for it, and the case panel has no row for it. The cases also count as having no value when you sort, group or filter by that field, so they land in its _No value_ group. Add the field back to the template and the stored values reappear on those cases, editable again. While the field is off the template, a case cannot be given a value for it.

A link to a template that no longer exists answers rather than hanging: _“That template does not exist”_, _“It may have been deleted, or the link may be wrong.”_, with a **Back to test case templates** link.

## Enable and disable

Choose **Disable template** or **Enable template** from the row menu. The change is immediate and carries an **Undo**.

- **Enabled** — the template is offered in the Template picker when creating a case
- **Disabled** — the template is **absent** from that picker; it is not listed as unavailable, it simply is not there. Existing cases using it are unaffected

Re-enabling a template makes it immediately available again. No data is lost when disabling. The editor says the same thing: _“Disabled templates keep their fields but are not offered when creating a case.”_

> **Prefer disabling over deleting.** A disabled template preserves all existing case data and can be re-enabled at any time with no data loss. Deleting cannot be undone, and moves its cases onto the default template — see below.

## Delete a template

Choose **Delete template…** from the row menu. The confirm dialog says where the template’s cases go:

> _“The template is removed from the workspace.”_ — then _“Cases created from it move to the default template. Values in fields the default template does not carry are kept but hidden until that field is added to it.”_ — followed by how many projects fall back to the default, for example _“Every project will fall back to the default template.”_

It is a plain confirm: **Delete template** is available as soon as the dialog opens. There is no Undo on the toast afterwards, and no way to restore a deleted template.

No recorded value is lost. The cases move onto the default template, and a value in a field that template does not carry stays stored but is treated exactly like a [field removed from a template](https://testorchestrator.com/docs/templates/test-case-templates#removing-a-field): hidden on the case, and counted as no value when you sort, group or filter. Values in fields the default template does carry stay as they were. If the default template later gains one of the missing fields, its values reappear on those cases, editable again. The only way to lose a stored value is to delete the field itself, and that is refused while values exist — see [Delete a field](https://testorchestrator.com/docs/fields/test-case-fields#delete-a-field).

Deleted cases that still point at the template move to the default template too, in the same step, and they stay deleted. The dialog counts projects, not cases, so they do not change what it says.

The **default template cannot be deleted** — the menu item is greyed with the reason _Default_. Promote another template first.
