Toggle Test Suite Automatic Threshold
The following mutation toggles automatic threshold on a test suite:
- Query
- cURL
mutation ToggleTestSuiteAutomaticTreshold(
$testSuiteId: ObjectID!
$automaticThreshold: Boolean!
$automaticThresholdEnabledForAll: Boolean
) {
updateTestSuite(
input: {
testSuiteId: $testSuiteId
automaticThreshold: $automaticThreshold
automaticThresholdEnabledForAll: $automaticThresholdEnabledForAll
}
) {
testSuite {
id
automaticThreshold
automaticThresholdForAll
}
}
}
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":"mutation ToggleTestSuiteAutomaticTreshold( $testSuiteId: ObjectID! $automaticThreshold: Boolean! $automaticThresholdEnabledForAll: Boolean ) { updateTestSuite( input: { testSuiteId: $testSuiteId automaticThreshold: $automaticThreshold automaticThresholdEnabledForAll: $automaticThresholdEnabledForAll } ) { testSuite { id automaticThreshold automaticThresholdForAll } } }"}' https://api.lumar.io/graphql
caution
There are 3 options to set the automatic threshold:
automaticThreshold
set tofalse
andautomaticThresholdEnabledForAll
set tofalse
- TheautomaticThreshold
is disabled for all tests in that test suite, no matter the individual testautomaticThreshold
.automaticThreshold
set totrue
andautomaticThresholdEnabledForAll
set tofalse
- TheautomaticThreshold
is enabled for the test suite, but theautomaticThreshold
needs to be set on individual tests, in order to take effect.automaticThreshold
set totrue
andautomaticThresholdEnabledForAll
set totrue
- TheautomaticThreshold
is enabled for all tests in that test suite, no matter the individual testautomaticThreshold
.