---
updatedAt: 2026-10-21T12:12:00.000Z
agentTools:
  projectIndex: https://developers.katalon.com/llms.txt
---

# Get details of a test case

A successful request to this endpoint returns details of a specified test case.

## Request

This request uses the GET method, which is used to retrieve data of a specific test case from the specified resource.

For basic authorization,  replace this with your actual username and password (or API key) in the header request in the `username:password` or `username:api_key` format. Your user creds are combined to form a Base64 encoded string.

You need to provide the following required query parameters:

* `id`: the alphanumeric ID of the test case.

## Response

The response is in JSON. This API response provides detailed information about the test case after the GET operation.

See the following example:

```json
{
	"id":3468915,
	"name":"TC_Book An Agent",
	"path":"Test Cases/TC Katalon Health Care",
	"alias":"tc_book-an-agent",
	"webUrl":"https://testops.katalon.io/team/xxx/project/xxx/test-design/test-cases/3468915-tc_book-an-agent",
	"project": {...},
	"lastExecutionTestCase": {
     "status":"PASSED",
  	 "startTime":"2022-11-26T11:10:17.661+0000",
     "endTime":"2022-11-26T11:10:17.661+0000",
     "duration":0,"totalTests":1,
     "totalPassedTests":1,
     "totalFailedTests":0,
     "totalErrorTests":0,
     "totalIncompleteTests":0,
     "totalSkippedTests":0,
     "executionId":13679106,
     "executionOrder":41,
     "testCaseId":3468915,
     "projectId":964154
  },
	"externalIssues":[],
	"type":"TEST_CASE",
	"averageDuration":0.0,
	"maxDuration":0,
	"minDuration":0,
	"flakiness":0.0,
	"testResultAssertion":{},
	"updatedAt":"2022-11-30T07:10:18.939+0000",
	"numberOfExecutions":12,
	"urlId":"3468915-tc_book-an-agent"
}
```

Refer to the following table about the response body properties:

| Property                    | Type    | Description                                                                                                                                                             |
| :-------------------------- | :------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`id`**                    | Integer | The unique identifier of the test case.                                                                                                                                 |
| **`name`**                  | String  | The name of the test case.                                                                                                                                              |
| **`path`**                  | String  | The file folder location of the test case in TestOps.                                                                                                                   |
| **`alias`**                 | String  | The alias for the test class used in a test script.                                                                                                                     |
| **`webUrl`**                | String  | The URL of the test case detail page.                                                                                                                                   |
| **`project`**               | Object  | The `project` object associated with the test case.                                                                                                                     |
| **`lastExecutionTestCase`** | Object  | This object contains details of the latest execution of a test case, including execution status, total tests executed, duration, execution ID, and start and end times. |
| **`externalIssues`**        | Array   | Array of `externalIssues` objects.                                                                                                                                      |
| **`averageDuration`**       | Integer | The mean average time running an execution in a test case.                                                                                                              |
| **`maxDuration`**           | Integer | The maximum time it takes for an execution to run in a test case.                                                                                                       |
| **`minDuration`**           | Integer | The shortest or minimum time it takes for an execution to run in a test case.                                                                                           |
| **`flakiness`**             | Integer | The number of times the status of test results changes over the total number of test results.                                                                           |
| **`testResultAssertion`**   | Array   | Array of test case assertion logs or scripts.                                                                                                                           |
| **`updatedAt`**             | String  | The date and time when the test case was last updated.                                                                                                                  |
| **`numberOfExecutions`**    | Integer | The number of executions done in the test case.                                                                                                                         |
| **`urlId`**                 | String  | The unique URL identifier of a test case.                                                                                                                               |

## Try it!

