User's Guide: CPE ValidatorRelease 1.0 (RC_01)Contents:This is a work-in-progress and capabilities are subject to change. OverviewFunctionalityThe Validator is intended to be used during the pre-processing of a Common Media Manifest (CMM) file. When validating a manifest with this tool, the user may select what level of validation checks will be applied. The options are, in increasing level of rigor:
Validation of a manifest's conformance to a specific Profile will be performed automatically when the 'Constraints' option is enabled and a specific profile has been specified (see Step #4 of Selecting Processing Options for details). User InterfaceFigure 1: Validator UI
Using the ValidatorSelecting Processing Options
Figure 2: Validation Criteria Menu Running the Validator and Interpreting OutputOnce all validation options have been set, the validation process may be executed via the RUN button. When the validation process completes, the results will be displayed in the Logging panel (see Figure 3). Figure 3: Validation Results By right-clicking on the message display pane, a pop-up menu may be accessed (see Figure 4). Available actions are:
Figure 4: Message Log Pop-up Menu Running ScriptsFunctionalityValidation of multiple Manifests may be performed using scripts that can specify any of same options and settings available thru the user interface. A script may easily be used to process a set of manifests with specified sub-sets being handled using different options. All results are automatically displayed in the GUI's log display but the script engine supports the option of also writting the log to a file. Writing Command ScriptsA script file is written using the JSON syntax. The structure for a validation script is as follows:
The following is an example of script that validates two Manifest files plus any Manifests found in a specific folder and then saves the message log in an output file: { "validate":{ "pathPrefix":"./MediaManifests/", "checks":{ "contraints":"Y", "bestPrac":"N" }, "logging":{ "level":"Warning", "output":"./scriptLog01.xml" }, "manifests":[ { "file":"si_tests/CMM_BBB_v0.1.xml", "schema":"1.5", "profile":"DemVal" }, { "file":"si_tests/CMM_Sita_v0.1.xml", "schema":"1.4", "profile":"none" }, { "file":"studio", "schema":"1.4", "profile":"IP-1" } ] } } User InterfaceSelection and execution of a script is via the Run Script.. menu entry. Once a script file has been selected the execution is automatic. It is recommended that the contents of the log display be cleared prior to executing a script. Failure to do so will result in any previous messages being included in the saved log file. Figure : Script Selection and Execution |