Querying Test Steps on SystemLink 19.6 Times Out

Updated Nov 2, 2022

Reported In

Software

  • SystemLink Server
  • SystemLink Test Module

Issue Details

I am using the SystemLink API to query test steps using the SystemLink API with the Test Monitor Web Service. When I call the/v2/query-steps function on a SystemLink 19.6 server, the following payload times out but on the version 2022 Q1 server it runs without issue and returns all data: 
{ 
  "filter": "",
  "substitutions": [],
  "resultFilter": "(id == \"123456789123456789\")",
  "resultSubstitutions": [],
  "orderBy": "STEP_TYPE",
  "descending": false,
  "projection": ["NAME", "STEP_TYPE", "STEP_ID", "PARENT_ID", "RESULT_ID", "STATUS", "TOTAL_TIME_IN_SECONDS", "STARTED_AT", "INPUTS", "OUTPUTS", "DATA_MODEL", "DATA"],
  "take": -1,
  "continuationToken": "",
  "returnCount": false,
  "responseFormat": "JSON"
}
 

Solution

If the result ID is known you can filter the steps by it instead of using the resultFilter. You can get a response by putting the resultID in the ‘filter’ field instead of the ‘resultFilter’ field. The request can be done in the following way:
 
{ 
  "filter":"(resultId == \"123456789123456789\")",
  "substitutions": [],
  "resultFilter": "",
  "resultSubstitutions": [],
  "orderBy": "STARTED_AT",
  "descending": false,
  "projection": ["NAME", "STEP_TYPE", "STEP_ID", "PARENT_ID", "RESULT_ID", "STATUS", "TOTAL_TIME_IN_SECONDS", "STARTED_AT", "INPUTS", "OUTPUTS", "DATA_MODEL", "DATA"],
  "take": -1,
  "continuationToken": "",
  "returnCount": false,
  "responseFormat": "JSON"
}