What is a Data Type
- Data Types help with generating permutations of test cases. If your test logic requires you to work with various combinations of inputs for a given field, you define a Data Type and use it in action logic.
- Data Type abstracts the data definition from the Action and Scenario logic.
- Supports multiple application environments by allowing instance values specific to a given application environment.
Create a Data Type
To create a Data Type:
Click on the create entity icon on the top navigation and select Data Type.
On the “New Data Type” window under General info tab,
- Give a name on the Name field. Remember, the name given should be unique in the project.
- Enter Description. This is an optional field, but we suggest you provide a description to explain the Data Type briefly.
- Select Fixed or Variable Data Value option. If the data values for different classes are different for each Application Environment, select Variable Data Values. If not, choose Fixed type.
- Provide Tags to this Data Type. Tags are useful when you want to group or arrange the entities later as per their characteristics.
On the Custom Info tab,
- Enter the values in the required fields. Custom fields allow capturing relevant information about an entity with an intent to serve analysis across the system.
This tab is not displayed in case custom fields are not set up for the project. Based on your business needs, it is recommended to configure custom fields.
Create classification structure and input instance values
- Right click on the node indicating the data type on the canvas. Select Add Partition
You can add as many partitions as the business needs at the root level.
- You can now add partitions nested as child nodes to any level of depth.
- Data values (instance values) can be added to leaf level nodes in the data type classification. Right click on the leaf node and select Add Data Values.
Note: Data can be entered manually or imported from existing data files.