What is a Data Type
Data Type represents a domain specific data item which has a defined classification structure. You can create the structure and manage instance values centrally in a data type.
For example, Account Type in the example below, has a business specific classification structure and accepts a well-defined set of instance values for each class of data.
- 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.
Note:
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.
Comments
0 comments
Article is closed for comments.