create_test_data
Create CSV-formatted test data records with column definitions for use in Apidog test cases. Variables become accessible as {{columnName}} or via pm.iterationData.get().
Instructions
Create a test data record for a test case. The data field is CSV-formatted: first line is the column header, subsequent lines are values. Each column needs a matching entry in the columns object. Variables are accessible in test cases as {{columnName}} or via pm.iterationData.get('columnName') in scripts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | CSV-formatted data. First line is header (column name), subsequent lines are values. Example: 'contactId\nid-1\nid-2\nid-3' | |
| columns | Yes | Column definitions. Keys must match the header names in the data field. Use {generator: {type: 'mock', config: {callee: '$special.manual'}}} for manually-entered data. | |
| relatedId | Yes | The test case ID to attach this test data to | |
| environmentId | No | Environment ID (0 = all environments, or a specific environment ID) |