Manage Tests and Build Problems
This article lists REST API requests concerning tests and build problems.
List Build Problems
To list build problems, use:
The request responds with Problems which contains instances of a Problem entity.
problemOccurrenceLocator is typed as ProblemOccurrenceLocator. For example, to get build problems for a build with the ID 999, use:
List Tests
To list specific tests, use:
The request responds with Tests which contains instances of a Test entity.
testOccurrenceLocator is typed as TestOccurrenceLocator.
Some supported locator dimensions:
build:(<buildLocator>)— test run in the build found withbuildLocator(BuildLocator).build:(<buildLocator>),muted:true— failed tests which were muted in the build.test:(<testLocator>)— instances of the test found withtestLocator(TestLocator).currentlyFailing:true,affectedProject:<projectLocator>— tests currently failing under the project specified withprojectLocator(recursively).projectLocatoris typed as ProjectLocator.currentlyMuted:true,affectedProject:<projectLocator>— tests currently muted under the project specified (recursively). See also the project's Muted Problems tab.includePersonal:true— include tests from personal builds.
For example, to list all tests for a given build with the ID 999 use:
To get the test history for a given test named MyTest, use:
To list a build's tests which were muted during the build run, use:
To list currently muted tests (muted since the failure), use:
List All Muted Tests and Build Problems
To retrieve a list of all muted entities, use:
The request responds with Mutes which contains instances of a Mute entity.
To get specific mutes, use:
muteLocator is typed as MuteLocator. For example, to locate all muted tests under the MyProject project, use:
Mute Test and Build Problems
To mute a given test or a build problem, POST a Mute to:
Example payload:
Unmute Test/Build Problem
To unmute a test or build problem, use: