TeamCity REST API Reference 2026.2 Help

TestCounters

Represents a test results counter (how many times this test was successful/failed/muted/ignored).

Properties

ignored

The number of test runs that were ignored.

failed

The number of test runs that failed.

muted

The number of test runs that were muted.

success

The number of test runs that passed successfully.

all

The total number of test runs.

newFailed

The number of test runs that failed for the first time (not present in a previous successful build).

duration

The total duration of all test runs in milliseconds.

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.

<testCounters all="15" duration="12345" failed="3" ignored="1" muted="1" newFailed="2" success="10"/>
{ "all" : 15, "duration" : 12345, "ignored" : 1, "newFailed" : 2, "success" : 10, "failed" : 3, "muted" : 1 }
Last modified: 18 August 2026