ChangeDataType Function Type

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 utilising the different data generator functions, it's essential to understand basic concepts such as creating Test Cases and Test Steps and adding data generators in test steps.


Selecting ChangeDataType as a Function Type for Data Generator

  1. Use NLP to create a new step in the test case and include a placeholder for test data.
  2. Click on the test data placeholder. From the Test Data Types dropdown menu, select the ! Data Generator option.
  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.
  4. Select ChangeDataType from the Function Type dropdown list. select changedatatype function type from data generators
NOTE:

This action will display a list of built-in functions associated with the Address function type, enabling you to select the appropriate function based on your requirements.


Convert Input Data Type

  • 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