Test Library Insights Guide
User Guide
BriefSpec
Introduction
Library Insights is the product name for indexing Test Case Library sets so AI can reuse their test cases as examples when generating new Test Cases. It is not an analytics dashboard (no charts or KPIs). Application Admins prepare libraries in Settings so generation can find similar, approved examples instead of writing only from the requirement text.
The feature has two parts. First, selected libraries are added to Library Insights (indexed) on the Test Case Library list. Second, a Project module configuration template special field (use_test_case_library_rag, labeled Generate with Library Insights) tells generation whether to use those indexed libraries. Authors who generate Test Cases do not turn the setting on themselves – the template assigned to the project controls it.
This guide explains how Application Admins open Test Case Library, add or refresh Library Insights, delete Insights without deleting libraries, and turn generation on or off for a project via Project Templates.
Accessing Library Insights
Library Insights is managed from two places. Indexing is done on the tenant Test Case Library under Project Artifacts Library. The generate setting is done on the Project module configuration template (Test Cases module, Condition tab).
To index libraries, open Settings > Project Artifacts Library > Test Case Library (sidebar: Project Artifacts Library). Plan entitlement test_case_library_module and privilege settings-testcase-library control access. Breadcrumb may show Testcase Library (one word).

The Test Case Library list (Default view) includes search, columns, Advanced Filters, Add Testcase Library, Create New Master Test Case, and Library Insights toolbar actions.

Select one or more Test Case sets with the row checkboxes, then click Add to Library Insights (or Add to Library Insights (N)). Ready libraries already in Insights are skipped. The empty Not added badge alone does not add a library – use the checkbox and toolbar button. Row Action may offer Retry / Refresh Library Insights for Failed or Update needed.
Under the Action column, the first control is the Library Insights status badge. Hover for details. Statuses: In Library Insights (ready), Update needed, Queued, Adding, Failed, Not added.
Before you can use Library Insights:
- Library Insights must be enabled for your tenant or workspace (API availability: indexing_enabled and tenant_enabled). If not, you see Library Insights is not enabled for this workspace and indexing actions stay unavailable.
- Your user role must have Edit (Read and Edit) on test-case-library-import-test-case-set. The same privilege manages Library Insights (add, refresh, delete Insights).
- Your user role must have permission to update Project Templates if you need to turn generation on or off for a project.
- AI-powered features must be enabled for your tenant for generation that uses Library Insights.
If Library Insights is not enabled for the workspace, the Test Case Library shows that status and indexing actions are unavailable. Browsing and managing libraries can still work – indexing is optional.
Here is how the Library Insights status on a library row looks:


In Library Insights (ready) means generation can use that library’s test cases as examples when the project flag is on. Update needed means the library changed after it was indexed – refresh Insights. Queued / Adding means indexing is in progress (the list polls while rows are busy). Failed means the last attempt did not complete – retry. Not added means the library is not in Insights yet.
Indexing Libraries
Select one or more libraries that are not yet ready in Library Insights, then add them. You can also retry a failed library or refresh a library that needs an update from the Action menu (Retry / Refresh Library Insights).
Indexing runs in the background. You may continue other work while a library is Queued or Adding. Toasts confirm Adding to Library Insights, queue messages, or errors.
When the index is ready, the row shows In Library Insights. Generation can then use its test cases as examples if Generate with Library Insights is on for the project’s Test Cases module. You can Delete Library Insights for selected Ready libraries (spark / delete Insights action) – the libraries and master test cases stay. Deleting a library also removes its Insights.

Enabling Generation for a Project
Indexing alone does not turn Library Insights on for generation. You also set the special field use_test_case_library_rag (Generate with Library Insights) on the Test Cases module of the template used by the project.
Open Settings > Project Templates. Open the custom or tenant template assigned to the project. Do not use a read-only System template (for example RTM – All Modules) if you need to change the value. Open the template.

Select the Test Cases module. Open the Condition tab. This tab lists special fields for the module, such as Mandatory Requirement Link and Generate with Library Insights. The Condition tab looks like below.

Turn Generate with Library Insights on or off. When on, generate requests include the Library Insights flag and the service can attach similar library examples. When off (or when the field cannot be read), generation continues from requirements only without Library Insights. Treat missing or unreadable values as off. After generation, authors may see Test Case Library used or Test Case Library not used.
Who Can Access or Set the Flag
Application Admins should treat these as separate permissions:
- Turn generation on for a project – users who can update Project Templates, on a template that is not read-only or data-locked.
- Build, refresh, or delete Library Insights – users with Edit on test-case-library-import-test-case-set.
- Generate test cases that reuse the library – users who can generate Test Cases, typically Authors. BriefSpec applies the template setting automatically. These users do not set the flag.
- Workspace enablement – Library Insights must be allowed for the tenant (indexing_enabled / tenant_enabled). If it is off, indexing is blocked for everyone.
System templates such as RTM – All Modules are often marked Read Only. Copy or use a tenant template if you need to change the generate setting.
How Generation Uses Library Insights
When an Author generates Test Cases on a project whose template has Generate with Library Insights on, BriefSpec sends the flag with the generate request. The service retrieves similar library test cases and may use them as examples (badge: Test Case Library used or Test Case Library not used).
If the setting is off, generation continues without Library Insights. The Test Case Library list still works if the index is unavailable. Indexing is an optional enhancement and must not block library browsing.
Important: Always confirm that the libraries you want reused show In Library Insights before you ask project teams to generate with Library Insights, and that the project’s Test Cases template flag is on.