Create a Test Pass (Compact 2013)
3/26/2014
Before you create a test pass, you must create a template to base your test pass on. This topic describes what a test pass is, how to create a test pass template, and how to create a test pass from a template.
What Is a Test Pass?
The Windows Embedded Compact Test Kit (CTK) uses the concept of a test pass as a container for a collection of test suites, which are collections of test cases. A test case is one individual test or, put another way, the particular conditions that the device is tested for and which are labeled by a test name. The test cases in a test pass can be run all together in one pass or run selectively.
A test pass provides a way to organize your testing according to the way you run your tests of the device. For example, you could have one test pass called SetTopBox that contains all of the multimedia, file system, Ethernet, and display tests that you want to run on your device platform. Then you could have another test pass called SetTopBox_Multimedia that contains only the multimedia tests. You would use the SetTopBox_Multimedia test pass if you want to run only the multimedia tests and the SetTopBox test pass if you want to run the complete set of tests.
A test pass can be saved and reused at a later time. Previously saved test passes will be preserved during upgrades to new versions of the Windows Embedded Compact Test Kit.
To create a test pass, you first create a test pass template to base your test pass on.
What is a Test Pass Template?
A test pass is created from a test pass template, which is a reusable model that contains a collection of related test passes. After you’ve created a test pass template, you can add and remove test cases from the template.
You can organize test cases into logically related test pass groups, or test suites, by using the CTK to create test pass templates. You can view these groups in the Test Case Explorer pane, which is available from the Test Manager.
There are two categories of test pass templates:
- Microsoft Windows Embedded Templates, which are provided by Microsoft and organized into the following groups: Basic Verification, Functional, Performance, and Windows Embedded Compact.
- The Basic Verification, Functional, and Performance templates are subsets of all tests available in the CTK. The selection of the tests that make up each test pass template is based on relevance to the goal of that test pass.
- The Windows Embedded Compact template contains all the tests available in the CTK.
- My Templates, which are all the templates that you create.
You cannot edit the Microsoft Windows Embedded Templates, but you can edit the templates that you create and store in My Templates by using the Test Manager. For more information about the Test Manager, see Manage Tests.
Create or Edit a Test Pass Template
You use the Test Manager to create new test pass templates or edit existing test pass templates. For more information about the Test Manager, see Manage Tests.
To create or edit a test pass template
In the CTK, on the File menu, point to New, and then click Test Pass Template.
If you want to create a new test pass template, on the right side of the Test Manager window that appears, on the Test Pass Templates tab, under Edit Templates, click the New button. To edit an existing test pass template, select the existing template from Test Pass Templates.
If you create a new test pass template, you can type a new name to rename it.
In the Test Case Explorer tree view pane, expand Windows Embedded Test Catalog.
Click a test case tree node or an individual test case, and then click the Add button to add the selected test case to your new template.
Continue to add test cases from the Windows Embedded Test Catalog until your template is complete.
If you want to remove a test case, click a test case tree node or an individual test case in your new template to highlight the node or test case you want to remove, and then click the Remove button.
Click Done to exit Test Manager.
Copy an Existing Test Pass Template
The Windows Embedded Compact Test Kit (CTK) provides prebuilt test pass templates that you can copy to create your own templates. The provided templates are the Windows Embedded Compact template, which contains the test cases in the Windows Embedded Test catalog, and a Desktop template. You can also copy test pass templates that you create to use as a model for a new templates.
To copy an existing test pass template
In the CTK, on the File menu, point to New, and then click Test Pass Template.
The Test Manager window opens displaying the Test Case Explorer pane on the left side of the window and two tabs on the right side: Test Case Information and Test Pass Templates.
On the Test Pass Templates tab, click to highlight the template you want to copy.
Note
You cannot copy test cases from a template. You can only copy the template as a whole.
Under Edit Templates, click the Copy button.
In the copied template name that is highlighted , type a name to rename the copied template.
If you want to customize the template, you can add and remove test cases.
Click Done to exit Test Manager.
Create a Test Pass from a Template
After you create a test pass template, you can create a test pass.
To create a test pass from a template
In the CTK, connect to a device. For more information, see Connect to a Device.
On the View menu, click Test Pass Templates View.
In the Test Case Explorer window, on the Test Pass Templates View tab, click to highlight the test pass template that you want to base your test pass on.
Right-click the highlighted template, and then click Use as Current Test Pass.
Note
If Use as Current Test Pass is not available on the shortcut menu, you most likely are not connected to a device.
In the Test pass display window, click the new test pass with the highlighted default name of Windows Embedded, and then type a new name.
Note
If a test pass was already in the Test pass display window, you will be prompted to save the current test pass before a new test pass is created.
In the Test pass display window, expand the test pass tree to view the test cases.
The new test pass contains all the test cases that are in the template that you used to create the test pass.
On the File menu, click Save Test Pass.
Add a Test Case to a Test Pass
You can add a test case directly to a test pass without adding the test case to a template.
To add a test case to a test pass
In the CTK, connect to a device.
On the File menu, point to Open, and then click Test Pass.
In the Open dialog box, select a test pass file, and then click Open.
Note
If a test pass was already in the Test pass display window, you will be prompted to save the current test pass before a new test pass is created.
In CTK, on the View menu, click Test Case Explorer.
In the Text Case Explorer window, select a test case node or a test case from the Windows Embedded Test Catalog tree.
Drag the selected test case or test case node onto the Test pass display window. If you select a test case node, the node and its child nodes are copied to the current test pass.
To save the test pass, on the File menu, click Save Test Pass.