1. Enter the test case ID below.
2. Select the language in Language.
3. Enter your user name or API credentials.
4. Review your API call and click **Try it**!

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "x-stoplight": {
    "id": "5qnzx749ssg4b"
  },
  "info": {
    "title": "Katalon TestOps API reference",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://testops.katalon.io",
      "description": "Generated server url"
    }
  ],
  "security": [
    {
      "basicScheme": []
    }
  ],
  "tags": [
    {
      "name": "Test Case"
    }
  ],
  "paths": {
    "/api/v1/test-cases/{id}": {
      "get": {
        "tags": [
          "Test Case"
        ],
        "summary": "Get details of a test case",
        "operationId": "get_7",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/TestCaseResource"
                }
              }
            }
          }
        },
        "description": "A successful request to this endpoint returns details of a specified test case."
      }
    }
  },
  "components": {
    "schemas": {
      "ExecutionTestCaseResource": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "PASSED",
              "FAILED",
              "ERROR",
              "INCOMPLETE",
              "RUNNING",
              "SKIPPED",
              "NOT_RUN"
            ]
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "format": "date-time"
          },
          "duration": {
            "type": "integer",
            "format": "int64"
          },
          "elapsedDuration": {
            "type": "integer",
            "format": "int64"
          },
          "totalTests": {
            "type": "integer",
            "format": "int64"
          },
          "totalPassedTests": {
            "type": "integer",
            "format": "int64"
          },
          "totalFailedTests": {
            "type": "integer",
            "format": "int64"
          },
          "totalErrorTests": {
            "type": "integer",
            "format": "int64"
          },
          "totalIncompleteTests": {
            "type": "integer",
            "format": "int64"
          },
          "totalSkippedTests": {
            "type": "integer",
            "format": "int64"
          },
          "totalDiffTests": {
            "type": "integer",
            "format": "int64"
          },
          "totalDiffPassedTests": {
            "type": "integer",
            "format": "int64"
          },
          "totalDiffFailedTests": {
            "type": "integer",
            "format": "int64"
          },
          "totalDiffErrorTests": {
            "type": "integer",
            "format": "int64"
          },
          "totalDiffIncompleteTests": {
            "type": "integer",
            "format": "int64"
          },
          "executionId": {
            "type": "integer",
            "format": "int64"
          },
          "executionOrder": {
            "type": "integer",
            "format": "int64"
          },
          "testCaseId": {
            "type": "integer",
            "format": "int64"
          },
          "projectId": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ExternalIssueResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "issueId": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "issueTypeIcon": {
            "type": "string"
          },
          "issueTypeName": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "featureName": {
            "type": "string"
          }
        }
      },
      "BasicProjectResource": {
        "type": "object",
        "title": "",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "teamId": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "type": "string",
            "enum": [
              "ARCHIVE",
              "ACTIVE"
            ]
          }
        }
      },
      "TestCaseResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "alias": {
            "type": "string"
          },
          "webUrl": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "project": {
            "$ref": "#/components/schemas/BasicProjectResource"
          },
          "lastExecutionTestCase": {
            "$ref": "#/components/schemas/ExecutionTestCaseResource"
          },
          "externalIssues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExternalIssueResource"
            }
          },
          "type": {
            "type": "string",
            "enum": [
              "TEST_CASE",
              "SCENARIO"
            ]
          },
          "averageDuration": {
            "type": "number",
            "format": "double"
          },
          "maxDuration": {
            "type": "integer",
            "format": "int64"
          },
          "minDuration": {
            "type": "integer",
            "format": "int64"
          },
          "flakiness": {
            "type": "number",
            "format": "double"
          },
          "maintainer": {
            "$ref": "#/components/schemas/BasicUserResource"
          },
          "testResultAssertion": {
            "$ref": "#/components/schemas/TestResultAssertionResource"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "testProject": {
            "$ref": "#/components/schemas/BasicTestProjectResource"
          },
          "numberOfExecutions": {
            "type": "integer",
            "format": "int64"
          },
          "urlId": {
            "type": "string"
          }
        }
      },
      "BasicTestProjectResource": {
        "type": "object",
        "title": "",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "defaultTestProject": {
            "type": "boolean"
          },
          "uploadFileId": {
            "type": "integer",
            "format": "int64"
          },
          "projectId": {
            "type": "integer",
            "format": "int64"
          },
          "teamId": {
            "type": "integer",
            "format": "int64"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "uploadFileName": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "KS",
              "GIT"
            ]
          },
          "dirty": {
            "type": "boolean"
          }
        }
      },
      "TestResultAssertionResource": {
        "type": "object",
        "properties": {
          "executionTestResultId": {
            "type": "integer",
            "format": "int64"
          },
          "totalAssertion": {
            "type": "integer",
            "format": "int64"
          },
          "passedAssertion": {
            "type": "integer",
            "format": "int64"
          },
          "failedAssertion": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "BasicUserResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "email": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "invitingUrl": {
            "type": "string"
          },
          "trialExpirationDate": {
            "type": "string",
            "format": "date-time"
          },
          "surveyStatus": {
            "type": "string",
            "enum": [
              "NOT_SUBMITTED",
              "SUBMITTED",
              "SKIPPED",
              "OLD_USER"
            ]
          },
          "sessionTimeout": {
            "type": "integer",
            "format": "int64"
          },
          "businessUser": {
            "type": "boolean"
          },
          "canCreateOfflineKSE": {
            "type": "boolean"
          },
          "canCreateOfflineRE": {
            "type": "boolean"
          },
          "samlSSO": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "fullName": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "basicScheme": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```