Import-HwCertTestCollectionFromXml

Import-HwCertTestCollectionFromXml

Imports a test collection from an .xml file.

구문

Parameter Set: Default
Import-HwCertTestCollectionFromXml [-LiteralPath] <String> [ <CommonParameters>]




자세한 설명

The Import-HwCertTestCollectionFromXml cmdlet imports a test collection from an .xml file. For more information, see Windows Hardware Certification Kit downloads (http://go.microsoft.com/fwlink/?LinkId=614978) in the Microsoft Developer Network (MSDN) Library.

After you import a test collection, you can filter it by using TestCollectionRecord properties, and then use the Export-HwCertTestCollectionToXml cmdlet to export the filtered test collection.

매개 변수

-LiteralPath<String>

Specifies a full path. This is the file path to the test collection .xml file.


별칭

XML,Input,Path

필수 여부

true

위치

1

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable 등의 일반 매개 변수를 지원합니다. 자세한 내용은 TechNet의 about_CommonParameters(http://go.microsoft.com/fwlink/p/?LinkID=113216)

입력

입력 형식은 cmdlet으로 파이프할 수 있는 개체의 형식입니다.

출력

출력 형식은 cmdlet 실행 시 출력되는 개체의 형식입니다.

Example 1: Filter a test collection

This command imports a test collection, and then finds the results that belong to a specified content level. The command imports a test collection named All.xml, as a TestCollectionRecord object, and then passes that object to the Where-Object cmdlet by using the pipeline operator. The Where-Object cmdlet filters the imported object for results that belong to the Basic content level. For more information, type Get-Help Where-Object.


PS C:\> Import-HwCertTestCollectionFromXml -Input "C:\Temp\All.xml" | Where-Object { $_.ContentLevelSet.Contains("Basic") }

Example 2: Filter a test collection and export the results to a new test collection

This command imports a test collection, finds the results that belong to a specified content level, and exports a new test collection .xml file that contains only those results. The command imports a test collection named All.xml, as a TestCollectionRecord object, and then passes that object to the Where-Object cmdlet by using the pipeline operator. The Where-Object cmdlet filters the imported object for results that belong to the Basic content level. For more information, type Get-Help Where-Object. The command then passes those items to the Export-HwCertTestCollectionToXml cmdlet, which exports the test collection to the file named Basic.xml.


PS C:\> Import-HwCertTestCollectionFromXml -Input "C:\Temp\All.xml" | Where-Object { $_.ContentLevelSet.Contains("Basic") } | Export-HwCertTestCollectionToXml -Output "C:\Temp\Basic.xml"

관련 항목

커뮤니티 추가 항목

추가
표시: