OBJECT

updateTestRunStep

link GraphQL Schema definition

1Mutation updateTestRunStep {
2
3# Mutation used to update the Test Run Step.
4#
5# Arguments
6# testRunId: The id of the Test Run.
7# stepId: the id of the Test Run Step.
8# updateData: the update information.
9# iterationRank: the rank of the iteration.
10updateTestRunStep(testRunId: String!, stepId: String!, updateData: UpdateTestRunStepInput!, iterationRank: String): UpdateTestRunStepResult
11
12}

link Example

The mutation below will change the status, update the comment and add a defect to the Test Run Step.

mutation {
    updateTestRunStep(
        testRunId: "5e8489c05f200f3cd45bbaf0",
        stepId: "316eb258-10bb-40c0-ae40-ab76004cc505",
        updateData: {
            comment: "Step failed"
            status: "FAILED"
            defects: {
                add: ["12345"]
            }
        }
    ) {
        addedDefects
        warnings
    }
}