Get-ASPackageTestSummary

AdminStudio 2020 | 19.0 | AdminStudio PowerShell Cmdlets

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

You can use the Get-ASPackageTestSummary cmdlet to return a summary of various tests performed for the package that is specified using the -PackageId parameter.

Examples

Get-ASPackageTestSummary-PackageId 35

Parameters

The Get-ASPackageTestSummary cmdlet has the following parameters:

Get-ASPackageTestSummary Parameters

Parameter

Description

PackageId

ID of the package that will be returned.

Sample

Below is sample code using the Get-ASPackageTestSummary cmdlet.

function ASPackageTestSummary ()

{

    [String] $Item = Read-Host "Enter Package to see summary of"

    if ($Item)

    {

        Write-Host 'Return Value: '

        $oTestResults = Get-ASPackageTestSummary $Item

        foreach ($oTestResult in $oTestResults)

        {

            Write-Host ($oTestResult.CategroyName)-foregroundcolor yellow

            Write-Host ' Errors:' ($oTestResult.TotalErrors)-foregroundcolor white

            Write-Host ' Warnings:' ($oTestResult.TotalWarnings)-foregroundcolor white

            Write-Host ' Overall Assessment:' ($oTestResult.OverallAssessment)‑foregroundcolor white

        }

    }

}

Return Values

A summary of the tests that were performed for the specified package is returned.