Skip to main content

Test Case Set Describer

Automatic generation of descriptive summaries for test case sets. The service analyzes the test case structure, steps, and parameters and writes a concise description back into the TestBench specification.

Endpoint: POST /test-case-set-descriptions

Authorization

The triggering user must hold at least one of the following project roles:

RoleDescription
TestManagerFull project management access.
TestDesignerSpecification authoring access.

When authenticating with a JWT token, the token must also grant all of the following API token permissions:

PermissionDescription
ReadOwnUserDetailsRead the authenticated user's details.
ReadProjectDetailsRead project metadata.
ReadTovReportRead test-object-version reports.
ReadCycleReportRead test cycle reports.
ReadReportingJobDetailsRead reporting job details.
DownloadReportFileDownload report files.
ReadTestThemeTreeRead the test theme tree.
ReadTestCaseSetDetailsRead test case set details.
ModifySpecificationsWrite the generated description back to the specification.
ModifySpecManagementInfoUpdate specification management metadata.

How it works

  1. The service retrieves all test case sets from the specified test-object-version (and optional cycle / subtree).
  2. For each test case set, it checks that the specification tab is not locked by another user.
  3. Items that pass the precheck are processed concurrently in the background:
    • The current description is saved as a backup.
    • A "generation started" marker is written.
    • Test case data (steps, parameters, parameter combinations) is rendered into the prompt template.
    • The prompt is sent to the configured LLM.
    • The AI-generated description is written to the description field of the test structure element specification.
    • If an error occurs, the previous description is restored.

Configuration

Default configuration

# config.toml
[testbench-ai-service.agents.test_case_set_describer]
enabled = true
endpoint_path = "/test-case-set-descriptions"
class_path = "testbench_ai_service.agents.test_case_set_describer.agent.TestCaseSetDescriber"

[testbench-ai-service.agents.test_case_set_describer.prompt]
file = "test_case_set_describer/prompt.yaml"

Agent data

The following variables are generated by the agent and are accessible in prompt templates as {{ agent.<key> }}:

VariableTypeDescription
agent.test_case_setStringFormatted string representation of the test case set (name, steps, parameters).
agent.parameter_combinationsStringFormatted parameter combination table. May be empty.

Project-specific override

# config.toml
[testbench-ai-service.projects."My Project".agents.test_case_set_describer]
enabled = false

[testbench-ai-service.projects."My Project".agents.test_case_set_describer.prompt]
variant = "Short Description"

Prompt variants

The built-in prompt file (test_case_set_describer/prompt.yaml) ships with the following variants:

VariantModelDescription
Full Description (default)gpt-5.5Generates a structured description with three sections: test objective, key verifications performed, and a summary of each concrete test case. Recommended for full documentation.
Short Descriptiongpt-5.5Generates a single-sentence test objective only. Fast and cost-efficient; ideal when a brief label is needed.

See Prompts for details on how to customize or create your own variants.