SystemLink Forum

cancel
Showing results for 
Search instead for 
Did you mean: 

how to modify existing test result record

Solved!
Go to solution

If a SystemLink test record is created with incorrect metadata, is there a way to change it?  Specifically, if a device serial number is mistyped when the tests are run, and the results are valid, but get stored in Systemlink with the wrong serial number, is there a way to edit the existing test record to correct the SN without throwing away the test results?

0 Kudos
Message 1 of 3
(1,311 Views)
Solution
Accepted by topic author bravosierra

If you click on the ? on the top right of the page and open the HTTP API you can use the POST nitestmonitor/v2/update-results to update the test result record. In the example below, I opened Chrome's Developer Tools (Network tab) from the test result detailed view that I wanted to update. I then copied the response from the query-results call and pasted it into the swagger documentation. I then changed the serial number and submitted the response. This ensures that all of the other attributes of the test result stay the same and only the serial number is updated.

 

Screen Shot 2022-03-21 at 4.34.23 PM.png

Message 2 of 3
(1,283 Views)

thanks for the great reply!  this worked to allow me to correct some serial numbers that were entered incorrectly.

 

for anyone else reading this who might be unfamiliar with chrome dev tools (like i was), i've attached an annotated screen capture showing what i had to do to get the XML text to modify and paste into the API interface.

 

the 3 important selections are marked with red boxes.  to get here, view the test result you want to edit in Syslink test monitor.  then open the developer tools (ctrl+shift+i) to get the screen shown.

 

  1. click Network
  2. enter "query-results" into the search field (otherwise it might be overwhelmed or bumped to the bottom of the list)
  3. click the first instance in the list of query-results to select it
  4. click "response" to display the XML text (marked with green box)
  5. use home, shift+end to select the very long string of text, then copy it to a text editor for modification

marked up developer tools viewmarked up developer tools view

Message 3 of 3
(1,271 Views)