Skip to content

Tags, Labels And Custom Fields

Tags, Labels & Custom Fields are powerful features in a test management system that allow users to categorize and organize their testing data.

Tags and Labels are keywords or phrases that can be applied to individual tests or test suites to provide an at-a-glance summary of the test’s status, type, priority, or any other relevant information. They make it easy for users to filter and sort their tests to quickly find what they need.

Custom fields, on the other hand, are user-defined fields that can be added to a test case to capture specific information. For example, custom fields can be used to store information such as the tester’s name, the expected result, the test environment, or the date the test was last run. Custom fields make it possible for users to tailor the test management system to their specific needs, and to store and retrieve data in a consistent and meaningful way.

Tags, Labels & Custom Fields can help users to streamline their testing process, increase the accuracy of their test data, and make it easier to find and analyze the information they need.

Tags vs Labels: What to Choose

While both Tags and Labels help organize and categorize your tests, they serve slightly different purposes and excel in different situations. Understanding these differences can help you make the most of them.

Tags are typically used to assign a specific keyword or category to test cases, making it easier to group, filter, or search for related tests. They are often used for ad-hoc categorization and usually have no strict hierarchy. For example, Tags can represent various attributes, such as the type of test (for ex., @Regression, @Smoke, @E2E), associated features, or testing phases.

In automation testing, a Tag is a segment of extra metadata that you can include on an individual test case or a group of tests. These tags are directly embedded in the test code, and allows you to specify additional information for your tests, which you can use to enhance your test runs. The testing tool will execute only tests containing that piece of information, as almost all modern testing tools and frameworks have integrated support for running a subset of tests, using tags. For example, execute all tests tagged as @Regression but skip @Smoke tests.

Testomatio - Tag in BDD

On another side, Labels tend to be more structured than tags and can be used to signify specific statuses or groupings (for ex., priority, severity, localization), mark test case status or ownership. Also Testomat.io allows you to add multiple values to the same label. For example, you can create a Type label to categorize tests by type. They are more flexible, easy to change and manage, you can rearrange created and selected labels, as well as delete them from your project, from Settings -> Labels&Fields page, read more about how to set up labels below.

Testomatio - Labels

Key Differences:

CriteriaTagLabel
PurposeTo categorize and/or organize testsTo identify meta data related to tests or object
GeneralityMore generalMore specific
ApplicationsMore for automated tests less for manualMore for manual tests, less for automated
UsageLess flexible for describing specific details. More constantMore flexible, easy to change and manage, can have complex types and multiple values
Use casesCategorization, filtering, search, test plans, coverage, analyticsTrack the progress, maintain, review, steps, runs, collaboration

The choice between Tags and Labels depends on your specific needs. For automated tests and broad categorization, Tags are the better choice.

Conversely, Labels offer greater flexibility. You can mark test cases/ suites without altering their titles, customize Labels with various data types, and even assign multiple values to a single Label.

By understanding their strengths, you can leverage both Tags and Labels effectively to organize and manage your testing efforts.

How to Create and Assign Tags

You can easily create tags directly to Test Cases or Suites via their titles

  1. Open Test Case/ Suite
  2. Click Edit button
  3. Create tag starting with @ symbol, directly within the Test Case or Suite title
  4. Click Save button

Testomatio - Add tag

All previously created tags are automatically saved in the system. To reuse a tag, simply type the @ symbol in the Test Case title field and select the desired tag from the autocomplete dropdown.

Testomatio - Autocomplete tag

Testomatio - Recalculate Tags

How to Filter by Tags

  1. Enable Filters
  2. Select one or a few Tags from Tag dropdown list
  3. Click Apply button

Testomatio - Filtering by Tags

How to Add Labels & Custom Fields

Labels can be easily added in Project Settings

  1. Go to Settings.
  2. Select Labels & Fields.
  3. Enter a title for the label.
  4. Click Create button.

Testomatio - Add Label

How to Setup a Label

Before setting up Labels & Custom Fields we need to learn about Scope and Visibility parameters.

Scope defines what pages you want to apply the Label & Custom Field. Here you can define on what pages you want to use it. You can apply it to tests, suites, runs, plans, steps and templates.

Testomatio - Setup Label

Visibility defines how a Label & Custom Field should be shown in UI.

  • Filter visibility will show a Label or Custom Field in the Filter Bar, so you can sort your items quickly.
  • List visibility will show a Label or Custom Field in the tests tree, a list of runs, plans, or steps.

Testomatio - Setup Label

Now it’s time to set up your label!

  1. Scope - pick entities you want this label to be applied.
  2. Visibility - labels can be shown in the Filter bar, in the list of entities, or in both views.
  3. Custom Field - expand label capability to a custom field.

