Thought on Effective Testing

             By Qingsong Yao
1. User Scenario driven testing
When writing test plan, separate what with How
  – First, only think about the user scenario
  – Then, think about how you to test the scenario
When write tests, separate what with how
  – First, write use scenario
  – Second, implement the test cases which test the
    scenario
User Scenario Example
• Scenario – Block of upgrade SQL Express during VS
  2010 Installation (Priority 0)
• Action:
   – When a use install VS 2010 on a AMD64 machine with SSE
     2005 install, existing SSE instance can’t upgrade SSE 2008
• Success criteria:
   – Make sure that Setup program detect existing SSE instance
     correctly.
   – Make sure that Setup program disable the upgrade/install
     of SSE correctly.
   – Make sure SSE is not upgraded if upgrade is not needed.
   – Existing SSE instance works after setup.
2. Understand the feature
Knowing:
  – how the feature will be implemented.
  – the risks in term of implementation.
  – the risks in term of the impact on customer.
Example of “Risk Factors and
        Mitigation strategies”
• We are testing product which is not shipped
  by SQL Group.
• Setup is sensitive to change, and easy to be
  broken.
• Dependence of SSE, such as MSI 4.5 is one of
  the main factors of causing setup failing.
• Huge Test Matrix
3. Define your Test Strategy
• Test Strategy
  – How to address the risk areas?
  – Manual Test v.s. Automation Test?
• Examples:
  – Align Test tasks with Dev tasks.
  – For larger dev check-ins, test with a private build
    before checking-in.
  – Encourage writing programming based tests
    instead of writing static Meta tests.
Example of Test Strategy
• Manual Testing during Improvement Phase
   – Avoid huge investigation of test automation
   – We define high-level user scenario Success criteria
     and China VAT team help us to verify
• Run test as a real customer to find usability issue.
   – Verify UI, setup option, and no. reboots
   – Verify localized strings
• For bug fix, we drive user scenario and test
  dimension from the nature of the fix
• Long term, will take advance of VS setup
  automation in SQL Lab
4. Define test patterns
• Test Types:
   – Recorded tests, Scripted tests or Data Driven tests, Declarative
     Tests
   – Model-based or static tests
• Design Patterns:
   – Layer Tests
   – Repository Pattern, Factory Patterns, Visitor pattern
• Test Dimensions:
   – Pair wise or all combination; Parameterized Tests
• Verification Pattern:
   – State Verification; Oracle based Verification; Custom Assertion
• Deal with Dependence:
   – Dependence Injection
   – Mock Object
From User Scenario to Test Case
Test Case Example
Test Case: Mismatch between SSE language with VS language
  if the language of installed SSE instance does not match
   with the localized SSE 2008, we should not provide options
   to install SSE.
Test Dimension
   – VS Language: ENU
   – SSE: SSE 2005, SSE 2008
   – SSE Language: JPN
Test Case:
  use pict tool to use generate 3 test cases
Verification:
• Verify that user can not choose SSE during VS Setup
• Verify that VS setup succeed without any error
Conclusion
1.   User Scenario driven testing
2.   Understand the Feature to Be Tested
3.   Define Test Strategy
4.   From User Scenario to Test Case
5.   Write good Tests
6.   Define measurable success critical
Reference: Test Strategy
• http://en.wikipedia.org/wiki/Test_strategy
• http://www.projectperfect.com.au/info_test_
  strategy.php
• http://www.satisfice.com/presentations/strat
  egy.pdf

More Related Content

PDF
Test plan
PPT
Test planning
PPTX
Test Plan Simplicity
PDF
Test plan document
DOC
Test plan
PDF
What is Test Plan? Edureka
PPTX
Test plan (1)
PPT
Test planning
Test plan
Test planning
Test Plan Simplicity
Test plan document
Test plan
What is Test Plan? Edureka
Test plan (1)
Test planning

What's hot (20)

