# Test Tagging

**Tag Test** node allows you to create multiple branches within your test flow that execute only when needed. For example, you can use it to differentiate between **Production and Non-Production** test packs or to switch between **Smoke and Regression** testing.

#### Locating the Tag Test Node

You can find Tag Test node in the **Utilities** section:

<figure><img src="https://2973996442-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH10EEO19EDpBHNPowThh%2Fuploads%2FhlrWXL5e1eAW81iMJMEy%2FsnwMutkEeZVCaQq3tWWp95Lq3W0.webp?alt=media&#x26;token=ad2c209a-2391-4cea-8809-902c71a9fced" alt="Where to find the Tag Test Node"><figcaption><p>Where to find the Tag Test Node</p></figcaption></figure>

#### Configuring the **Tag Test** Node

After opening the **Tag Test** node, you can:

* Choose an existing tag
* Create a new tag

<figure><img src="https://2973996442-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH10EEO19EDpBHNPowThh%2Fuploads%2F89iPzBytdyAC1MPvjA02%2FVHIfTK3xsQV7kXFwVYu6Md58SCo.webp?alt=media&#x26;token=adc09615-d135-4c69-96c7-765176b2c0f4" alt=""><figcaption></figcaption></figure>

Additionally, the **Tag Test** node includes **Manual Run Modes**, allowing you to choose if the tagged test will be triggered or ignored when you run the test manually via the play button in the top right corner of your flow.

#### Example: Environment specific testing

Different environments can have varying features, configurations, or data, making it essential to test them separately to ensure consistent functionality. For example, some features may be available in Production but disabled in a Test environment , or certain UI elements might behave differently.

Let’s look at an example in DoesQA:

<figure><img src="https://2973996442-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH10EEO19EDpBHNPowThh%2Fuploads%2FBkIrjLdWJn4qr42k6hiX%2F2wXpLbwBECstCgWrCqajLrorzEE.webp?alt=media&#x26;token=6db4c03f-259f-4558-b41b-f2ff503d31ed" alt=""><figcaption></figcaption></figure>

Here, we have a simple login test where a Cookie Consent pop-up appears in Production but does not in Nonprod. Using the **Test Tag** node, you can ensure that consent is given only in Production.

Both environments will require different log in details, in this case we can add:

* **Production** Test tag which will store production log in details
* **Nonprod** Test tag which will store nonprod log in details

#### Example: Running Different Test Packs (Smoke and Regression)

Testing different aspects of an application or website separately helps catch issues early and ensure everything works as expected. **Smoke testing** is a quick check to verify that the core functionality is working before running more extensive tests. **Regression testing** ensures that updates or fixes haven’t broken any existing features.

In the example below, the **Smoke pack** runs a login test to confirm users can access the system. The **Regression pack** goes further by also testing the forgotten password functionality, ensuring that all previously working features continue to function correctly after changes.

<figure><img src="https://2973996442-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH10EEO19EDpBHNPowThh%2Fuploads%2FuaLWwfLNJmHuE867Lp1d%2FUz6nh3WtHxxyqxYIRH8jpmNy3g.webp?alt=media&#x26;token=5eeb6a60-7b7e-4f36-923e-7099dc46d94b" alt=""><figcaption></figcaption></figure>

#### How to run tagged tests?

**Step 1: Create a New Run Recipe**

1. Navigate to **Settings**
2. Select **Run Recipes**
3. Click **“+”** in the top right corner

You will then be presented with a **Create Recipe** dialog:

<figure><img src="https://2973996442-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH10EEO19EDpBHNPowThh%2Fuploads%2FXrVeiDXVLsCV8OTLlxnG%2FLFzsRFS51dSu3KvuRL3H9njnx6Y.webp?alt=media&#x26;token=42220e23-9ea2-41f1-b279-51c0b6674035" alt=""><figcaption></figcaption></figure>

**Step 2: Configure the Run Recipe**

In the **Create Recipe** dialog:

* Select whether to include or exclude specific **Test Case Filters** tags
* For example, to create a **Regression** run, select the **Regression** tag

<figure><img src="https://2973996442-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH10EEO19EDpBHNPowThh%2Fuploads%2FGcngMAgUjlkmTCM5cgYI%2FdqCPJDCdTMInG24TQnGYVGulcOA.webp?alt=media&#x26;token=cee43d59-5224-42fa-ad98-cdc485c6b03f" alt=""><figcaption></figcaption></figure>

**Step 3: Start the Run**

Once a recipe is created, you can start a tagged run - click on the play icon for the newly created Recipe:

<figure><img src="https://2973996442-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH10EEO19EDpBHNPowThh%2Fuploads%2F69bCKrZ8gTmqN70zu74a%2F1Xoplua3I0RJcB1yNJwBwjiYdYg.webp?alt=media&#x26;token=48262746-48aa-47c6-a11f-dcf4c435e1d7" alt=""><figcaption></figcaption></figure>

This will trigger a **Regression** pack run, which, based on our previous example, tests login and forgotten password functionality.
