Skip to main content
Glama

get_root_id_by_suite_id

Retrieve the root suite ID for a specific suite ID in Zebrunner test management. Use this tool to navigate test suite hierarchies by providing a project key and suite ID.

Instructions

🔍 Get root suite ID for a specific suite ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_keyYesProject key (e.g., 'android' or 'ANDROID')
suite_idYesSuite ID to find root for
formatNoOutput formatjson

Implementation Reference

  • The core helper function implementing getRootIdBySuiteId logic. Returns the root suite ID for a given suite ID by checking precomputed rootSuiteId or computing via getRootId. Matches the Java equivalent method and is used in API clients.
     * Helper function to get root ID for a specific suite ID
     * Equivalent to: getRootIdBySuiteId(List<TCMTestSuite> allSuites, int id)
     */
    static getRootIdBySuiteId(allSuites: ZebrunnerTestSuite[], id: number): number {
      const suite = allSuites.find(s => s.id === id);
      if (suite?.rootSuiteId) {
        return suite.rootSuiteId;
      }
      // If rootSuiteId is not set, calculate it
      return this.getRootId(allSuites, id);
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/maksimsarychau/mcp-zebrunner'

If you have feedback or need assistance with the MCP directory API, please join our Discord server