Create execution case
This event is emitted when a test case is added to a test plan and a new execution case is created. An existing execution case reused by an idempotent request does not trigger this event again.
Event Body
Execution Case Event Schema
Execution case lifecycle event structure
Properties
eventID*string
Unique identifier for the event
eventType*string
Type of the execution case event
Enum values:
"ones:test:execution_case:created""ones:test:execution_case:updated""ones:test:execution_case:removed""ones:test:execution_case:source_changed""ones:test:execution_case:source_change_resolved"timestamp*number
Timestamp when the event occurred
subscriberID*string
ID of the subscriber
eventData*object
organizationID*string
Organization that triggered the event.
teamID*string
Team that triggered the event.
triggerUserIDstring
User that triggered the event. May be omitted for a system-triggered event.
executionCaseID*string
ID of the execution case.
Min length: 1
planIssueID*string
ID of the test plan issue containing the execution case.
Min length: 1
sourceCaseIssueID*string
ID of the source test case issue for the execution case.
Min length: 1
sourceVersionIDstring
ID of the relevant source test case version.
sourceChangeStatusstring
For source_changed, the classification of this source version, which may differ from the execution case status retained from earlier changes. For a resolved event, this is the status before resolution.
Enum values:
"weak""strong"actionstring
Action used to resolve the source change.
Enum values:
"confirm_unaffected""sync_source"changesarray
Actual field and step changes captured in the write transaction.
Min items: 1
Array items:
itemobject
fieldID*string
Min length: 1
fieldTypestring
valueTypestring
oldValue*any
Raw previous value; null for an empty single-value field, [] for an empty multi-reference field.
newValue*any
Raw updated value; null for a cleared single-value field, [] for a cleared multi-reference field.
stepIDstring
Min length: 1
stepPositioninteger
changeTypestring
Enum values:
"step_actual_result""step_execution_result"All of:
eventData
| Field | Type | Description |
|---|---|---|
organizationID | string | Organization that triggered the event. |
teamID | string | Team that triggered the event. |
triggerUserID | string | User that created the execution case. |
executionCaseID | string | ID of the execution case. |
planIssueID | string | ID of the test plan issue. |
sourceCaseIssueID | string | ID of the source test case issue. |
sourceVersionID | string | Source test case version used by execution case. |
Example
{
"eventID": "Re6FSci9-1786000000000000001",
"eventType": "ones:test:execution_case:created",
"timestamp": 1786000000000,
"subscriberID": "Re6FSci9",
"eventData": {
"organizationID": "mkobhu1u",
"teamID": "7A6aGmBc",
"triggerUserID": "U1esfPni",
"executionCaseID": "EC9HnuB1",
"planIssueID": "PLAN9Hnu",
"sourceCaseIssueID": "CASE9Hnu",
"sourceVersionID": "VER9HnuB"
}
}