PPTX
test plan
DOC
Test plan
PDF
Ieee829mtp
PDF
Test plan
DOC
03 software test-plan-template
PDF
Software Test Planning and Design
PPTX
Test plan presentation
PDF
Test Documentation Based On Ieee829 155261
DOC
Test plan
PDF
02 test planning
DOC
06 template test plan
PPTX
Test planning
PPTX
Testing strategies
PPTX
Fundamental test process
PPTX
How to create a 'Master Test Plan'
DOC
Test Plan Template
PPTX
Qa documentation pp
PDF
TestPlan for IIT website
DOCX
Paper review
PDF
Ieee 829 1998-a3
test plan
Test plan
Ieee829mtp
Test plan
03 software test-plan-template
Software Test Planning and Design
Test plan presentation
Test Documentation Based On Ieee829 155261
Test plan
02 test planning
06 template test plan
Test planning
Testing strategies
Fundamental test process
How to create a 'Master Test Plan'
Test Plan Template
Qa documentation pp
TestPlan for IIT website
Paper review
Ieee 829 1998-a3
Ad

Viewers also liked (20)

PPTX
English Language Learners and NCLB testing
PPT
Mattias Ratert - Incremental Scenario Testing
PDF
Scenario Testing and Sensitivity Analysis for 3-D Kinematic Models and Geophy...
PPT
Role+Of+Testing+In+Sdlc
PPT
DOC
14.2. курс лекций афу
PDF
Embedded software development using BDD
PPT
Testing and Test Construction
PPTX
Test Case Design
PPT
Test plan
PDF
Test Case, Use Case and Test Scenario
PPTX
Writing Test Cases 20110808
PPT
Qualities of a good test (1)
PPT
Characteristics of a good test
PPTX
Characteristics of a good test
PPT
Kinds of testing (2nd)
PPTX
Test construction edited
PPTX
Characteristics of a good test
PPT
stages of test construction
PPTX
Language Testing
English Language Learners and NCLB testing
Mattias Ratert - Incremental Scenario Testing
Scenario Testing and Sensitivity Analysis for 3-D Kinematic Models and Geophy...
Role+Of+Testing+In+Sdlc
14.2. курс лекций афу
Embedded software development using BDD
Testing and Test Construction
Test Case Design
Test plan
Test Case, Use Case and Test Scenario
Writing Test Cases 20110808
Qualities of a good test (1)
Characteristics of a good test
Characteristics of a good test
Kinds of testing (2nd)
Test construction edited
Characteristics of a good test
stages of test construction
Language Testing
Ad

Similar to Writing good test plan and writing good tests (20)

PPT
Manual testing visonia
PPSX
Test analysis & design good practices@TDT Iasi 17Oct2013
PPT
Test case development
PDF
Mt s11 test_design
PPT
Testing Types And Models
PPT
Software testing for biginners
PPTX
Software Testing interview - Q&A and tips
PPTX
Software testing introduction
PPT
QA process Presentation
PDF
YOU Don't Need No Stinking Test Cases? - XBOSoft Webinar
PPTX
So you think you can write a test case
PPTX
Generating Test Cases
PDF
MIT521 software testing (2012) v2
PDF
Test Design with Action-based Testing Methodology - Ngo Hoang Minh
PPSX
Things to keep in mind before starting a test plan
PDF
testplan software testing planing tests.pdf
PDF
test planning and test case test suite.pdf
PDF
Sqa, test scenarios and test cases
PPTX
unit 4.pptx very needful and important p
PPTX
Test cases
Manual testing visonia
Test analysis & design good practices@TDT Iasi 17Oct2013
Test case development
Mt s11 test_design
Testing Types And Models
Software testing for biginners
Software Testing interview - Q&A and tips
Software testing introduction
QA process Presentation
YOU Don't Need No Stinking Test Cases? - XBOSoft Webinar
So you think you can write a test case
Generating Test Cases
MIT521 software testing (2012) v2
Test Design with Action-based Testing Methodology - Ngo Hoang Minh
Things to keep in mind before starting a test plan
testplan software testing planing tests.pdf
test planning and test case test suite.pdf
Sqa, test scenarios and test cases
unit 4.pptx very needful and important p
Test cases

Recently uploaded (20)

PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
DOCX
Basics of Cloud Computing - Cloud Ecosystem
PPTX
Module 1 Introduction to Web Programming .pptx
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PDF
Flame analysis and combustion estimation using large language and vision assi...
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PPTX
MuleSoft-Compete-Deck for midddleware integrations
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PPTX
future_of_ai_comprehensive_20250822032121.pptx
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
Early detection and classification of bone marrow changes in lumbar vertebrae...
PDF
INTERSPEECH 2025 「Recent Advances and Future Directions in Voice Conversion」
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PDF
Auditboard EB SOX Playbook 2023 edition.
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
Basics of Cloud Computing - Cloud Ecosystem
Module 1 Introduction to Web Programming .pptx
Rapid Prototyping: A lecture on prototyping techniques for interface design
sustainability-14-14877-v2.pddhzftheheeeee
Convolutional neural network based encoder-decoder for efficient real-time ob...
Custom Battery Pack Design Considerations for Performance and Safety
Flame analysis and combustion estimation using large language and vision assi...
Taming the Chaos: How to Turn Unstructured Data into Decisions
MuleSoft-Compete-Deck for midddleware integrations
sbt 2.0: go big (Scala Days 2025 edition)
future_of_ai_comprehensive_20250822032121.pptx
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
Early detection and classification of bone marrow changes in lumbar vertebrae...
INTERSPEECH 2025 「Recent Advances and Future Directions in Voice Conversion」
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
Auditboard EB SOX Playbook 2023 edition.
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
NewMind AI Weekly Chronicles – August ’25 Week IV

Writing good test plan and writing good tests

  • 1. Thought on Effective Testing By Qingsong Yao
  • 2. 1. User Scenario driven testing When writing test plan, separate what with How – First, only think about the user scenario – Then, think about how you to test the scenario When write tests, separate what with how – First, write use scenario – Second, implement the test cases which test the scenario
  • 3. User Scenario Example • Scenario – Block of upgrade SQL Express during VS 2010 Installation (Priority 0) • Action: – When a use install VS 2010 on a AMD64 machine with SSE 2005 install, existing SSE instance can’t upgrade SSE 2008 • Success criteria: – Make sure that Setup program detect existing SSE instance correctly. – Make sure that Setup program disable the upgrade/install of SSE correctly. – Make sure SSE is not upgraded if upgrade is not needed. – Existing SSE instance works after setup.
  • 4. 2. Understand the feature Knowing: – how the feature will be implemented. – the risks in term of implementation. – the risks in term of the impact on customer.
  • 5. Example of “Risk Factors and Mitigation strategies” • We are testing product which is not shipped by SQL Group. • Setup is sensitive to change, and easy to be broken. • Dependence of SSE, such as MSI 4.5 is one of the main factors of causing setup failing. • Huge Test Matrix
  • 6. 3. Define your Test Strategy • Test Strategy – How to address the risk areas? – Manual Test v.s. Automation Test? • Examples: – Align Test tasks with Dev tasks. – For larger dev check-ins, test with a private build before checking-in. – Encourage writing programming based tests instead of writing static Meta tests.
  • 7. Example of Test Strategy • Manual Testing during Improvement Phase – Avoid huge investigation of test automation – We define high-level user scenario Success criteria and China VAT team help us to verify • Run test as a real customer to find usability issue. – Verify UI, setup option, and no. reboots – Verify localized strings • For bug fix, we drive user scenario and test dimension from the nature of the fix • Long term, will take advance of VS setup automation in SQL Lab
  • 8. 4. Define test patterns • Test Types: – Recorded tests, Scripted tests or Data Driven tests, Declarative Tests – Model-based or static tests • Design Patterns: – Layer Tests – Repository Pattern, Factory Patterns, Visitor pattern • Test Dimensions: – Pair wise or all combination; Parameterized Tests • Verification Pattern: – State Verification; Oracle based Verification; Custom Assertion • Deal with Dependence: – Dependence Injection – Mock Object
  • 9. From User Scenario to Test Case
  • 10. Test Case Example Test Case: Mismatch between SSE language with VS language if the language of installed SSE instance does not match with the localized SSE 2008, we should not provide options to install SSE. Test Dimension – VS Language: ENU – SSE: SSE 2005, SSE 2008 – SSE Language: JPN Test Case: use pict tool to use generate 3 test cases Verification: • Verify that user can not choose SSE during VS Setup • Verify that VS setup succeed without any error
  • 11. Conclusion 1. User Scenario driven testing 2. Understand the Feature to Be Tested 3. Define Test Strategy 4. From User Scenario to Test Case 5. Write good Tests 6. Define measurable success critical
  • 12. Reference: Test Strategy • http://en.wikipedia.org/wiki/Test_strategy • http://www.projectperfect.com.au/info_test_ strategy.php • http://www.satisfice.com/presentations/strat egy.pdf