Retrieve Tests
The following query gets the tests for a given test suite:
- Query
- cURL
query GetTestSuiteTests($testSuiteId: ObjectID!) {
node(id: $testSuiteId) {
... on TestSuite {
tests(first: 100) {
nodes {
id
thresholdPredicate
absoluteThreshold
relativeThreshold
severity
reportTemplate {
name
code
}
}
}
}
}
}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"query GetTestSuiteTests($testSuiteId: ObjectID!) { node(id: $testSuiteId) { ... on TestSuite { tests(first: 100) { nodes { id thresholdPredicate absoluteThreshold relativeThreshold severity reportTemplate { name code } } } } } }"}' https://api.lumar.io/graphql