Skip to content
Testsigma DOCS

Test Data

ChangeDataType Function Type


Change Data Type function allows you to transform an input value into a specified data type. It can transform data for calculations, logical operations, or display purposes, ensuring seamless integration with different processes.


Prerequisites

Before you begin, ensure that you have referred to:


Selecting ChangeDataType as a Function Type for Data Generator

Section titled “Selecting ChangeDataType as a Function Type for Data Generator”
    1. From the left navigation bar, go to Create Tests > Test Cases and create a new test case. Test Case
  1. Use NLP to create a new step in the test case and include a placeholder for test data. New Steps

  2. Click on the test data placeholder. From the Test Data Types dropdown menu, select the ! Data Generator option. Test data type

  3. On the ! Data Generators overlay screen, select the Type to Default. This will enable you to use a collection of built-in test data generators. Default

  4. Select ChangeDataType from the Function Type dropdown list. select changedatatype function type from data generators


  • Allows you to transform an input value into a specified data type.
ℹ️Examples:
Inputs Outputs
Input: 123
Data Type: int
123
Input: 0
Data Type: boolean
true
Input: 65
Data Type: char
A
Input: 3.14
Data Type: double
3.14