Skip to main content

createTestCase Mutation

Create a new TestCase.

Access is permitted when any of the following condition(s) are met: 1. The signed-in User has any of the following permissions for the associated Organization: [org_manage_integrations]. 2. The signed-in User has any of the following permissions for the access function context object 'integration_Customer': [customer_admin_integration_permissions, customer_manage_integrations].

Input fields (CreateTestCaseInput!)

ArgumentTypeDescription
integrationID!The Integration this TestCase belongs to.
nameString!The name of the TestCase.
contentTypeStringContent type of the test payload.
payloadStringTest step payload data.
headersStringTest headers as key/value pairs.
resultStringTest step result data.
clientMutationIdStringA unique identifier for the client performing the mutation.

Return fields (CreateTestCasePayload)

clientMutationId (String)
errors ([ErrorType!]!)
testCase (TestCase)