For the complete documentation index, see llms.txt. This page is also available as Markdown.

Search Test Repositories

The search_testrepo commands manage the recurring scheduled scan that discovers test cases in your configured test repository adapters. This scan replaced the legacy testrepo run command from earlier versions.

search_testrepo run registers a Windows Scheduled Task that runs watcher.exe SEARCH_TESTREPO on a cron schedule.

slabapcli search_testrepo run

Registers (or updates) a Windows Scheduled Task that runs the test repository search on a cron schedule. The task is registered per pipeline and test repository combination.

Syntax
slabapcli.exe search_testrepo run --pipeline <pipeline> --testrepo <name> [--cron <cron>]
Syntax
.\slabapcli.exe search_testrepo run --pipeline <pipeline> --testrepo <name> [--cron <cron>]
Parameter
Short flag
Required
Description

--pipeline

-p

Yes

The pipeline name (must match a [[pipeline]].name value in config.toml).

--testrepo

-t

Yes

The test repository name (must match a [[testrepo]].name linked to this pipeline).

--cron

No

A 5-field cron expression (minute hour day-of-month month day-of-week). Default: 0 2 * * 0 (every Sunday at 02:00).

The cron expression uses 5 fields in standard Unix cron format. Example values:

  • 0 2 * * 0 — every Sunday at 02:00 (default)

  • 0 3 * * 1-5 — Monday through Friday at 03:00

  • 0 1 * * * — every day at 01:00

Example

Command
slabapcli.exe search_testrepo run --pipeline "ALM_Demo-S21" --testrepo "ALM_Demo-qtest"
Command
.\slabapcli.exe search_testrepo run --pipeline 'ALM_Demo-S21' --testrepo 'ALM_Demo-qtest'
Expected output (PowerShell)
.\slabapcli.exe search_testrepo run --pipeline 'ALM_Demo-S21' --testrepo 'ALM_Demo-qtest'
[2026-03-08 11:00:00.123+02:00] [info] Config pathname: C:\ProgramData\Tricentis\SeaLights\ABAP Agent\config\config.toml
Search task scheduled for 'ALM_Demo-qtest' (pipeline: 'ALM_Demo-S21').

The scheduled task resolves watcher.exe from the path configured in settings.install. Verify that settings.install points to the ABAP Agent bin directory (the folder that contains watcher.exe and slabapcli.exe). If the path is incorrect, the task will fail when it runs. Use slabapcli setup status to check.


slabapcli search_testrepo stop

Removes the Windows Scheduled Task for the specified pipeline and test repository. Running searches that are already in progress are not interrupted; only the schedule is removed.

Parameter
Short flag
Required
Description

--pipeline

-p

Yes

The pipeline name.

--testrepo

-t

Yes

The test repository name.

Example


Check search status

slabapcli search_testrepo status

Shows the current Windows Scheduled Task state and the result of the last search run for the specified pipeline and test repository.

Parameter
Short flag
Required
Description

--pipeline

-p

Yes

The pipeline name.

--testrepo

-t

Yes

The test repository name.

Example

The status output reports:

  • Scheduler state — whether the task is registered, enabled or disabled, and when the next run is scheduled.

  • Last run — the process ID, process state (Running, Done, Error), and upload state (Pending, Done, Error) for the most recent completed search. If no run has been recorded, no prior run recorded is shown.

Last updated

Was this helpful?