---
title: "Using Data Variables for Naming Test Cases"
slug: "using-data-variables-for-naming-test-cases"
description: "How to utilise Test Data Variables for naming Test Cases in Test Modeller."
tags: ["Test Modeller", "Feature Overviews"]
updated: 2024-09-27T15:06:22Z
published: 2024-09-27T15:06:22Z
canonical: "knowledge.curiositysoftware.ie/using-data-variables-for-naming-test-cases"
---

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

# Advanced Naming of Test Cases

How to utilise Test Data Variables for naming Test Cases in Quality Modeller.

[Embedded content](https://www.youtube.com/embed/w63KGV36CME?&amp;wmode=opaque&amp;rel=0)

Open an **existing model.** For the demo, we have prepared a login process Model, and have generated the test cases for it. As you can see, the generated test cases are names after the path they take.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678451185352.png)

In this model, we have created a new**Test Data Variable**, called **TestCaseName** and set it across the model:

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678451206533.png)

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678451211530.png)

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678451216246.png)

To create a new **Test Data Variable,**navigate to the **Test Data & Automation tab**in the top bar menu and hit the **Variables button.**

This will open the **Test Data Variables window,**here hit the **Blue Add Variable button**to create a new test data variable.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678451231524.png)

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678451237368.png)

Navigate to the**Coverage Profile** window by opening the **Test Generation tab** and clicking **Coverage.**

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678451332456.png)

Once you’ve opened the **Coverage Profile window,** open the **Naming Conventions tab.**Here you will find a list of naming conventions, which you can edit.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678451343779.png)

If you scroll down you will find the **Variable Naming Convention**, click the **blue plus button** to edit this. In the demo, we replaced the **Variable Name Convention**with our **TestCaseName Data Variable.**Don’t forget to hit save!

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678451350913.png)![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678451355508.png)

Once your custom naming convention is set up, regenerate the test cases for your model, and you will see now that your test cases are named appropriately.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678451361554.png)

Test cases are equivalent to paths through the model of a system under test. They are generated automatically from a model, with or without test data and test automation associated with them. Test Modeller has coverage techniques using advanced algorithms to generate the smallest set of test cases needed to test given features with a required level of rigour.

Quality Modeller is Curiosity's flow-driven model-based tool which provides a range of accelerators and connectors for building flowcharts rapidly. Align all stakeholders to quality outcomes and create critical assets early, delivering superior software at speed.

A Model is a canvas and the Flow that is built onto it. There are several types of Model, some of which display different tabs and tools on the toolbar in Quality Modeller.

## Related

- [Exploring Test Data in Models](/test-data-in-models.md)
- [Quality Modeller](/get-started-with-test-modeller.md)
- [Enterprise Test Data 101](/enterprise-test-data-101.md)
- [Data Activities](/database-activity-tutorials.md)
