SlideShare uma empresa Scribd logo
1 de 16
Software Testing Foundations #3
Static Testing
Nikita Knysh
nknysh@gmail.com
http://www.facebook.com/groups/istqb/
Agenda
• Reviews
• Static Analysis
Reviews in brief figures
• Cost of reviews is 10-15% of development budget
• Savings are about 14-25% (calculation includes
  review efforts).
• More than 70% of defects in documents can be
  found before they go to next work steps.
Review Objective and Types
Objective
• To decide if the review object has met the
  requirements and complies with the standards, as
  well as to find defects.

Major types of reviews:
• Reviews of tech products
• Project review aka Management review
Review Steps
•   Planning
•   Overview (Kick-off)
•   Preparation
•   Review Meeting (Examination)
•   Re-work
•   Follow-up
Review Roles
•   Manager
•   Moderator
•   Author
•   Reviewer (Inspector)
•   Recorder
Review Types
•   Walkthrough
•   Inspection
•   Technical review
•   Informal review
Review Type: Walkthrough
• Informal procedure where author presents
  document to reviewers (and chairs the meeting).
• Main focus is on meeting.
• Preparation is smallest among review types or
  omitted; follow-up is optional.
• Suitable for small teams (<=10 members). Can be
  used for checking ‘non-critical’ documents.
Review Type: Inspection
• Most formal review process – uses formal evaluation
  criteria.
• Checklists with formal inspection criteria (entry- and
  exit-criteria) are used.
• Focus: finding unclear points and possible defects,
  measuring document quality, improving quality of
  the product, development and inspection processes.
• Follow-up and re-inspection are formally regulated.
Review Type: Technical Review
• Focus: assessing document’s compliance with
  specification, fitness for its intended purpose and
  compliance to standards.
• Some of reviewers should not be project participants.
  Management does not participate.
• Based on only ‘official’ specs and specified review tasks.
• Most effort lies in the preparation work.
• Review meeting normally not attended by author.
• Consequences of review result are decided by
  management but not by review participants.
Review Type: Informal Review
• Follows general review procedure in a simplified way.
  Usually initiated by author.
• Is a kind of cross-read of one or more colleagues.
• Examples: pair programming, buddy testing, code
  swapping.
• Results should not be explicitly documented – a list
  of remarks or revised document is enough.
• Very common review type. Takes little effort.
Static Analysis
• Commonly, only program code can be static-analyzed,
  but sometimes there are also models (UML). Outputs in
  e.g. XML or HTML can be static-analyzed as well.
• Only makes sense with support of tools – documents
  must follow certain formal structure.
• Best practice is to perform it before review as it is
  automated and so cheaper to perform.
• Usually practiced by developers in component (by coding
  guidelines) and integration (by interface guidelines)
  testing.
Flaws Detected by Static Analysis
•   Syntax violation
•   Deviation from conventions and standards
•   Control flow anomalies
•   Data flow anomalies
Data Flow Analysis
Variables can be defined (d), referenced (r) and
undefined (u).

Anomalies:
• ur – undefined then read or used
• du – defined then gets invalid or undefined without
  use
• dd – defined twice without use of first value
Control Flow Analysis
• Cyclomatic (McCabe) number:
      c(G) = e – n + 2
      where e - graph edges,
      n - graph nodes.

• If c(G) > 10 then rework of program code needed.
• c(G) specifies number of independent paths in the
  program part.
• c(G) used to estimate testability & maintainability.
Thank you!

       http://www.facebook.com/groups/istqb/

Mais conteúdo relacionado

Destaque (7)

Mt s4 types
Mt s4 typesMt s4 types
Mt s4 types
 
Software Testing Tutorials - MindScripts Technologies, Pune
Software Testing Tutorials - MindScripts Technologies, PuneSoftware Testing Tutorials - MindScripts Technologies, Pune
Software Testing Tutorials - MindScripts Technologies, Pune
 
Mutation Testing
Mutation TestingMutation Testing
Mutation Testing
 
Software testing
Software testingSoftware testing
Software testing
 
Drive test learning
Drive test learningDrive test learning
Drive test learning
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
WCDMA Tems Parameters Investigation and Drive Testing
WCDMA Tems Parameters Investigation and Drive TestingWCDMA Tems Parameters Investigation and Drive Testing
WCDMA Tems Parameters Investigation and Drive Testing
 

Mais de Nikita Knysh

Fundamental Test Process New
Fundamental Test Process NewFundamental Test Process New
Fundamental Test Process New
Nikita Knysh
 
Software Testing Foundations Part 7 - Basics of Test Management
Software Testing Foundations Part 7 - Basics of Test ManagementSoftware Testing Foundations Part 7 - Basics of Test Management
Software Testing Foundations Part 7 - Basics of Test Management
Nikita Knysh
 
Software Testing Foundations Part 8 - Test Tools
Software Testing Foundations Part 8 - Test ToolsSoftware Testing Foundations Part 8 - Test Tools
Software Testing Foundations Part 8 - Test Tools
Nikita Knysh
 
Software Testing Foundations Part 5 - White Box Testing
Software Testing Foundations Part 5 - White Box TestingSoftware Testing Foundations Part 5 - White Box Testing
Software Testing Foundations Part 5 - White Box Testing
Nikita Knysh
 
Software Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box TestingSoftware Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box Testing
Nikita Knysh
 
Software Testing Foundations Part 6 - Intuitive and Experience-based testing
Software Testing Foundations Part 6 - Intuitive and Experience-based testingSoftware Testing Foundations Part 6 - Intuitive and Experience-based testing
Software Testing Foundations Part 6 - Intuitive and Experience-based testing
Nikita Knysh
 
