Print Driver And XPSDrv Testing In Windows Vista

  • Slides: 41
Download presentation
Print Driver And XPSDrv Testing In Windows Vista Manski Fransazov Test Development Lead Digital

Print Driver And XPSDrv Testing In Windows Vista Manski Fransazov Test Development Lead Digital Documents Platform and Solutions

Agenda Topics Test strategy and test areas Test tools and distribution vehicles Justin Slone,

Agenda Topics Test strategy and test areas Test tools and distribution vehicles Justin Slone, Microsoft – XPS Conformance Jim Zuber, Quality. Logic – XPS Test Strategies Should leave today with Awareness of the test areas Awareness of the available test tools Assumes basic familiarity with v 3 print driver architecture and the new XPSDrv print paths

Test Strategy Facilitate quality driver development Facilitate Windows Logo qualification

Test Strategy Facilitate quality driver development Facilitate Windows Logo qualification

Test Strategy Implementation Microsoft to provide in Windows Driver Kit (WDK) Test tools format

Test Strategy Implementation Microsoft to provide in Windows Driver Kit (WDK) Test tools format conformance Baseline XPS content Test tools targeting print driver (and device) robustness and security Improve print driver quality by using Application Verifier

Test Areas GDI-based print drivers and devices Robustness and security Print. Ticket conformance and

Test Areas GDI-based print drivers and devices Robustness and security Print. Ticket conformance and manipulation XPSDrv print drivers and devices Robustness and security XPS conformance and manipulation Print. Ticket conformance and manipulation Diverse XPS content Correct rendering

Key Test Tools XPS conformance validation tool is. XPS. exe Print ticket conformance validation

Key Test Tools XPS conformance validation tool is. XPS. exe Print ticket conformance validation tool PTConform. exe Automated Rendering Verification tool Looks. Good. exe

WDK Test Tools XPS Content Library for printing Conformant XPS content from diverse producers

WDK Test Tools XPS Content Library for printing Conformant XPS content from diverse producers Not conformant or invalid XPS content Security/penetration tests Corrupted XPS content Corrupted Print. Tickets DEVMODE Corruptor

WDK Test Tools Print driver stress Windows Presentation Foundation (WPF) printing test tools WPF

WDK Test Tools Print driver stress Windows Presentation Foundation (WPF) printing test tools WPF rendering test WPF stress test 2007 Office system content rendering test Other XPS content rendering test XPSDrv Filter test daemon

WDK Test Tools Functionality tests Driver configuration tests Print. Ticket test GDL Checker Print

WDK Test Tools Functionality tests Driver configuration tests Print. Ticket test GDL Checker Print Device Capabilities Document. Properties test Driver or printer device rendering tests PGremlin and PGremlin 2 rendering tests Print Area test Photo Print test Cancel Job test

Test Tools Summary Easy to use test tools are available now They cover a

Test Tools Summary Easy to use test tools are available now They cover a wide range of test areas XPS and Print. Ticket conformance tools are critically important

XPS Conformance And is. XPS Justin Slone Test Development Engineer Digital Documents Platform and

XPS Conformance And is. XPS Justin Slone Test Development Engineer Digital Documents Platform and Solutions

XPS Conformance XPS conformance enabled through Strict standard, strict test tools, strict implementations is.

XPS Conformance XPS conformance enabled through Strict standard, strict test tools, strict implementations is. XPS. exe (codenamed is. Reach) is a strict test tool designed and developed by Microsoft Assists in determining if an XPS document conforms to the XPS specification

XPS Conformance Authority In order of authority The XML Paper Specification The XPS conformance

XPS Conformance Authority In order of authority The XML Paper Specification The XPS conformance test provided by Microsoft The WPF XPS Viewer

is. XPS Overview Goals of is. XPS Verify Open Packaging Conventions (OPC) conformance Verify

is. XPS Overview Goals of is. XPS Verify Open Packaging Conventions (OPC) conformance Verify XPS Document conformance Provide detailed error information Requirements to run is. XPS. exe. NET 2. 0 WPF

XPS Document Framework Legend Doc. Thumb. jpg Resource Parts – Image_1. jpg OPC Parts

XPS Document Framework Legend Doc. Thumb. jpg Resource Parts – Image_1. jpg OPC Parts – _rels/. rels XPS Parts – 1. fpage Package Root Fix. Doc. Seq. fdseq _rels/. rels _rels/Fix. Doc. Seq. fdseq. rels Fix. Doc. fdoc 1. fpage Conceptual Parts – _rels/1. fpage. rels Package Root Relationships – Markup References – Image_1. jpg Font_0. ttf

Conformance Checks Pre-validation Doc. Thumb. jpg Validate font and image parts OPC validation Validate

