Merge-HwCertTestCollectionFromXml

Merge-HwCertTestCollectionFromXml

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

구문

Parameter Set: Default
Merge-HwCertTestCollectionFromXml [-LiteralPath] <String[]> [-HckBuildVersion <String> ] [-ValidationXmlPath <String> ] [ <CommonParameters>]

자세한 설명

The Merge-HwCertTestCollectionFromXml cmdlet merges test result information from several test collection .xml files into a single test collection. For more information, see Windows Hardware Certification Kit (HCK) (https://msdn.microsoft.com/en-us/library/windows/hardware/hh833788.aspx) 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.

매개 변수

-HckBuildVersion<String>

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

별칭

Build,Version

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-LiteralPath<String[]>

Specifies an array full paths. These are file paths to test collection .xml files.

별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

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

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • Microsoft.Windows.Kits.Hardware.Certification.TestCollectionRecord

예제

Example 1: Merge two test collection files

This command merges the results in two test collection files. The command specifies files named BasicTest.xml and CertificationTest.xml.

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

Example 2: Merge two test collection files and export the result information

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

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

Example 3: Merge several test collection files and export the result information

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

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

관련 항목

Export-HwCertTestCollectionToXml

Merge-HwCertTestCollectionFromHckx

New-HwCertTestCollection