Test Case

This page contains information about events called in the entity Test Case

Created Test Case

Payload example:

{
  "event_name": "case.created",
  "timestamp": 1650530190,
  "payload": {
    "id": 1610,
    "title": "Example test case",
    "description": "Description test case",
    "preconditions": "something",
    "postconditions": "something",
    "priority": {
      "id": 2,
      "title": "Medium",
      "icon": "genderless",
      "color": "medium"
    },
    "severity": {
      "id": 4,
      "title": "Normal",
      "icon": "genderless",
      "color": "normal"
    },
    "behavior": {
      "id": 2,
      "title": "Positive"
    },
    "type": {
      "id": 8,
      "title": "Functional"
    },
    "automation": {
      "id": 1,
      "title": "To be automated"
    },
    "status": {
      "id": 0,
      "title": "Actual"
    },
    "suite_id": 12,
    "milestone_id": null,
    "steps": [
      {
        "position": 1,
        "action": "simple action",
        "expected_result": "expected result",
        "data": "input data",
        "attachments": [],
        "shared": false
      }
    ],
    "attachments": [],
    "custom_fields": [
      {
        "id": 174,
        "title": "Test Number",
        "type": "number",
        "value": "1"
      }
    ]
  },
  "team_member_id": 40,
  "project_code": "ID"
}

📘

This event is being sent when a new test case is created.

Event name

case.created

Payload fields

ParameterTypeDescription
idintegerTest case title
titlestringTest case title
descriptionstringTest case description
preconditionsstringTest case preconditions
postconditionsstringTest case postconditions
severityobjectAn object of test case severity
priorityobjectAn object of test case priority
typeobjectAn object of test case type
statusobjectAn object of test case status
automationobjectAn object of test case automation status
behaviorobjectAn object of test case behavior
suite_idintegerSuite ID (nullable)
milestone_idintegerMilestone_id (nullable)
stepsarrayAn array of test steps objects.
attachmentsarrayAn array of attachments ids.
custom_fieldsarrayAn array of custom fields objects.

Step object

ParameterTypeDescription
positionintegerStep position
actionstringRequired field (if shared_step_id is not provided). Can't be empty.
expected_resultstring
sharedbooleanActual status step
attachmentsarrayAn array of attachments IDs.

Custom field object

ParameterTypeDescription
idintegerCustom field ID
titlestringCustom field title
valuestringAvailable only for selectbox fields. An object with selectbox values.
typestringCustom field type. Available values: number, string, text, selectbox, checkbox.

Cloned Test Case

Payload example:

{
  "event_name": "case.cloned",
  "timestamp": 1650530878,
  "payload": {
    "id": 1611,
    "from_id": 1610
  },
  "team_member_id": 40,
  "project_code": "ID"
}

📘

This event is being sent when a test case is cloned.

Event name

case.cloned

Payload fields

ParameterTypeDescription
idintegerTest case ID (clone)
from_idintegerTest case ID (original)

Updated Test Case

Payload example:

{
  "event_name": "case.updated",
  "timestamp": 1650530630,
  "payload": {
    "id": 1610
  },
  "team_member_id": 40,
  "project_code": "ID"
}

📘

This event is being sent when a test case is updated. It returns only ID of test case and notifies that fields were updated.

Event name

case.updated

Payload fields

ParameterTypeDescription
idintegerTest case ID

Deleted Test Case

Payload example:

{
  "event_name": "case.deleted",
  "timestamp": 1650530938,
  "payload": {
    "id": 1611
  },
  "team_member_id": 40,
  "project_code": "ID"
}

📘

This event is being sent when a test case is deleted.

Event name

case.deleted

Payload fields

ParameterTypeDescription
idintegerTest case ID