Date post: | 24-Dec-2015 |
Category: |
Documents |
Upload: | marylou-powell |
View: | 220 times |
Download: | 0 times |
Print Driver And XPSDrv Print Driver And XPSDrv Testing In Windows VistaTesting In Windows Vista
Manski FransazovManski FransazovTest Development LeadTest Development LeadDigital Documents Platform and SolutionsDigital Documents Platform and Solutions
AgendaAgenda
TopicsTopicsTest strategy and test areasTest strategy and test areas
Test tools and distribution vehiclesTest tools and distribution vehicles
Justin Slone, Microsoft – Justin Slone, Microsoft – XPS ConformanceXPS Conformance
Jim Zuber, QualityLogic – Jim Zuber, QualityLogic – XPS XPS Test StrategiesTest Strategies
Should leave today withShould leave today withAwareness of the test areasAwareness of the test areas
Awareness of the available test toolsAwareness of the available test toolsAssumes basic familiarity with v3 print driver Assumes basic familiarity with v3 print driver architecture and the new XPSDrv print pathsarchitecture and the new XPSDrv print paths
Test StrategyTest Strategy
Facilitate quality driver developmentFacilitate quality driver development
Facilitate Windows Logo qualificationFacilitate Windows Logo qualification
Test Strategy ImplementationTest Strategy Implementation
Microsoft to provide in Windows Driver Microsoft to provide in Windows Driver Kit (WDK)Kit (WDK)
Test tools for format conformanceTest tools for format conformance
Baseline XPS contentBaseline XPS content
Test tools targeting print driver (and device) Test tools targeting print driver (and device) robustness and securityrobustness and security
Improve print driver quality by using Improve print driver quality by using Application VerifierApplication Verifier
Test AreasTest Areas
GDI-based print drivers and devicesGDI-based print drivers and devicesRobustness and securityRobustness and security
PrintTicket conformance and manipulationPrintTicket conformance and manipulation
XPSDrv print drivers and devicesXPSDrv print drivers and devicesRobustness and securityRobustness and security
XPS conformance and manipulationXPS conformance and manipulation
PrintTicket conformance and manipulationPrintTicket conformance and manipulation
Diverse XPS contentDiverse XPS content
Correct renderingCorrect rendering
Key Test ToolsKey Test Tools
XPS conformance validation tool XPS conformance validation tool isXPS.exeisXPS.exe
Print ticket conformance validation tool Print ticket conformance validation tool PTConform.exePTConform.exe
Automated Rendering Verification tool Automated Rendering Verification tool LooksGood.exeLooksGood.exe
WDK Test ToolsWDK Test Tools
XPS Content Library for printingXPS Content Library for printingConformant XPS content from Conformant XPS content from diverse producersdiverse producers
Not conformant or invalid XPS contentNot conformant or invalid XPS content
Security/penetration testsSecurity/penetration testsCorrupted XPS contentCorrupted XPS content
Corrupted PrintTicketsCorrupted PrintTickets
DEVMODE CorruptorDEVMODE Corruptor
WDK Test ToolsWDK Test Tools
Print driver stressPrint driver stress
Windows Presentation Foundation (WPF) Windows Presentation Foundation (WPF) printing test toolsprinting test tools
WPF rendering testWPF rendering test
WPF stress testWPF stress test
2007 Office system content rendering test2007 Office system content rendering test
Other XPS content rendering testOther XPS content rendering test
XPSDrv Filter test daemonXPSDrv Filter test daemon
WDK Test ToolsWDK Test Tools
Functionality testsFunctionality testsDriver configuration testsDriver configuration tests
PrintTicket testPrintTicket test
GDL CheckerGDL Checker
Print Device CapabilitiesPrint Device Capabilities
DocumentProperties testDocumentProperties test
Driver or printer device rendering testsDriver or printer device rendering testsPGremlin and PGremlin2 rendering testsPGremlin and PGremlin2 rendering tests
Print Area testPrint Area test
Photo Print testPhoto Print test
Cancel Job testCancel Job test
Test Tools Summary Test Tools Summary
Easy to use test tools are available nowEasy to use test tools are available now
They cover a wide range of test areasThey cover a wide range of test areas
XPS and PrintTicket conformance tools XPS and PrintTicket conformance tools are critically importantare critically important
XPS Conformance XPS Conformance And isXPSAnd isXPS
Justin SloneJustin SloneTest Development EngineerTest Development EngineerDigital Documents Platform and SolutionsDigital Documents Platform and Solutions
XPS ConformanceXPS Conformance
XPS conformance enabled throughXPS conformance enabled throughStrict standard, strict test tools, Strict standard, strict test tools, strict implementationsstrict implementations
isXPS.exeisXPS.exe (codenamed (codenamed isReachisReach) is a ) is a strict test tool designed and developed strict test tool designed and developed by Microsoftby Microsoft
Assists in determining if an XPS Assists in determining if an XPS document conforms to the document conforms to the XPS specificationXPS specification
XPS Conformance AuthorityXPS Conformance Authority
In order of authorityIn order of authorityThe XML Paper SpecificationThe XML Paper Specification
The XPS conformance test provided The XPS conformance test provided by Microsoftby Microsoft
The WPF XPS ViewerThe WPF XPS Viewer
isXPSisXPS Overview Overview
Goals of isXPSGoals of isXPSVerify Open Packaging Conventions Verify Open Packaging Conventions (OPC) conformance(OPC) conformance
Verify XPS Document conformanceVerify XPS Document conformance
Provide detailed error informationProvide detailed error information
Requirements to run Requirements to run isXPS.exeisXPS.exe.NET 2.0.NET 2.0
WPFWPF
LegendLegend
Resource Parts – Resource Parts –
OPC Parts –OPC Parts –
XPS Parts –XPS Parts –
Conceptual Parts –Conceptual Parts –
Relationships –Relationships –
Markup References –Markup References –
1.fpage
Image_1.jpg
_rels/.rels
XPS Document FrameworkXPS Document Framework
Package Root
_rels/.relsDocThumb.jpg
_rels/FixDocSeq.fdseq.rels
Image_1.jpg Font_0.ttf
_rels/1.fpage.rels
Package Root
FixDocSeq.fdseq
FixDoc.fdoc
1.fpage
Conformance Checks Conformance Checks
Pre-validationPre-validationValidate font and Validate font and image partsimage parts
OPC validationOPC validationValidate relationship markupValidate relationship markup
Process package relationshipsProcess package relationshipsDigital SignaturesDigital Signatures
Core PropertiesCore Properties
ThumbnailsThumbnails
EtcEtc
_rels/.relsDocThumb.jpg
_rels/FixDocSeq.fdseq.rels
Image_1.jpg Font_0.ttf
_rels/1.fpage.rels
Package Root
FixDocSeq.fdseq
FixDoc.fdoc
1.fpage
Conformance ChecksConformance Checks
XPS validationXPS validationStart from Start from fixedrepresentationfixedrepresentation relationshiprelationship
Validate markup of FixDocSeqValidate markup of FixDocSeqFollow <DocumentReference> Follow <DocumentReference> to FixedDocsto FixedDocs
Validate markup of FixDocValidate markup of FixDocFollow <PageContent> Follow <PageContent> to FixedPagesto FixedPages
Validate markup of 1.fpageValidate markup of 1.fpageDiscover Resource PartsDiscover Resource Parts
FixDocSeq.fdseq
FixDoc.fdoc
1.fpage
_rels/.relsDocThumb.jpg
_rels/FixDocSeq.fdseq.rels
Image_1.jpg Font_0.ttf
_rels/1.fpage.rels
Package Root
Conformance ChecksConformance Checks
Markup referencesMarkup references Font referencesFont references
Image referencesImage references
ICC profile referencesICC profile references
Resource dictionariesResource dictionariesProcessing similar to a FixedPageProcessing similar to a FixedPage
Process relationships from Process relationships from FixedPage partFixedPage part
Confirm that there are matching Confirm that there are matching required-resourcerequired-resource relationships to relationships to all markup referenced partsall markup referenced parts
FixDocSeq.fdseq
FixDoc.fdoc
1.fpage
_rels/.relsDocThumb.jpg
_rels/FixDocSeq.fdseq.rels
Image_1.jpg Font_0.ttf
_rels/1.fpage.rels
Package Root
Most Common UsageMost Common Usage
Most Used SwitchesMost Used Switches-f=<-f=<FilePatternFilePattern> >
The file on which to perform the validationThe file on which to perform the validation
e.g. file.xps or *.xpse.g. file.xps or *.xps
/s/sApply Apply FilePatternFilePattern to all subdirectories to all subdirectories
-logger:<-logger:<LogTypeLogType> > The logger to use (File, Console, WTT)The logger to use (File, Console, WTT)
-logfile:<-logfile:<LogFileLogFile>>The log file to write to when using the File loggerThe log file to write to when using the File logger
Default logfile is “isXPSLog.txt”Default logfile is “isXPSLog.txt”
isXPS isXPS LogfileLogfile
+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
-End Test: Processing file: C:\Exercise_1.1.xps Result: Fail-End Test: isXPS Result: Fail*********Log Rollup************************************************TestName: isXPS PassRate: 81% Pass: 18 Warn: 0 Fail: 4 Block: 0*******************************************************************Result: Fail
Sample ErrorSample Error
Log RollupLog Rollup
isXPSisXPS Takeaway Takeaway
Use Use isXPS.exeisXPS.exe for easy OPC and XPS for easy OPC and XPS conformance validationconformance validation
Detailed error information helps quickly Detailed error information helps quickly isolate bugsisolate bugs
Visit the XPS Printing hands on labVisit the XPS Printing hands on labXPS Testing and Conformance labXPS Testing and Conformance lab
Find Find isXPS isXPS (named (named isReachisReach) in Beta 2 ) in Beta 2 WDK and SDKWDK and SDK
XPS Test StrategiesXPS Test Strategies
Jim ZuberJim ZuberXPS Test ArchitectXPS Test ArchitectQualityLogic, Inc.QualityLogic, Inc.
QualityLogic, Inc.QualityLogic, Inc.
De facto standard test tool provider to De facto standard test tool provider to printer industry for 20 yearsprinter industry for 20 years
Released XPS test suites to the industry Released XPS test suites to the industry in late 2005in late 2005
Provided XPS training to over 20 XPS Provided XPS training to over 20 XPS early adopter companiesearly adopter companies
Just completed a set of XPS analysis and Just completed a set of XPS analysis and debugging utilitiesdebugging utilities
TopicsTopics
XPS CharacteristicsXPS Characteristics
Keys to InteroperabilityKeys to Interoperability
Testing ChallengesTesting Challenges
XPS Consumer AnalysisXPS Consumer Analysis
XPS CharacteristicsXPS Characteristics
Standards basedStandards basedXML, JPG, TIFF, ICC, EtcXML, JPG, TIFF, ICC, Etc
Clear specificationsClear specificationsExample codeExample code
ClarificationsClarifications
Baseline referenceBaseline referenceXPS ViewerXPS Viewer
XPS CharacteristicsXPS Characteristics
A very efficient set of A very efficient set of drawing primitives drawing primitives
Paths can contain arcs, Paths can contain arcs, lines, and Bezier curveslines, and Bezier curves
Paths and Glyphs can Paths and Glyphs can be painted with brushesbe painted with brushes
Common properties Common properties control clipping, control clipping, transforms, and opacitytransforms, and opacity
XPS CharacteristicsXPS Characteristics
Simple syntaxSimple syntaxElements and attributesElements and attributes
Low complexityLow complexity
Human readableHuman readable
A very testable technology!A very testable technology!
Keys To XPS InteroperabilityKeys To XPS Interoperability
Clean XPS markup generated by Clean XPS markup generated by XPS producersXPS producers
IsXPSIsXPS
PTConformPTConform
Conformant XPS consumersConformant XPS consumersFunctional Test suites Functional Test suites
Comprehensive Test suites Comprehensive Test suites
Minimize specification ambiguitiesMinimize specification ambiguitiesXpsinfo @ microsoft.comXpsinfo @ microsoft.com
Keys To XPS InteroperabilityKeys To XPS Interoperability
Application compatibility testing of Application compatibility testing of XPS consumersXPS consumers
All print pathsAll print paths
Key applicationsKey applications
Diversity of producersDiversity of producers
Conversion programsConversion programs
Strict de facto standard XPS consumerStrict de facto standard XPS consumerWPF XPS ViewerWPF XPS Viewer
Practical arbiter of “is it right”Practical arbiter of “is it right”
XPS Testing ChallengesXPS Testing Challenges
Clarifications to specification still emergingClarifications to specification still emerging
No hardcopy reference targetNo hardcopy reference targetPage comparisonPage comparison
Practical implementation limitsPractical implementation limits
Few unique XPS producersFew unique XPS producersInteroperability testingInteroperability testing
Usage modelsUsage models
XPS Testing ChallengesXPS Testing Challenges
Interactions between XPS markup Interactions between XPS markup and PrintTicketsand PrintTickets
Complex scenarios with VisualBrushComplex scenarios with VisualBrush
New image file format New image file format WMPhotoWMPhoto
XPS analysisXPS analysisInterleaved filesInterleaved files
XPS Analysis ToolsXPS Analysis Tools
MicrosoftMicrosoftXPS ViewerXPS Viewer
IsXPSIsXPS
PTConformPTConform
XamlPadXamlPad
QualityLogicQualityLogicStatGenStatGen
PrintTicketerPrintTicketer
XPS Parts AssemblerXPS Parts Assembler
XPS Consumer AnalysisXPS Consumer Analysis
Identify the symptomsIdentify the symptomsIs it a crash or a visual anomaly?Is it a crash or a visual anomaly?
Do you get an error report?Do you get an error report?
Try viewing the file in the XPS ViewerTry viewing the file in the XPS ViewerDoes the same error occur?Does the same error occur?
Get a big picture viewGet a big picture viewUnzip – What parts are in the package?Unzip – What parts are in the package?
Statistics – Stream sequence and Statistics – Stream sequence and element usageelement usage
XPS Consumer AnalysisXPS Consumer Analysis
Schema ValidationSchema ValidationMicrosoft’s Microsoft’s isXPS isXPS program will quickly program will quickly validate the schema, as well as relationships validate the schema, as well as relationships and resource file integrityand resource file integrity
Test Code FragmentsTest Code FragmentsIf problem also occurs in XPS Viewer, cut If problem also occurs in XPS Viewer, cut and paste suspect markup into XamlPad to and paste suspect markup into XamlPad to isolate problemisolate problem
XPS Consumer AnalysisXPS Consumer Analysis
Problem occurs only in device under testProblem occurs only in device under testUse ZIP utility and XML Editor to modify the Use ZIP utility and XML Editor to modify the XPS markup in the containerXPS markup in the container
Reduce to smallest number of XPS elements Reduce to smallest number of XPS elements that reproduce problemthat reproduce problem
Suspect PrintTicketsSuspect PrintTicketsExtract PrintTicket part and run Extract PrintTicket part and run PTConformPTConform to find syntax problemsto find syntax problems
Use PrintTicket editor to modify PrintTicket Use PrintTicket editor to modify PrintTicket settings inside container to isolate problemssettings inside container to isolate problems
SummarySummary
XPS has the potential to quickly achieve a XPS has the potential to quickly achieve a high degree of interoperabilityhigh degree of interoperability
Tools are available NOW to start testing Tools are available NOW to start testing and debugging your XPS implementationsand debugging your XPS implementations
Call To ActionCall To Action
Familiarize yourself with XPS and PrintTicket Familiarize yourself with XPS and PrintTicket specifications and XPSDrv technology specifications and XPSDrv technology in particularin particularUse Microsoft test tools to validate your Use Microsoft test tools to validate your implementationsimplementationsBe ultra strict as far as XPS and PrintTicket Be ultra strict as far as XPS and PrintTicket conformance is concernedconformance is concernedTest for compatibility now!Test for compatibility now!
Test the GDI Print Path, XPS Print Path, and Test the GDI Print Path, XPS Print Path, and compatibility pathscompatibility pathsTest your company’s XPSDrv and Test your company’s XPSDrv and XPS-capable printersXPS-capable printersReport problems immediatelyReport problems immediately
Invest in testing – it pays out!Invest in testing – it pays out!
Call To ActionCall To Action
Understand your company logo goals and review new Understand your company logo goals and review new logo requirementslogo requirements
Basic and PremiumBasic and Premium
At WinHECAt WinHECPractice driver dev and testing skills in XPS Printing hands Practice driver dev and testing skills in XPS Printing hands on labson labs
Ask the Experts at lunch todayAsk the Experts at lunch today
Visit the Microsoft Pavilion to see XPS demos Visit the Microsoft Pavilion to see XPS demos
Attend related sessionsAttend related sessionsPRI050 Inside Printer Installation on Windows VistaPRI050 Inside Printer Installation on Windows Vista
PRI039 Using the Windows Color System in Device DriversPRI039 Using the Windows Color System in Device Drivers
PRI102 Using XPSDrv Print Drivers to Extend Windows PRI102 Using XPSDrv Print Drivers to Extend Windows Print FunctionalityPrint Functionality
PRI019 Developing XPSDrv Print DriversPRI019 Developing XPSDrv Print Drivers
PRI115 Windows Media Photo: A New Format for End-to-End PRI115 Windows Media Photo: A New Format for End-to-End Digital ImagingDigital Imaging
Additional ResourcesAdditional Resources
Web ResourcesWeb ResourcesApplication Verifier: Application Verifier: http://http://go.microsoft.com/fwlink/?LinkIdgo.microsoft.com/fwlink/?LinkId=52529=52529
XPS Portal XPS Portal http://www.microsoft.com/http://www.microsoft.com/xpsxpsLinks to relevant blogs, whitepapers, specs Links to relevant blogs, whitepapers, specs
WHDC Printing documents WHDC Printing documents http://www.microsoft.com/http://www.microsoft.com/whdc/device/print/default.mspxwhdc/device/print/default.mspx
Windows Digital Documents Platlform Team Newsletter Windows Digital Documents Platlform Team Newsletter https://profile.microsoft.com/RegSysProfileCenter/subscriptionwizard.aspx?wizidhttps://profile.microsoft.com/RegSysProfileCenter/subscriptionwizard.aspx?wizid=77d9786e-9500-40a4-ba20-a4c7504d83ca&lcid=1033=77d9786e-9500-40a4-ba20-a4c7504d83ca&lcid=1033
Technical adviceTechnical advice
WDK and SDKWDK and SDK
QualityLogic QualityLogic http://http://www.qualitylogic.comwww.qualitylogic.comWeb ResourcesWeb Resources
QualityLogic XPS Test Suites and Tools: QualityLogic XPS Test Suites and Tools: [email protected]@qualitylogic.com
QualityLogic XPS Training: QualityLogic XPS Training: http://http://www.qualitylogic.com/xps/training.htmlwww.qualitylogic.com/xps/training.html
E-mailE-mail
XPSinfo @ microsoft.com XPSinfo @ microsoft.com
Prninfo @ microsoft.comPrninfo @ microsoft.com
info @ qualitylogic.cominfo @ qualitylogic.com
© 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.