Filter to get TestCase result history.

interface TestHistoryQuery {
    automatedTestName: string;
    branch?: string;
    buildDefinitionId?: number;
    continuationToken?: string;
    groupBy: TestResultGroupBy;
    maxCompleteDate?: Date;
    releaseEnvDefinitionId?: number;
    resultsForGroup?: TestResultHistoryForGroup[];
    testCaseId?: number;
    trendDays?: number;
}

Properties

automatedTestName: string

Automated test name of the TestCase.

branch?: string

Results to be get for a particular branches.

buildDefinitionId?: number

Get the results history only for this BuildDefinitionId. This to get used in query GroupBy should be Branch. If this is provided, Branch will have no use.

continuationToken?: string

It will be filled by server. If not null means there are some results still to be get, and we need to call this REST API with this ContinuousToken. It is not supposed to be created (or altered, if received from server in last batch) by user.

Group the result on the basis of TestResultGroupBy. This can be Branch, Environment or null(if results are fetched by BuildDefinitionId)

maxCompleteDate?: Date

History to get between time interval MaxCompleteDate and (MaxCompleteDate - TrendDays). Default is current date time.

releaseEnvDefinitionId?: number

Get the results history only for this ReleaseEnvDefinitionId. This to get used in query GroupBy should be Environment.

resultsForGroup?: TestResultHistoryForGroup[]

List of TestResultHistoryForGroup which are grouped by GroupBy

testCaseId?: number

Get the results history only for this testCaseId. This to get used in query to filter the result along with automatedtestname

trendDays?: number

Number of days for which history to collect. Maximum supported value is 7 days. Default is 7 days.