OBJECT
addPreconditionsToTest
link GraphQL Schema definition
1 Mutation addPreconditionsToTest { 2 3 # Mutation used to associate Preconditions to the Test. 4 # Note: The preconditions to be associated with the Test must be of the same Test Type of the Test. 5 # 6 # 7 # Arguments 8 # issueId: the issue id of the Test. 9 # versionId: the id of a Test version. If not given, will update the default Test version. 10 # preconditionIssueIds: the issue ids of the Preconditions. 11 (: String!, : Int, : [String]!): AddPreconditionsResult 12 13 }
link Example
The mutation below will associate the precondition with issue id "54321" to the test "12345".
mutation {
addPreconditionsToTest(
issueId: "12345",
preconditionIssueIds: ["54321"]
) {
addedPreconditions
warning
}
}
The mutation below will associate the precondition with issue id "54321" to the version 3 of the Test "12345".
mutation {
addPreconditionsToTest(
issueId: "12345",
versionId: 3,
preconditionIssueIds: ["54321"]
) {
addedPreconditions
warning
}
}