Software Testing Foundations Part 2 - Testing in Software Lifecycle
Software Testing Foundations Part 2 - Testing in Software LifecycleSoftware Testing Foundations Part 2 - Testing in Software Lifecycle
Software Testing Foundations Part 2 - Testing in Software Lifecycle
Nikita Knysh
 
ACC presentation for QA Club Kiev
ACC presentation for QA Club KievACC presentation for QA Club Kiev
ACC presentation for QA Club Kiev
Nikita Knysh
 

Mais de Nikita Knysh (9)

Overview of test process improvement frameworks
Overview of test process improvement frameworksOverview of test process improvement frameworks
Overview of test process improvement frameworks
 
Fundamental Test Process New
Fundamental Test Process NewFundamental Test Process New
Fundamental Test Process New
 
Software Testing Foundations Part 7 - Basics of Test Management
Software Testing Foundations Part 7 - Basics of Test ManagementSoftware Testing Foundations Part 7 - Basics of Test Management
Software Testing Foundations Part 7 - Basics of Test Management
 
Software Testing Foundations Part 8 - Test Tools
Software Testing Foundations Part 8 - Test ToolsSoftware Testing Foundations Part 8 - Test Tools
Software Testing Foundations Part 8 - Test Tools
 
Software Testing Foundations Part 5 - White Box Testing
Software Testing Foundations Part 5 - White Box TestingSoftware Testing Foundations Part 5 - White Box Testing
Software Testing Foundations Part 5 - White Box Testing
 
Software Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box TestingSoftware Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box Testing
 
Software Testing Foundations Part 6 - Intuitive and Experience-based testing
Software Testing Foundations Part 6 - Intuitive and Experience-based testingSoftware Testing Foundations Part 6 - Intuitive and Experience-based testing
Software Testing Foundations Part 6 - Intuitive and Experience-based testing
 
Software Testing Foundations Part 2 - Testing in Software Lifecycle
Software Testing Foundations Part 2 - Testing in Software LifecycleSoftware Testing Foundations Part 2 - Testing in Software Lifecycle
Software Testing Foundations Part 2 - Testing in Software Lifecycle
 
ACC presentation for QA Club Kiev
ACC presentation for QA Club KievACC presentation for QA Club Kiev
ACC presentation for QA Club Kiev
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

Software Testing Foundations Part 3 - Static Testing

  • 1. Software Testing Foundations #3 Static Testing Nikita Knysh nknysh@gmail.com http://www.facebook.com/groups/istqb/
  • 3. Reviews in brief figures • Cost of reviews is 10-15% of development budget • Savings are about 14-25% (calculation includes review efforts). • More than 70% of defects in documents can be found before they go to next work steps.
  • 4. Review Objective and Types Objective • To decide if the review object has met the requirements and complies with the standards, as well as to find defects. Major types of reviews: • Reviews of tech products • Project review aka Management review
  • 5. Review Steps • Planning • Overview (Kick-off) • Preparation • Review Meeting (Examination) • Re-work • Follow-up
  • 6. Review Roles • Manager • Moderator • Author • Reviewer (Inspector) • Recorder
  • 7. Review Types • Walkthrough • Inspection • Technical review • Informal review
  • 8. Review Type: Walkthrough • Informal procedure where author presents document to reviewers (and chairs the meeting). • Main focus is on meeting. • Preparation is smallest among review types or omitted; follow-up is optional. • Suitable for small teams (<=10 members). Can be used for checking ‘non-critical’ documents.
  • 9. Review Type: Inspection • Most formal review process – uses formal evaluation criteria. • Checklists with formal inspection criteria (entry- and exit-criteria) are used. • Focus: finding unclear points and possible defects, measuring document quality, improving quality of the product, development and inspection processes. • Follow-up and re-inspection are formally regulated.
  • 10. Review Type: Technical Review • Focus: assessing document’s compliance with specification, fitness for its intended purpose and compliance to standards. • Some of reviewers should not be project participants. Management does not participate. • Based on only ‘official’ specs and specified review tasks. • Most effort lies in the preparation work. • Review meeting normally not attended by author. • Consequences of review result are decided by management but not by review participants.
  • 11. Review Type: Informal Review • Follows general review procedure in a simplified way. Usually initiated by author. • Is a kind of cross-read of one or more colleagues. • Examples: pair programming, buddy testing, code swapping. • Results should not be explicitly documented – a list of remarks or revised document is enough. • Very common review type. Takes little effort.
  • 12. Static Analysis • Commonly, only program code can be static-analyzed, but sometimes there are also models (UML). Outputs in e.g. XML or HTML can be static-analyzed as well. • Only makes sense with support of tools – documents must follow certain formal structure. • Best practice is to perform it before review as it is automated and so cheaper to perform. • Usually practiced by developers in component (by coding guidelines) and integration (by interface guidelines) testing.
  • 13. Flaws Detected by Static Analysis • Syntax violation • Deviation from conventions and standards • Control flow anomalies • Data flow anomalies
  • 14. Data Flow Analysis Variables can be defined (d), referenced (r) and undefined (u). Anomalies: • ur – undefined then read or used • du – defined then gets invalid or undefined without use • dd – defined twice without use of first value
  • 15. Control Flow Analysis • Cyclomatic (McCabe) number: c(G) = e – n + 2 where e - graph edges, n - graph nodes. • If c(G) > 10 then rework of program code needed. • c(G) specifies number of independent paths in the program part. • c(G) used to estimate testability & maintainability.
  • 16. Thank you! http://www.facebook.com/groups/istqb/