Skip to main content
Version: Next

Test Repository

/casewriter/test-repository is the central store for test sets and test cases.

TestRepository

Layout​

The page is a resizable tree on the left and a detail pane on the right. Drag the divider to widen either side.

The tree holds test sets (folders) and test cases, nested as deeply as you need.

note

The list view and the clipboard copy and paste controls are still placeholders. Work in the tree view.

Toolbar​

ControlWhat it does
SearchMatches names, descriptions, and labels; accepts up to 100 characters and warns when you reach the limit
FilterNarrows by priority, complexity, and labels; the button shows the active filter count
SortName A–Z or Z–A, created date newest or oldest, updated date newest or oldest
Generate with AIOpens the generator, targeting the selected test set
ActionsNew Test Set, New Test Case, Import, Export, Download Template, and the TestRail submenu
Undo / RedoReverses or replays the last structural change
RefreshReloads the tree

Search, filters, sort, and the selected node are kept in the URL, so a copied link reopens the same view.

Undo and Redo​

Undo and redo apply to structural changes such as moves. A move is processed as a background job, so undoing one runs to completion before the tree refreshes. The buttons disable themselves when the server reports there is nothing left to undo or redo.

Test Sets​

Test sets are folders that group related test cases.

Creating a Test Set​

New Test Set asks for:

  • Test Set Name (required)
  • Parent Test Set — leave empty for the root level
  • Description (optional)

Managing Test Sets​

  • Edit a set to change its name, description, or parent.
  • Move a set to a different parent; a set cannot be moved into its own descendant.
  • Delete a set — the confirmation warns that its test cases and sub-sets go with it, and offers to remove them from active test runs as well.
  • Duplicate a set into a target folder.

Duplicating a large set runs as a background job. An indicator in the toolbar shows how many duplications are in flight; opening it shows each job's phase, progress, item counts, and start time, with a Cancel Duplicate button while it is still cancellable.

Test Cases​

Creating a Test Case​

New Test Case opens a drawer with three tabs — Details, Steps, and Review. Preconditions are edited on the Steps tab; Review is a read-back of everything before you save.

Required fields:

FieldNotes
Test Case NameThe title
Test SetWhere it is stored
PriorityBusiness impact
ComplexityEffort

Optional: description, test data, labels, preconditions, and any number of steps. Each step has an Action and an Expected Result; steps and preconditions can be reordered by dragging.

For guidance on titles, steps, and priorities, see Best Practices.

The Detail Pane​

Selecting a case opens it on the right.

  • Details — title, description, test set, priority, complexity, labels, preconditions, steps, expected results, test data, and attachments
  • History — the audit trail of field changes, with the old value, the new value, who changed it, and when

A meta bar summarizes the case, and previous and next buttons walk through adjacent cases without going back to the tree.

Attachments can be previewed in place or downloaded.

Case Actions​

ActionNotes
RegenerateRewrite the case with AI
EditOpens the editor with Details and Test Steps tabs
DuplicateCreates a copy
ExportOpens the Excel export dialog
Copy URLA link that reopens this case
Approve / Reject / Re-reviewReview actions — see Review Workflow
DeleteRemoves the case, optionally from active test runs too

The same actions are on the tree's right-click menu, which also offers New Test Set, New Test Case, Generate Test Cases with AI, Move, Import, Export, Scan Duplicates, and GitHub Scan.

Read-Only Mode​

Without a repository write permission, the page renders read-only and a banner at the bottom says so.

Bulk Actions​

Selecting more than one test case replaces the detail pane with a bulk action panel.

ActionNotes
RegenerateUp to 10 test cases at a time
DuplicateCopy the selection into a target folder
MoveMove the selection into a target folder
ExportExport the selection to Excel
DeleteDelete the selection
Scan DuplicatesAvailable when the selection sits in a single test set
GitHub ScanAvailable when the selection sits in a single test set and a GitHub provider is connected

Exceeding the regeneration limit disables the button and says so.

Regeneration From the Repository​

Regenerate asks the AI to rewrite one or more repository cases.

The dialog takes Additional Instructions (required) and an optional Target Platform, then queues the job and reports its status while it runs.

When the job finishes, the Compare Regenerated Test Scenarios dialog opens with each original beside its regenerated version, and you choose Use Regenerated, Duplicate, or Keep Original for each pair before applying. This is the same comparison flow described in AI Test Case Generation.

Reopening the repository with an operationId in the URL reopens the comparison for that job.

Duplicate Detection​

Scan Duplicates looks for test cases that say the same thing twice.

  1. Start the scan. The dialog reports preparation, then scanning, and can be cancelled while it runs.
  2. Results are grouped. Each group has a primary member and the cases that resemble it, each with a similarity type — exact, near, or semantic — and a score.
  3. For each group, select the cases you want and decide Keep Selected or Delete Selected.
  4. Apply Changes commits every decision.

If the scan finds nothing, the dialog says so and offers to rescan.

The same scan is offered during Save to Repository from an AI session, where the apply button reads Save and runs the export.

Git Scan​

GitHub Scan keeps a test set in step with a source repository.

note

The scan supports GitHub and GitHub Enterprise. The button only appears when the company has at least one enabled provider of those types.

Configuring a Scan​

FieldNotes
GitHub connectionOne of the connected providers
RepositoryLoaded from the selected connection
BranchLoaded from the selected repository
Root folderA single folder path — wildcards are not allowed. Leaving it empty scans the entire repository, so a subfolder is recommended
Scan modeManual (scan on demand) or Auto (scheduled)
ScheduleFor Auto mode: a standard cron expression, with presets for nightly, morning, end of day, hourly, Mondays, and weekday mornings

One test set binds to one repository. A set that is already bound says so; unbind it before changing the provider or repository.

Running a Scan​

Scan Now (or Save & Scan for a scheduled setup) starts the job and reports its phase.

PhaseShown as
FETCHING_DIFFFetching changes
MATCHING_CASESFinding affected cases
REGENERATINGUpdating cases
CREATING_NEWCreating new cases
MARKING_OBSOLETEMarking removed files
PERSISTINGSaving

Results​

The result reports four numbers: Files changed, Updated, New, and Obsolete.

Obsolete marks cases whose source files were removed from the repository.

If nothing changed since the last scan, the dialog says No changes detected. Starting a scan while one is already running is skipped rather than queued.

LinkEffect
?testCase=<id>Opens the repository with that case selected
?testSet=<id>Opens the repository with that set selected
?action=create-setOpens the new test set dialog
?action=create-caseOpens the new test case editor

AutoRunner AI Studio uses the first of these: a scenario linked to a repository test case shows a CaseWriter badge that opens ?testCase=<id> in a new tab, carrying the active project.