Skip to main content

Create Tests

The follwing mutation creates a test for a test suite:

Operation: mutation CreateTest($testSuiteId: ObjectID!, $reportTemplateCode: String!) { createTest(input: { testSuiteId: $testSuiteId, reportTemplateCode: $reportTemplateCode }) { test { id } } }
CreateTestTry in Explorer
GraphQL
mutation CreateTest($testSuiteId: ObjectID!, $reportTemplateCode: String!) {
createTest(input: {
testSuiteId: $testSuiteId,
reportTemplateCode: $reportTemplateCode
}) {
test {
id
}
}
}
tip

testSuiteId and reportTemplateCode are the only required parameters.