Conformance Checks Pre-validation Doc. Thumb. jpg Validate font and image parts OPC validation Validate relationship markup Process package relationships Digital Signatures Core Properties Thumbnails Etc Package Root Fix. Doc. Seq. fdseq _rels/. rels _rels/Fix. Doc. Seq. fdseq. rels Fix. Doc. fdoc 1. fpage Image_1. jpg _rels/1. fpage. rels Font_0. ttf

Conformance Checks XPS validation Doc. Thumb. jpg Start from fixedrepresentation relationship Validate markup of

Conformance Checks XPS validation Doc. Thumb. jpg Start from fixedrepresentation relationship Validate markup of Fix. Doc. Seq Follow <Document. Reference> to Fixed. Docs Package Root Fix. Doc. Seq. fdseq _rels/. rels _rels/Fix. Doc. Seq. fdseq. rels Fix. Doc. fdoc 1. fpage _rels/1. fpage. rels Validate markup of Fix. Doc Follow <Page. Content> to Fixed. Pages Validate markup of 1. fpage Discover Resource Parts Image_1. jpg Font_0. ttf

Conformance Checks Markup references Package Root Doc. Thumb. jpg Font references Image references ICC

Conformance Checks Markup references Package Root Doc. Thumb. jpg Font references Image references ICC profile references Resource dictionaries Fix. Doc. Seq. fdseq Processing similar to a Fixed. Page _rels/. rels _rels/Fix. Doc. Seq. fdseq. rels Fix. Doc. fdoc 1. fpage _rels/1. fpage. rels Process relationships from Fixed. Page part Confirm that there are matching required-resource relationships to all markup referenced parts Image_1. jpg Font_0. ttf

Most Common Usage Most Used Switches -f=<File. Pattern> The file on which to perform

Most Common Usage Most Used Switches -f=<File. Pattern> The file on which to perform the validation e. g. file. xps or *. xps /s Apply File. Pattern to all subdirectories -logger: <Log. Type> The logger to use (File, Console, WTT) -logfile: <Log. File> The log file to write to when using the File logger Default logfile is “is. XPSLog. txt”

is. XPS Logfile Sample Error +Start Test: /Documents/1/Pages/3. fpage Markup Info: Validating Markup of

is. XPS Logfile Sample Error +Start Test: /Documents/1/Pages/3. fpage Markup Info: Validating Markup of Part 3. fpage using target namespace … Fail: Markup is not Conformant: Number of errors: 1 Info: Error #1: At position (4, 93) Message: The ‘Stretch’ attribute is not declared. -End Test: /Documents/1/Pages/3. fpage Markup Result: Fail Log Rollup -End Test: Processing file: C: Exercise_1. 1. xps Result: Fail -End Test: is. XPS Result: Fail *****Log Rollup************************ Test. Name: is. XPS Pass. Rate: 81% Pass: 18 Warn: 0 Fail: 4 Block: 0 ********************************** Result: Fail

is. XPS Takeaway Use is. XPS. exe for easy OPC and XPS conformance validation

is. XPS Takeaway Use is. XPS. exe for easy OPC and XPS conformance validation Detailed error information helps quickly isolate bugs Visit the XPS Printing hands on lab XPS Testing and Conformance lab Find is. XPS (named is. Reach) in Beta 2 WDK and SDK

XPS Test Strategies Jim Zuber XPS Test Architect Quality. Logic, Inc.

XPS Test Strategies Jim Zuber XPS Test Architect Quality. Logic, Inc.

Quality. Logic, Inc. De facto standard test tool provider to printer industry for 20

Quality. Logic, Inc. De facto standard test tool provider to printer industry for 20 years Released XPS test suites to the industry in late 2005 Provided XPS training to over 20 XPS early adopter companies Just completed a set of XPS analysis and debugging utilities

Topics XPS Characteristics Keys to Interoperability Testing Challenges XPS Consumer Analysis

Topics XPS Characteristics Keys to Interoperability Testing Challenges XPS Consumer Analysis

XPS Characteristics Standards based XML, JPG, TIFF, ICC, Etc Clear specifications Example code Clarifications

XPS Characteristics Standards based XML, JPG, TIFF, ICC, Etc Clear specifications Example code Clarifications Baseline reference XPS Viewer

XPS Characteristics A very efficient set of drawing primitives Paths can contain arcs, lines,

XPS Characteristics A very efficient set of drawing primitives Paths can contain arcs, lines, and Bezier curves Paths and Glyphs can be painted with brushes Common properties control clipping, transforms, and opacity

XPS Characteristics Simple syntax Elements and attributes Low complexity Human readable A very testable

XPS Characteristics Simple syntax Elements and attributes Low complexity Human readable A very testable technology!

Keys To XPS Interoperability Clean XPS markup generated by XPS producers Is. XPS PTConformant

Keys To XPS Interoperability Clean XPS markup generated by XPS producers Is. XPS PTConformant XPS consumers Functional Test suites Comprehensive Test suites Minimize specification ambiguities Xpsinfo @ microsoft. com

