Skip to main content

Retrieve Test Suites

Retrieve test suites in an account

The following query retrieves the last 100 test suites for a given account:

Operation: query GetAccountTestSuites($accountId: ObjectID!) { node(id: $accountId) { ... on Account { testSuites(last: 100) { nodes { id name } } } } }
GetAccountTestSuitesTry in Explorer
GraphQL
query GetAccountTestSuites($accountId: ObjectID!) {
node(id: $accountId) {
... on Account {
testSuites(last: 100) {
nodes {
id
name
}
}
}
}
}

Retrieve test suites in a given account

The following query searches for a test suite in a given account using the test suite name:

Operation: query SearchAccountTestSuites($accountId: ObjectID!, $nameContains: String) { node(id: $accountId) { ... on Account { testSuites(first: 5, filter: { name: { contains: $nameContains } }) { nodes { id name } } } } }
SearchAccountTestSuitesTry in Explorer
GraphQL
query SearchAccountTestSuites($accountId: ObjectID!, $nameContains: String) {
node(id: $accountId) {
... on Account {
testSuites(first: 5, filter: { name: { contains: $nameContains } }) {
nodes {
id
name
}
}
}
}
}