---
search:
  tags:
    - administration
    - POST
seo:
  description: >-
    Creates a new test case for… Reference for the POST
    /administration/project-components/item-details/{itemId}/testcases endpoint
    in the Leadtime Public API API.
sidebar:
  badge: POST
  label: Create a new test case (acceptance test step) for a library component item
title: Create a new test case (acceptance test step) for a library component item
type: openapi-operation
---
Creates a new test case for a library component item.

**What are Test Cases?**
Test cases are individual test steps within a Test Suite. They document formal review and approval criteria for project results.

**Test Case Structure:**
- **Title**: Short, clear title (e.g., "Check confirmation email destination")
- **Description**: What is being tested and why it matters
- **Steps**: Step-by-step instructions for running the test
- **Expected Result**: Describes the expected or correct system behavior

**Evaluation:**
Test cases can be evaluated as Passed, Failed, or PassedWithReservations. The project is considered finished when all test cases have been passed successfully.

Editor content (description, steps, expectedResult) accepts HTML or Markdown input and returns HTML output. Only library component items (component.projectId is null) can have testcases created.

<Operation source="api-reference" id="componentlibrarycontroller-createtestcase" />
