OBJECT

getExpandedTests

link GraphQL Schema definition

1Query getExpandedTests {
2
3# Returns multiple tests (with the call test steps expanded) by jql, issue ids, project id or test type.
4#
5#
6# Arguments
7# jql: the jql that defines the search.
8# issueIds: the ids of the Test issues to be returned.
9# projectId: the id of the project of the Test issues to be returned.
10# testType: the Test Type of the Test issues to be returned.
11# modifiedSince: all tests modified after this date will be returned
12# limit: the maximum amount of Tests to be returned. The maximum is 100.
13# start: the index of the first item to return in the page of results (page offset).
14# folder: the folder information required to filter the Test issues to be returned.
15getExpandedTests(jql: String, issueIds: [String], projectId: String, testType: TestTypeInput, modifiedSince: String, limit: Int!, start: Int, folder: FolderSearchInput): ExpandedTestResults
16
17}

link Example

The query below returns the first 100 tests.

{
    getExpandedTests(limit: 100) {
        total
        start
        limit
        results {
            issueId
            testType {
                name
                kind
            }
            jira(fields: ["assignee", "reporter"])
            warnings
        }
    }
}

The query below returns 10 tests that match the provided jql.

{
    getExpandedTests(jql: "project = 'PC'", limit: 10) {
        total
        start
        limit
        results {
            issueId
            testType {
                name
                kind
            }
            steps {
                parentTestIssueId
                calledTestIssueId
                id
                data
                action
                result
                attachments {
                    id
                    filename
                }
                customfields {
                    id
                    value
                }
            }
            jira(fields: ["assignee", "reporter"])
            warnings
        }
    }
}

Note: If the jql returns more than 100 issues an error will be returned asking the user to refine the jql search.