Skip to content

[feat] Add deleteTestCase and deleteTestSuite to XML-RPC API #1

Closed

Description

@dogkeeper886

Summary

The TestLink XML-RPC API (xmlrpc.class.php) is missing deleteTestCase and deleteTestSuite endpoints. Currently only deleteTestCaseSteps and deleteTestPlan exist.

Problem

MCP tool integrations (testlink-mcp) and other API clients cannot clean up test data programmatically. This causes:

  • CI pipelines leave orphaned test cases and suites after each run
  • No way to maintain a clean TestLink instance via automation
  • delete_test_case in testlink-mcp has to fake deletion by marking status as obsolete (status 7), which is a workaround, not a real delete

Requested Endpoints

Endpoint Parameters Description
deleteTestCase testcaseexternalid or testcaseid Delete a test case by ID
deleteTestSuite testsuiteid Delete a test suite and its contents

Context

  • TestLink server: 1.9.20+
  • API file: lib/api/xmlrpc/v1/xmlrpc.class.php
  • Existing delete functions: deleteTestCaseSteps (line 6441), deleteTestPlan
  • Reference: lib/testcases/containerEdit.php already has delete logic for the web UI

References

  • testlink-mcp: dogkeeper886/testlink-mcp
  • Discovered during CI cleanup: orphaned suites and test cases cannot be removed via API

Activity

  1. dogkeeper886 commented on Apr 9, 2026

    @dogkeeper886
    OwnerAuthor

    Starting work on branch issue-1-delete-api

  2. dogkeeper886 commented on Apr 9, 2026

    @dogkeeper886
    OwnerAuthor

    Implementation complete, tests passing. PR: #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions