OBJECT

getTestRuns

link GraphQL Schema definition

1Query getTestRuns {
2
3# Returns multiple Test Runs testIssueIds and/or testExecIssueIds.
4#
5#
6# Arguments
7# testIssueIds: the issue ids of the Test of the Test Runs.
8# testExecIssueIds: the issue ids of the Test Execution of the Test Runs.
9# testRunAssignees: the user account ids of the assignee of the Test Runs.
10# limit: the maximum amount of Test Runs to be returned. The maximum is 100.
11# start: the index of the first item to return in the page of results (page offset).
12# modifiedSince: all TestRuns modified after this date will be returned
13getTestRuns(testIssueIds: [String], testExecIssueIds: [String], testRunAssignees: [String], limit: Int!, start: Int, modifiedSince: String): TestRunResults
14
15}

link Example

The query below returns the first 100 Test Runs that match the given testIssueIds and testExecIssueIds.

{
    getTestRuns( testIssueIds: ["10001", "10002"], testExecIssueIds: ["10001", "10002"], limit: 100 ) {
        total
        limit
        start
        results {
            id
            status {
                name
                color
                description
            }
            gherkin
            examples {
                id
                status {
                name
                color
                description
                }
            }
            test {
                issueId
            }
            testExecution {
                issueId
            }
        }
    }
}

The query below returns the first 100 Test Runs that match the given ids.

{
    getTestRuns( testIssueIds: ["12345"], limit: 100 ) {
        total
        limit
        start
        results {
            id
            status {
                name
                color
                description
            }
            steps {
                action
                data
                result
                attachments {
                    id
                    filename
                }
                status {
                    name
                    color
                }
            }
            test {
                issueId
            }
            testExecution {
                issueId
            }
        }
    }
}