OBJECT
addTestsToPrecondition
link GraphQL Schema definition
1 Mutation addTestsToPrecondition { 2 3 # Mutation used to associate Tests to the Precondition. One of testIssueIds or tests is required. 4 # Note: The Tests to be associated with the Precondition must be of the same Test Type of the Precondition. 5 # 6 # 7 # Arguments 8 # issueId: the issue id of the Precondition. 9 # testIssueIds: the issue ids of the Tests. Will associate the default Test versions. Cannot be used with tests. 10 # tests: the ids of the Test versions. Cannot be used with testIssueIds. 11 String!, : [String], : [TestWithVersionInput]): AddTestsResult ( : 12 13 }
link Example
The mutation below will associate the Test with issue id "54321" to the Precondition "12345"
mutation { addTestsToPrecondition( issueId: "12345", testIssueIds: ["54321"] ) { addedTests warning } }
The mutation below will associate the version 2 of Test "54321" and the version 3 of Test "67890" to the Precondition "12345"
mutation { addTestsToPrecondition( issueId: "12345", tests: [{ issueId: "54321", versionId: 2 }, { issueId: "67890", versionId: 3 }] ) { addedTests warning } }