Top-Q / difido-reports

This project aims to provide a generic implementation for HTML test reports.
http://top-q.github.io/difido-reports
Apache License 2.0
47 stars 31 forks source link

can't get link to difido job description (after updating the new server version ) #186

Closed barakshr closed 6 years ago

barakshr commented 6 years ago

In our Jenkins CI job we are using the groovy command: def linkString = json.find { it.Description == desc }?.Link we suspect that the result is empty

Example for adding-report-link https://github.com/Top-Q/difido-reports/wiki/Server-API#example-for-adding-report-link-in-jenkins

barakshr commented 6 years ago

follow up , iddan found that the following change will find the link: def linkString = json.find{it[1] == desc}[2] but if the column 'Description' index change , it will not work anymore

itaiag commented 6 years ago

The data structure that returns when calling the reports API was changed for issue #158. This was done to allow the data table plugin to perform auto refresh. This is the same call that is done when displaying the execution results in the main Difido server view, so you can use Chrome developer tool or any other sniffing tool to see the exact data that returned from the server.