Get-CatTestList
Returns the test lists of the open project — the places CAT loaded test definitions from.
On this page
Synopsis
Get-CatTestList
Parameters
None (common parameters only).
What it does
Writes the project’s test lists: the project file’s own implicit list and every Test list the project declares (a YAML file, a database table, an Excel sheet, …), each with its provider and connection. Use it to see where tests come from; Get-CatTest shows the tests themselves, with TestListID pointing back here.
Output
One List<TestList> object. Each item has TestListID, Name, Order, ProviderNameAndVersion, ConnectionString, Query, IsImplicit (the project file’s own list), IsEditable, Settings.
Errors
There is no CAT project open. Use Open-CatProject to open it. when nothing is open.
Examples
Open-CatProject
(Get-CatTestList) | Format-Table Order, Name, ProviderNameAndVersion
# how many tests came from each list
$lists = Get-CatTestList
$tests = Get-CatTest
foreach ($l in $lists) { "$($l.Name): $(($tests | Where-Object TestListID -eq $l.TestListID).Count)" }
Related
- Introduction — session model, logging, errors, sign-in.
- Lists.
Get-CatTest.