Keys To XPS Interoperability Application compatibility testing of XPS consumers All print paths Key

Keys To XPS Interoperability Application compatibility testing of XPS consumers All print paths Key applications Diversity of producers Conversion programs Strict de facto standard XPS consumer WPF XPS Viewer Practical arbiter of “is it right”

XPS Testing Challenges Clarifications to specification still emerging No hardcopy reference target Page comparison

XPS Testing Challenges Clarifications to specification still emerging No hardcopy reference target Page comparison Practical implementation limits Few unique XPS producers Interoperability testing Usage models

XPS Testing Challenges Interactions between XPS markup and Print. Tickets Complex scenarios with Visual.

XPS Testing Challenges Interactions between XPS markup and Print. Tickets Complex scenarios with Visual. Brush New image file format WMPhoto XPS analysis Interleaved files

XPS Analysis Tools Microsoft XPS Viewer Is. XPS PTConform Xaml. Pad Quality. Logic Stat.

XPS Analysis Tools Microsoft XPS Viewer Is. XPS PTConform Xaml. Pad Quality. Logic Stat. Gen Print. Ticketer XPS Parts Assembler

XPS Consumer Analysis Identify the symptoms Is it a crash or a visual anomaly?

XPS Consumer Analysis Identify the symptoms Is it a crash or a visual anomaly? Do you get an error report? Try viewing the file in the XPS Viewer Does the same error occur? Get a big picture view Unzip – What parts are in the package? Statistics – Stream sequence and element usage

XPS Consumer Analysis Schema Validation Microsoft’s is. XPS program will quickly validate the schema,

XPS Consumer Analysis Schema Validation Microsoft’s is. XPS program will quickly validate the schema, as well as relationships and resource file integrity Test Code Fragments If problem also occurs in XPS Viewer, cut and paste suspect markup into Xaml. Pad to isolate problem

XPS Consumer Analysis Problem occurs only in device under test Use ZIP utility and

XPS Consumer Analysis Problem occurs only in device under test Use ZIP utility and XML Editor to modify the XPS markup in the container Reduce to smallest number of XPS elements that reproduce problem Suspect Print. Tickets Extract Print. Ticket part and run PTConform to find syntax problems Use Print. Ticket editor to modify Print. Ticket settings inside container to isolate problems

Summary XPS has the potential to quickly achieve a high degree of interoperability Tools

Summary XPS has the potential to quickly achieve a high degree of interoperability Tools are available NOW to start testing and debugging your XPS implementations

Call To Action Familiarize yourself with XPS and Print. Ticket specifications and XPSDrv technology

Call To Action Familiarize yourself with XPS and Print. Ticket specifications and XPSDrv technology in particular Use Microsoft test tools to validate your implementations Be ultra strict as far as XPS and Print. Ticket conformance is concerned Test for compatibility now! Test the GDI Print Path, XPS Print Path, and compatibility paths Test your company’s XPSDrv and XPS-capable printers Report problems immediately Invest in testing – it pays out!

Call To Action Understand your company logo goals and review new logo requirements Basic

Call To Action Understand your company logo goals and review new logo requirements Basic and Premium At Win. HEC Practice driver dev and testing skills in XPS Printing hands on labs Ask the Experts at lunch today Visit the Microsoft Pavilion to see XPS demos Attend related sessions PRI 050 Inside Printer Installation on Windows Vista PRI 039 Using the Windows Color System in Device Drivers PRI 102 Using XPSDrv Print Drivers to Extend Windows Print Functionality PRI 019 Developing XPSDrv Print Drivers PRI 115 Windows Media Photo: A New Format for End-to-End Digital Imaging

Additional Resources Web Resources Application Verifier: http: //go. microsoft. com/fwlink/? Link. Id=52529 XPS Portal

Additional Resources Web Resources Application Verifier: http: //go. microsoft. com/fwlink/? Link. Id=52529 XPS Portal http: //www. microsoft. com/xps Links to relevant blogs, whitepapers, specs WHDC Printing documents http: //www. microsoft. com/whdc/device/print/default. mspx Windows Digital Documents Platlform Team Newsletter https: //profile. microsoft. com/Reg. Sys. Profile. Center/subscriptionwizard. aspx? wizid=77 d 9786 e-9500 -40 a 4 -ba 20 -a 4 c 7504 d 83 ca&lcid=1033 Technical advice XPSinfo @ microsoft. com Prninfo @ microsoft. com WDK and SDK Quality. Logic http: //www. qualitylogic. com Web Resources Quality. Logic XPS Test Suites and Tools: tools@qualitylogic. com Quality. Logic XPS Training: http: //www. qualitylogic. com/xps/training. html E-mail info @ qualitylogic. com

© 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows Vista and other product names

© 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U. S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.