Skip to main content

Update Tests

The follwing mutation updates a test:

Operation: mutation UpdateTest($testId: ObjectID!, $relativeTreshold: Int, $severity: Severity) { updateTest(input: { testId: $testId, relativeThreshold: $relativeTreshold, severity: $severity }) { test { id relativeThreshold severity } } }
UpdateTestTry in Explorer
GraphQL
mutation UpdateTest($testId: ObjectID!, $relativeTreshold: Int, $severity: Severity) {
updateTest(input: {
testId: $testId,
relativeThreshold: $relativeTreshold,
severity: $severity
}) {
test {
id
relativeThreshold
severity
}
}
}
caution
  • It's not possible to update the report template code for a test suite's test. You need to delete the test and create a new one with the new report template code.
  • Updating test won't affect previously completed builds and test results.