OBJECT

createTestExecution

link GraphQL Schema definition

1Mutation createTestExecution {
2
3# Mutation used to create a new Test Execution.
4#
5# Arguments
6# testIssueIds: the test issue ids that will be associated with the Test Execution. Cannot be used with tests.
7# tests: the Test versions to be associated with the Test Execution. Cannot be used with testIssueIds.
8# testEnvironments: the test environments to be added to the Test Execution.
9# jira: the Jira object that will be used to create the Test Execution.
10# Check this Jira endpoint for more information related with this field.
11createTestExecution(testIssueIds: [String], tests: [TestWithVersionInput], testEnvironments: [String], jira: JSON!): CreateTestExecutionResult
12
13}

link Example

The mutation below will create a new Test Execution.

mutation {
    createTestExecution(
        testIssueIds: ["54321"]
        testEnvironments: ["android"]
        jira: {
            fields: { summary: "Test Execution for CALC-123", project: {key: "CALC"} }
        }
    ) {
        testExecution {
            issueId
            jira(fields: ["key"])
        }
        warnings
        createdTestEnvironments
    }
}