Clone Test Suites
The following mutation clones a test suite, by creating a new one with the same settings and tests:
- Query
- cURL
mutation CloneTestSuite($testSuiteId: ObjectID!) {
cloneTestSuite(input: { testSuiteId: $testSuiteId }) {
testSuite {
id
}
}
}
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 CloneTestSuite($testSuiteId: ObjectID!) { cloneTestSuite(input: { testSuiteId: $testSuiteId }) { testSuite { id } } }"}' https://api.lumar.io/graphql
All settings and tests will be cloned into a new test suite with the name: '{CURRENT_TIMESTAMP} Copy of {TEST_SUITE_NAME}'.
caution
File uploads won't be copied into a new test suite.