search cancel

Display Order and Sort Order issues with TDM API call to "testDataModels"


Article ID: 186486


Updated On:


CA Test Data Manager (Data Finder / Grid Tools)


Seeing two issues with TDM API call to "testDataModels"

1. TDM API 'PUT /api/ca/v1/testDataModels/{testDataModelId}/fields/{fieldId}' forces the value of 'displayOrder' to zero

If the 'displayOrder' parameter is not explicitly set in an API PUT on a field, the 'displayOrder' is set to zero. If multiple fields are edited in this way, all of those fields will be set to zero. What order they will display at that point is undefined.

2. TDM:  API 'GET /api/ca/v1/testDataModels/{testDataModelId}/fields' sortOrder parameter sorts numeric values as if they are text

The SortOrder option treats the numeric order numbers as alpha characters. So sorting on The API value displayOrder returns the fields in this order: 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 3, 4, 5, 6, 7, 8, 9. The displayOrder property is a numeric and should not be sorted as if it is alphabetic.


Release : 4.8

Component : CA Test Data Manager


We have a patch that fixes these issues -