Testomatio - Setup Label

You can also use Quick create label feature to create labels faster:

  1. Go to Steps
  2. Select Step
  3. Click Extra button.
  4. Click Labels.
  5. Type Label name in ‘Quick create label’ field.
  6. Click Create button.
  7. Select newly Created Label.

Testomatio - Quick Create Label

Example of default settings for Label, created via Quick create label feature on Step level:

Testomatio - Quick Create Label

How to Setup a Custom Field

There are such Field Types in Custom Fields: List, Number, and String. Let’s take a look at each type.

Custom Field: List

Custom Field with List type allows creating a list of your choice. You can put there any values to meet your testing needs.

  1. Select a List type of Custom Field.
  2. Add a new item per line.
  3. Toggle Hide custom field title if value is set if you don’t want to show Custom Field title.
  4. Click Save button.

Testomatio - Custom Field List

Custom Field: Number

  1. Select a Number type of Custom Field.
  2. Toggle Hide custom field title if value is set if you don’t want to show Custom Field title.
  3. Click Save button.

Testomatio - Custom Field Number

Custom Field: String

  1. Select a String type of Custom Field.
  2. Toggle Hide custom field title if value is set if you don’t want to show Custom Field title.
  3. Click Save button.

Testomatio - Custom Field String

How to Assign Labels & Custom Fields

  • Add labels on the entity level
  1. Open a Suite/ Test.
  2. Click Extra button.
  3. Click Labels.

Testomatio - Assign Label & Custom Field

  1. Select Labels.
  2. Click Add Custom Field.
  3. Select Custom Fields.
  4. Click Save button.

Testomatio - Assign Label & Custom Field

OR:

  1. Open a Suite/ Test.
  2. Click Set Labels button the title name.
  3. Select Labels & Custom Fields.
  4. Click Save button.

Testomatio - Assign Label & Custom Field

  • Mass-assign labels using our multiselection mode
  1. Enable multiselection mode.
  2. Select Tests/ Suites.
  3. Click Labels button.

Testomatio - Multi-assign Label & Custom Field

  1. Select Labels & Custom Fields.
  2. Click Add.

Testomatio - Multi-assign Label & Custom Field

Testomatio - Multi-assign Label & Custom Field

How to Set Up Labels and Custom Fields as Required

If you want to have some Labels and Custom Fields as required by default when creating Test Cases or Suites, create a Template with those labels and set it up as the default:

  1. Go to Settings -> Templates.
  2. Open an existing Template or create a new one.
  3. Enable Default option.
  4. Select Labels & Custom Fields you want to make required.
  5. Click Update button.

Testomatio - Required Labels

  1. Go to Tests.
  2. Click ’+’ to create new Test Case.
  3. Add values to Custom fields via Set Labels page.

Testomatio - Required Labels

How to Filter by Labels and Custom Fields

You can click the Label on the Filter Bar

Testomatio - Filter Label & Custom Field

Or enable Filters, pick fields and values then click Apply

Testomatio - Filter Label & Custom Field

Multiple Values for Custom Fields

There might be cases where you need to assign the same label with different values to the same test case or suite.

To address this, Testomat.io enhanced the flexibility of Custom Fields by allowing multiple values to be assigned to test cases, suites, steps, etc.

Lets see how this works:

  1. Open Test Case or Suite.
  2. Click Extra button.
  3. Click Labels.
  4. Select Custom Field with multiple values.
  5. Choose values from the displayed list for List Custom Field (or type a few values, separated by ”,” for Custom Field String).

Testomatio - Multi-select Custom Field

Testomat.io also allows you to filter your test cases by one or a few Custom Field values.

Testomatio - Multi-select Custom Field Filtering

Permissions for Labels and Custom Fields

To manage Labels and Custom Fields at the Project level, Testomat.io introduces ‘Labels Permission’ feature, which allows you to have a better control over metadata, maintain consistency, and prevent unauthorized modifications of Labels and Custom Fields.

By default, this permission is disabled, allowing all users to create, edit, or delete Labels and Custom Fields. However, if the Labels Permission is enabled, only users with the Owner or Manager roles can create, edit, or delete Labels and Custom Fields. Team members with lower access levels can still use existing Labels and Custom Fields but will not be able to alter them.

This feature improves project organization, enhances security, and streamlines collaboration by ensuring structured and standardized test management.

To enable Labels Permission on Project level:

  1. Open your project and go to Settings.
  2. Select Project.
  3. Enable Labels permission.

Testomatio - Label Permission

Testomatio - Users