OBJECT

updateGherkinTestDefinition

link GraphQL Schema definition

1Mutation updateGherkinTestDefinition {
2
3# Mutation used to update the Gherkin definition of a Test.
4#
5#
6# Arguments
7# issueId: the issue id of the Test.
8# versionId: the id of a Test version. If not given, will update the default Test version.
9# gherkin: the gherkin definition of the Test.
10updateGherkinTestDefinition(issueId: String!, versionId: Int, gherkin: String!): Test
11
12}

link Example

The mutation below will update the gherkin definition of the Test with id "12345".

mutation {
    updateGherkinTestDefinition(issueId: "12345", gherkin: "Gherkin definition" ) {
        issueId
        gherkin
    }
}

The mutation below will update the gherkin definition of the version 3 of the Test with id "12345".

mutation {
    updateGherkinTestDefinition(issueId: "12345", versionId: 3, gherkin: "Gherkin definition" ) {
        issueId
        gherkin
    }
}