WPF Application Quality Guide
Download This Document: WPF_Application_Quality_Guide_CTP4_Final.zip
(文章太长,编辑后发布有问题,请下载后阅读吧)
WPF Application Quality Guide
目录
Introduction 4
Introduction 4
Editions of this Document 4
Suggested Roadmap 5
Getting Started 7
Introduction to Software Testing 7
The Testing Stack 8
Testing Resources 8
Introduction to the WPF Programming Stack 8
WPF Architecture 9
WPF Design Principles 9
Major Subsystems of WPF 10
General Development Process for a WPF Application 12
Resources for Best Practices for Creating WPF Applications 12
Test Methodology, Planning, and Strategies 13
Automated Testing 15
Data-Driven Testing 15
Overview 15
Methodology 18
Conclusion 20
UI Testing 20
Basic Guidelines for Making UI Available 20
Discovery of UI Elements 21
UI Events and Interaction 27
Visual Verification Testing 28
Media Testing 29
Verification of Animations and Other Transitions 31
Graphics and 3D Content Testing 37
API Testing and Unit Testing 37
Performance and Scalability Testing 37
Development Practices and References 37
Testing Practices 37
Security Testing 37
Best Practices for Developing Secure WPF Applications 38
Testing Practices 38
Threat Modeling 38
Globalization and Localization Testing 38
Basic Globalization and Localization Concepts 39
Best Practices for Globalizing WPF Applications 40
Creating Localizable UI Layouts in WPF 41
Approaches to Localizing WPF applications 43
Process Flow for BAML Localization 44
Additional Resources 48
Accessibility Testing 49
Basic Accessibility Concepts 49
Implementing WPF UI for Accessibility 49
Accessibility Testing Best Practices 51
Key Resources 53
Stability and Stress Testing 53
What is Stress and Reliability Testing? 54
Why Run Stress Tests? 54
Considerations For Stress Testing 54
Stress-Testing Principles 55
Test-Case Design 55
Stress-Testing Best Practices 57
Catching and Reporting Bugs 57
Stress-Test Metrics and Quality Tracking 60
Custom Control and Extensibility Testing 61
Scenario and Integration Testing 65
Manual Testing and Record and Play 66
Choosing Whether to Automate a Test 66
How to Write a Good Manual Test 66
Recording a Manual Test 67
Tools 70
TestApi 70
UI Automation Tools 70
Debugging Tools 71
Performance Profiling Tools 71
WPF Application Design and Development Tools 71
Other Useful Tools and Resources for WPF Developers and Testers 72
Resources 73
Acknowledgements 74
Appendix 75
A1. Building a WPF Application Test Suite by Using Visual Studio Team System 75
A2. Building a WPF Application Test Suite by Using NUnit Or XUnit 75
A3. WPF Data Binding and Debugging 75
A4. WPF Interoperability 75
A5. Considerations for WPF Browser Applications 76