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:

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

Try in explorer

Retrieve test suites in a given account

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

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

Try in explorer