- Test Data Types
Raw
Parameter
Runtime
Random
Data Generator
Phone Number
Mail Box
Environment
Concat Test Data
Create Test Data Profile
Update Test Data Profile
Updating Value in TDP
Import TDP
Bulk Deletion of a Test Data Profile
Create Test Data [Environment]- data generators
Default Test Data Generators
Address Function Type
ChangeDataType Function Type
Company Function Type
DateFunctions Function Type
DomainFunctions Function Type
EmailFunctions Function Type
File Function Type
Friends Function Type
IdNumber Function Type
Internet Function Type
MailboxAliasFunctions Function Type
MailboxFunctions Function Type
Name Function Type
NameFunctions Function Type
Number Function Type
NumberFunctions Function Type
Phone Number Function Type
PhoneNumberFunctions Function Type
Random String Function Type
RandomText Function Type
StringFunctions Function Type
TestDataFromProfile Function Type
Environment Test Data
In Testsigma, you can handle and use specific sets of test data linked to different test environments with Environment Test Data. You can include this data in the specific environment where the app is tested, like server names, port numbers, and database credentials. Integrating this environment-specific data into test cases allows you to verify the app's behaviour across different environments such as development, testing, staging, and production. This guide provides an overview of using Environment Test Data in Testsigma across test steps, ad-hoc runs, and test plans.
Prerequisites
Before you begin, ensure that you have referred to:
Use Environment in Test Steps
- Use NLP to create a new step in the Test Case and include a placeholder for test data.
- Click the test data placeholder to replace it, and then select the * Environment from the Test Data Types dropdown menu.
- Select Environment in the Environments overlay screen from the right-side panel.

Use Environment in Ad-hoc Run page
- On the Ad-hoc Run page, click the right arrow before Additional Settings to reveal the feature.
- Select Environmet from the drop-down list.

Use Environment in Test Plan
- Navigate to the Test Plan Settings tab on the Create or Edit Test Plan page.
- In the Additional Settings section, select Environment from the drop-down list.

Environment Variables
You can effectively manage environmental variables, which ensures consistency across various environments.
Testsigma introduced a centralized master list of environment variables, where users can maintain a clean and organized list of Variables, streamlining the selection process during test authoring.
You can modify environment variable values directly on the Ad-Hoc Run page before execution.
Testsigma also automates the creation of new and updated keys across all environments, eliminating the need for manual replication and ensuring that changes are cloned consistently.
Add Keys & Values to all Environments Globally
- From the left navigation bar, go to Test Data > Environments and click the Variables tab.

- Enter the Variable name and Value and click Add.

Variable names should be unique and can not be changed once added.
- Once the Variable is added to the list, click Update.

- Verify the Variable added in the Environments.

Alternatively, you can also add Variables by clicking on Add Variable. This will open the Add Environment Variable prompt.
- Enter the Variable name and Value and click Create.
- There will be a default indication with the letter D for all the Variables added globally.

Once you edit the Variable from the Environment page, the default indication with the letter D will not be displayed.

- From the Test Case Details page, click Run. This will open the Ad-Hoc Run overlay.

- Go to the Environment section and confirm the variables by clicking on Manage Variables.

- Update the changes and click Apply.

- Click on Run Now to execute the test with updated Environment and Variable.

Some existing users may notice some empty values in their Environment list. This happens as we have curated your Environment list into a master list. The empty values indicate that the corresponding Environment variables were not previously part of your Environment. With the transition to a master list, these variables are added to ensure the proper usage of the Environment functionality. This change will not impact your existing test cases.
Use Environment Variables to Select Test Data Values
Environment variables can filter test data sets by name during data-driven testing. This method provides flexibility and reusability, making your test cases more adaptable to different scenarios.
- Create an Environment and add the name-value pairs that match the set names and values in your Test Data Profile.

- On the Test Case Details page, click the Test Case Settings icon in the right navigation bar.
- Select the Test Data Profile from the dropdown menu to associate it with the test case. Enable the Data-Driven toggle.

- Choose Parameters as the Filter type. Select Equals, Contains, Starts with or Ends with as the Comparison Metric from the dropdown menu. Choose Parameter Set Name from the dropdown.
- Type *| to open the Environment overlay and choose the Environment Parameter Name to add the filters.

- When you run the test case, it will execute using the specified filters.
Getting Environment ID
- Navigate to Test Data > Environments.
- Click Environment for which you want to get Environment ID.
-
The <ENV_ID> can be found in the URL of the Environment details page.


