Merge-HwCertTestCollectionFromPackage

Merge-HwCertTestCollectionFromPackage

Merges test result information from several .hckx package files into a single test collection.

구문

Parameter Set: Default
Merge-HwCertTestCollectionFromPackage [-LiteralPath] <String[]> [-Force] [-HckBuildVersion <String> ] [-IncludeAll] [-ValidationXmlPath <String> ] [ <CommonParameters>]

자세한 설명

The Merge-HwCertTestCollectionFromPackage cmdlet merges the test result information from several .hckx package files into a single test collection. For more information, see Windows Hardware Certification Kit downloads (https://go.microsoft.com/fwlink/?LinkId=614978) in the Microsoft Developer Network (MSDN) Library.

You can use the Export-HwCertTestCollectionToXml cmdlet to export the merged test collection as an .xml file. You can use the New-HwCertTestCollectionExcelReport cmdlet to create a Microsoft Excel report of the test results.

The cmdlet parses each .hckx package file, and then generates a cached .xml file in the same location as each parsed file. Therefore, you must have write permission for the folders that contain the .hckx package files.

매개 변수

-Force

Indicates that the cmdlet parses the .hckx package files, and then replaces any existing cached .xml files.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-HckBuildVersion<String>

Specifies an HCK build version. This cmdlet merges the results that match this build version only.

별칭

Build,Version

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-IncludeAll

If specified, the merge includes all test results, including any that passed, and any that failed, such as those with "not-run" results.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-LiteralPath<String[]>

Specifies an array of file paths. These are file paths to .hckx package files. You must have write permission for the folders that contain these files.

별칭

none

필수 여부

true

위치

1

기본값

none

파이프라인 입력 허용 여부

true(ByValue)

와일드카드 문자 허용 여부

false

-ValidationXmlPath<String>

Specifies the path of a test collection .xml file to use for validation. The cmdlet checks the new test collection against the validation collection to ensure that at least one result exists. Validation helps to determine that all the tests merged from child lab collections meet the goals of the original test collection.

To obtain a test collection file for validation, use the New-HwCertTestCollection cmdlet, along with the Export-HwCertTestCollectionToXml cmdlet.

별칭

XML

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

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

입력

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

출력

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

Example 1: Merge two package files

This command merges the results in two .hckx package files. The command specifies files named BasicTest.hckx and CertificationTest.hckx.

PS C:\> Merge-HwCertTestCollectionFromPackage -LiteralPath ("C:\Temp\BasicTest.hckx", "C:\Temp\CertificationTest.hckx")

Example 2: Merge two package files and export the result information

This command merges the results in two .hckx package files and exports the result information to an .xml file named Merged.xml. The command merges files named BasicTest.hckx and CertificationTest.hckx. The command passes the merged results to the Export-HwCertTestCollectionToXml cmdlet by using the pipeline operator. That cmdlet exports the results.

PS C:\> Merge-HwCertTestCollectionFromPackage -LiteralPath ("C:\Temp\BasicTest.hckx", "C:\Temp\CertificationTest.hckx") | Export-HwCertTestCollectionToXml -Output "C:\Temp\Merged.xml"

Example 3: Merge several package files and export the result information

This command merges the results in all the .hckx package files in a specified folder and exports the merged result information to an .xml file named Merged.xml. The command uses the Get-ChildItem cmdlet to get all the .hckx files in the C:\Temp folder. For more information, type Get-Help Get-ChildItem. The command passes the .hckx files to the Merge-HwCertTestCollectionFromXml cmdlet by using the pipeline operator. That cmdlet merges the test results. The command then passes the merged results to the Export-HwCertTestCollectionToXml cmdlet. That cmdlet exports the results.

PS C:\> Get-ChildItem -Recurse "C:\Temp\*.hckx" | Merge-HwCertTestCollectionFromPackage | Export-HwCertTestCollectionToXml -Output "C:\Temp\Merged.xml"

관련 항목

Export-HwCertTestCollectionToXml

Merge-HwCertTestCollectionFromXml