TeamCity REST API Reference 2026.2 Help

TestOccurrences

Represents a paginated list of TestOccurrence entities.

Properties

count

The current number of TestOccurrence objects in this list.

href

The relative link (without the TeamCity server URL) used to retrieve this object.

nextHref

If the list of returned entities exceeds the request count value, TeamCity splits it into multiple batches. This property returns the endpoint that allows you to obtain the next batch.

prevHref

If the list of returned entities exceeds the request count value, TeamCity splits it into multiple batches. This property returns the endpoint that allows you to obtain the previous batch.

testOccurrence

The list of TestOccurrence objects owned by this collection.

testCounters

Aggregated counters for all test occurrences in this collection.

ignored

The number of test occurrences that were ignored.

failed

The number of test occurrences that failed.

passed

The number of test occurrences that passed.

newFailed

The number of test occurrences that are new failures (not failing in the previous build).

muted

The number of test occurrences that were muted.

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.

<testOccurrences count="5" failed="1" href="/app/rest/testOccurrences?locator=build:(id:22011)" ignored="0" muted="1" newFailed="1" nextHref="/app/rest/testOccurrences?locator=build:(id:22011),start:100" passed="3" prevHref="/app/rest/testOccurrences?locator=build:(id:22011),start:0"> <testOccurrence>[[[testOccurrence...|testoccurrence.html]]]</testOccurrence> <testCounters all="15" duration="12345" failed="3" ignored="1" muted="1" newFailed="2" success="10"/> </testOccurrences>
{ "ignored" : 0, "newFailed" : 1, "count" : 5, "testOccurrence" : [ "[[[testOccurrence...|testoccurrence.html]]]" ], "prevHref" : "/app/rest/testOccurrences?locator=build:(id:22011),start:0", "href" : "/app/rest/testOccurrences?locator=build:(id:22011)", "failed" : 1, "passed" : 3, "muted" : 1, "testCounters" : "[[[testCounters...|testcounters.html]]]", "nextHref" : "/app/rest/testOccurrences?locator=build:(id:22011),start:100" }
Last modified: 18 August 2026