Compare 2 to 10 runs
const url = 'https://beta-api.plune.ai/v1/runs/compare?ids=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://beta-api.plune.ai/v1/runs/compare?ids=example' \ --header 'Authorization: Bearer <token>'T14 (#1275). The runs are put in the order they were created; every verdict is between the newest and the one before it. regressed: passed before, failed or broke now. improved: the opposite. degraded: passed in both and took 30 % or more longer. A muted failure is not a failure. In a run with configurations (#1251) a case is the worst of its combinations, each by its latest result. flaky is the case’s own flag, beside the verdict. notMeasured is never absent and says what was not judged (a case missing from one of the two runs, a passed case without a duration, cost: a result carries none), as codes with numbers the client words in the reader’s language: no_verdict (count of total), no_duration (count), cost_not_compared. The dashboard draws this same answer.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Run ids, comma separated; 2 to 10.
Responses
Section titled “ Responses ”The comparison
object
object
object
The cases with a result in both of the last two runs - the denominator of regressed, improved and degraded.
Of cases, those flagged flaky.
object
One per run, in the order of runs; null: no result in that run.
object
What the comparison did not judge: a code and its numbers, never a sentence. [] means it measured all it set out to.
object
no_verdict: count, total. no_duration: count. cost_not_compared: none.
object
Example
{ "cases": [ { "verdict": "regressed" } ], "notMeasured": [ { "code": "no_verdict" } ]}Fewer than 2 or more than 10 run ids
object
Example generated
{ "error": "example"}No / invalid token or session
One of the runs is not found or not yours
object
Example generated
{ "error": "example"}