OBJECT
getTestRuns
link GraphQL Schema definition
1 Query 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 # statuses: the status ids of the Test Runs (e.g. PASSED, FAILED, TODO, EXECUTING, or custom status id). 11 # testPlanIssueIds: the issue ids of the Test Plans whose Test Runs should be returned. 12 # limit: the maximum amount of Test Runs 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 # modifiedSince: all TestRuns modified after this date will be returned 15 (: [String], : [String], : [String], : [String], : [String], : Int!, : Int, : String): TestRunResults 16 17 }
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
}
}
}
}