automation Workflow Test Run Start
Requires access scope. Also: The app must have write access to automations and act on behalf of a user.
Starts one test run of the latest automation version, the latest draft or otherwise the main version, with one saved test event. Steps with side effects are stubbed, and the test event selected in the automation editor doesn't change. The returned run is accepted, not completed: read the run by its ID for the outcome.
Arguments
- testEventId (ID!)
- version (String!)
- workflowId (ID!)
- Anchor to testEventIdtest•ID!
Event Id required The ID of one of the automation's saved test events. The run uses its trigger data.
- Anchor to versionversion•String!required
The version the caller expects to be the latest. If it isn't, no run starts. It isn't a way to test an earlier version.
- Anchor to workflowIdworkflow•ID!
Id required The ID of the automation to test.
Anchor to AutomationWorkflowTestRunStartPayload returnsAutomation Workflow Test Run Start Payload returns
- automationWorkflowRunId (ID)
- userErrors ([AutomationWorkflowTestRunStartUserError!]!)
- Anchor to automationWorkflowRunIdautomation•ID
Workflow Run Id The ID of the accepted test run. Returns null if the test run didn't start.
- Anchor to userErrorsuser•[Automation
Errors Workflow Test Run Start User Error!]! non-null The list of errors that occurred from executing the mutation.
Show fields