OBJECT
getExpandedTests
link GraphQL Schema definition
1 Query getExpandedTests { 2 3 # Returns multiple tests (with the call test steps expanded) by jql, issue ids, project id or test type. 4 # 5 # 6 # 7 # Arguments 8 # jql: the jql that defines the search. 9 # issueIds: the ids of the Test issues with default Test versions to be returned. Cannot be used with tests. 10 # tests: the ids of the Test versions and Tests. If not given Test Version, will get the default Test version. Cannot be used with issueIds. 11 # projectId: the id of the project of the Test issues to be returned. 12 # testType: the Test Type of the Test issues to be returned. 13 # modifiedSince: all tests modified after this date will be returned 14 # limit: the maximum amount of Tests to be returned. The maximum is 100. 15 # start: the index of the first item to return in the page of results (page offset). 16 # folder: the folder information required to filter the Test issues to be returned. 17 ( 18 String, : 19 String], : [ 20 TestWithVersionInput], : [ 21 String, : 22 TestTypeInput, : 23 String, : 24 Int!, : 25 Int, : 26 FolderSearchInput : 27 ): ExpandedTestResults 28 29 }
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.
The query below returns the tests of each test version.
{ getExpandedTests(tests:[{ issueId:"12345", testVersionId: "1" }, { issueId:"54321", testVersionId: "2" }]) { total start limit results { issueId testType { name kind } } } }