# Tags

When you label tests with tags, you are categorizing them based on certain shared similarities even if they don't necessarily belong in the same folder/suites.

A test case can have multiple tags, you can apply these tags as filter when searching for test cases.

For example, you can add a `Critical` label tag to tests that must run in your pipeline.

### Adding/Removing Test Tags

1. On the Tests listing page, click on the options icon of a test
2. Click on 'Tags' from the popup menu<br>

   <figure><img src="/files/FCNcjBFFYlXsYNkqSJgH" alt=""><figcaption><p>Clicks on tags</p></figcaption></figure>
3. From the appearing modal, type in your desired tag/label name, and press Enter on your keyboard. You can also select from the list of existing tags.<br>

   <figure><img src="/files/fNURIou1ugkG0I7URyCj" alt=""><figcaption><p>Type in tag name</p></figcaption></figure>
4. Once you have added all your desired tags, click on the 'Save' button.<br>

   <figure><img src="/files/JxcnVG9GVRGxeDgO5chX" alt=""><figcaption></figcaption></figure>

### Filter tests by tag

To get test cases based on the tags assigned to them:

1. Go to the test listing page

2. Click on the 'Filters' button<br>

   <figure><img src="/files/IUNl9mMIwEtKevNGwS7e" alt=""><figcaption><p>Click on Filters</p></figcaption></figure>

3. On the Filters modal, click on the 'Filter by Tags' dropdown, then select the tags you want to apply to your filter\ <br>

   <figure><img src="/files/oFDKXEhARF1OIUrIaIOe" alt=""><figcaption><p>Select tags to filter by</p></figcaption></figure>

   Only tests assigned to the selected tags will be displayed, irrespective of the folder they are contained within.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.getscandium.com/test-management/tags.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
