TestOccurrence
Represents a relation between a test and the specific build.
Properties
id
The locator-style ID of this test occurrence, identifying both the build and the test run.
name
The fully qualified name of the test.
status
The status of this test occurrence. Possible values:
SUCCESS — the test passed.
FAILURE — the test failed.
ERROR — an unexpected error occurred during test execution.
UNKNOWN — the test status could not be determined.
ignored
Indicates whether this test occurrence was ignored.
duration
The duration of this test run in milliseconds.
runOrder
The order in which this test ran within the build. Experimental and unstable — the value depends on the set of queried tests.
newFailure
Indicates whether this test failure is new (was not failing in the previous build). Present only for failed tests.
muted
Experimental. Returns true if this test was muted at the time the build ran; otherwise, false. This is a historical property reflecting the muting state during the build. It may differ from currentlyMuted if a mute was added or removed after the build finished.
currentlyMuted
Experimental. Returns true if this test is muted right now, at the time of the API request; otherwise, false. This reflects the present muting state and may differ from muted if the mute was changed after the build finished.
currentlyInvestigated
Indicates whether this test is currently under investigation at the time of the request.
href
The relative link (without the TeamCity server URL) used to retrieve this object.
ignoreDetails
The reason this test occurrence was ignored.
details
The full test output including stacktrace, stdout, and stderr.
test
The test entity associated with this occurrence.
mute
The mute applied to this test occurrence, if any.
build
The build in which this test occurrence ran.
firstFailed
The first occurrence where this test began failing, if it is not a new failure.
nextFixed
The first occurrence where this test was fixed after the current failure chain, if it has been fixed.
invocations
The individual invocations of a parameterized or retried test run.
metadata
Additional metadata recorded during this test run, such as custom metrics reported by the test framework.
logAnchor
The anchor within the build log pointing to the relevant log entry for this test occurrence.
Schema
Below, you can find a full schema of this object, in XML and JSON formats. You can choose what fields to submit depending on your current needs. Different methods might expect different fields: the best approach is to request this entity via GET and use the response as a base for the following POST request.
A link to another object implies that you can substitute it with the schema of the linked object, if it is required for your call.