OBJECT
getTestRuns
link GraphQL Schema definition
1 Query getTestRuns { 2 3 # Returns multiple Test Runs testIssueIds and/or testExecIssueIds. 4 # 5 # 6 # 7 # Arguments 8 # testIssueIds: the issue ids of the Test of the Test Runs. 9 # testExecIssueIds: the issue ids of the Test Execution of the Test Runs. 10 # testRunAssignees: the user account ids of the assignee of the Test Runs. 11 # statuses: the ids or names of the statuses of the Test Runs (e.g. PASSED, FAILED, TODO, EXECUTING, or a custom status id). Names are matched case-insensitively. 12 # testPlanIssueIds: the issue ids of the Test Plans whose Test Runs should be returned. When combined with testExecIssueIds, only the Test Executions that belong to 13 # those Test Plans are considered. 14 # limit: the maximum amount of Test Runs 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 # modifiedSince: all TestRuns modified after this date will be returned 17 (: [String], : [String], : [String], : [String], : [String], : Int!, : Int, : String): TestRunResults 18 19 }
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
}
}
}
}
The query below returns the Test Runs of the Test Plan 10010 that are in the FAILED status.
{
getTestRuns( testPlanIssueIds: ["10010"], statuses: ["FAILED"], limit: 100 ) {
total
limit
start
results {
id
status {
name
color
description
}
test {
issueId
}
testExecution {
issueId
}
}
}
}
The query below returns the Test Runs that belong to any of the Test Plans 10010, 10011 or 10012.
{
getTestRuns( testPlanIssueIds: ["10010", "10011", "10012"], limit: 100 ) {
total
limit
start
results {
id
status {
name
}
testExecution {
issueId
}
}
}
}