Get a revision's effective test plan
const url = 'https://app.buildtrace.eu/api/revisions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/effective-test-plan';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://app.buildtrace.eu/api/revisions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/effective-test-plan \ --header 'Authorization: Bearer <token>'Get the final test plan in force for a revision: its own, or the one carried by the latest-effective PROCESS/BOTH ECO that set one. testPlan is absent when the revision has no final test.
Required scope: production:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”OK
object
object
Absent on a plan seeded for an ECO that has not saved its own.
Counts saves of this plan; 0 for a seeded plan not yet saved.
One check of a final test. MEASUREMENT records a number against a minimum and/or maximum (at least one) in a unit, with an optional target; PASS_FAIL records a yes/no outcome; TEXT records a value that is kept but not judged. Names are unique within a plan.
object
Required for a measurement; not allowed otherwise.
Nominal value, shown to the operator; must lie within the limits.
Defaults to true. An optional check may be left blank; if recorded, it still counts.
The ECO whose plan is in force; absent when the revision’s own plan applies.
Example
{ "testPlan": { "checks": [ { "kind": "MEASUREMENT" } ] }}Unauthorized
Not found