New-HwCertTestCollection
New-HwCertTestCollection
Creates a test collection file from a project definition file.
구문
Parameter Set: Default
New-HwCertTestCollection [-ProjectDefinitionFile] <String> [ <CommonParameters>]
자세한 설명
The New-HwCertTestCollection cmdlet creates a test collection file from a Windows Hardware Certification Kit (HCK) project definition file. The collection file represents the testing scope of a unique combination of test and target and version of the Windows operating system. 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 this test collection file in several ways at different stages of the testing workflow, including the following:
-- Generate an initial test collection to understand the full scope of testing.
-- Filter the test collection based on test metadata and properties, and then generate smaller collections for different labs to run.
-- Use a test collection with results to control the scope of testing. For instance, the tests could skip all passing tests.
-- Use a test collection as a validation file when you merge test results from the smaller collections.
The cmdlet creates temporary projects and target families to enumerate all the possible tests. You can reuse the generated project for additional testing outside of the automation workflow by using tools from the HCK.
Use the New-HwCertProjectDefinitionFile cmdlet to create a project definition file.
매개 변수
-ProjectDefinitionFile<String>
Specifies the project definition file as a full path. To create a project definition file, use the New-HwCertProjectDefinitionFile cmdlet.
별칭 |
Input,PDF,Project |
필수 여부 |
true |
위치 |
1 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
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: Create a test collection
This command creates a test collection based on the project definition file named ProjectDefinitionWindows8Client.xml.
PS C:\> New-HwCertTestCollection -ProjectDefinitionFile "C:\Temp\ProjectDefinitionWindows8Client.xml"
Example 2: Create a test collection and export it to a filea
This command creates a test collection and then exports it to an .xml file. This command creates a test collection based on the project definition file named ProjectDefinitionWindows8Client.xml, and then passes the test collection to the Export-HwCertTestCollectionToXml cmdlet by using the pipeline operator. That cmdlet exports it to a file called TestCollectionWindows8Client.xml.
PS C:\> New-HwCertTestCollection -ProjectDefinitionFile "C:\Temp\ProjectDefinitionWindows8Client.xml" | Export-HwCertTestCollectionToXml -Output "C:\Temp\TestCollectionWindows8Client.xml"