Game Development Reference
In-Depth Information
Adding Tests
Go to the Test menu and select Add Tests. The Test Settings dialog will come up. Configure any test settings your
product needs. In most cases, Default will be sufficient. Press Next.
The tests expect an image size of 512 x 512, so be sure your images comply. Larger images could cause you to run
out of memory. Smaller ones may not compare well enough to pass the test case. You can change the size in the Edit
Settings dialog, which is reached by pressing Add/Edit on any of the operations shown in the Test Settings dialog. The
Select Data Set dialog will come up. Select the following and press Finish:
StandardDataSets/Collada
StandardDataSets/xml
Confirm that there are 613 tests in the Total box on the toolbar. (The tests are numbered 0 through 612.) If not,
you might not have selected all six operations or the two datasets you need. Try creating a new test procedure.
The Grid
Once the grid displays, you can use the menus, the toolbar, and the context commands on the right-click menu. Some
context commands are available from every cell; some are cell-specific. See the list of the context menus in section 9.7
of the CTS manual, Context Menus. The CTS displays standard format images. If a format can't be displayed, you'll get
a message to that effect.
Running the Tests
The input to the tests comes from the Standard Data Sets dialog box, which you can get to from the Tests Add
Tests dialog.
Each test is composed of a COLLADA document (. dae file) and a judging script. Some of the scripts have different
requirements for different badges, so it is possible to pass the Baseline level and not the Superior or Exemplary, or
Baseline and Superior, but not Exemplary, for a given test. The description of the test is displayed in the Description
column; it comes from the subject element in the . dae file.
For more information on what is being tested, see COLLADA_CTS_test_cases.xls in the CTS\TestCaseDocumentation
directory. You can also check the judging scripts to see what each test is looking for. The judging scripts are contained
in the StandardDataSets folder structure along with the COLLADA input document for each test.
Selecting Tests
You can launch all the tests or a portion of them from the Test menu. You can also run a single test from the context
menu when the cursor is positioned in its row. Some tests depend on the successful completion of other tests, so don't
(initially) run tests out of order.
You can select a range of tests by using the CTRL and/or SHIFT keys just as you do with any Windows application.
Hold down the CTRL key while selecting more than one test. To select a block, highlight the topmost test, then hold
SHIFT down while you select the last test in the sequence. All the tests in between the two will highlight and you can
Run Selected from the Test menu.
There is no easy way to select only Baseline tests, but don't worry about that: there's no reason to do so. You have
to run all the tests in order to earn a badge.
 
Search WWH ::




Custom Search