Get-ASTestState

AdminStudio 2021 R2 | 22.0 | AdminStudio PowerShell Cmdlets

Edition:Powershell cmdlets are enabled with AdminStudio Enterprise Edition and with Workflow Manager.

You can use the Get-ASTestState cmdlet to return the test state (selected or not selected) of a given test.

Example

The following is the syntax used to return the test state of a given test:

Get-ASTestState-TestId nnnnn

For example:

Get-ASTestState-TestId ICE33

Parameters

The ASTestState cmdlet has the following parameters:

ASTestState Parameters

Parameter

Description

TestId

Use to specify the ID number of the test that you are checking the test state of. This is the same ID number that identifies the test on the Application Catalog Select Tests to Execute dialog box.

Return Values

One of the following values is returned:

True—Test is selected to run.
False—Test is not selected to run.