SlideShare uma empresa Scribd logo
1 de 23
Click to add Title
Static Testing
e-Infochips Institute of Training Research and Academics Limited
Prepared By:-
Dharita Chokshi
Outlines
• What is Static Testing
• Participants in Static Testing
• Static Testing Techniques
• Advantages of Static Testing
• Disadvantages of Static Testing
• Static v/s Dynamic Testing
• Tools for Static Testing
What is Static Testing?
• Static testing is a software testing method that
involves examination of program's code and its
associated documentation but does not require
the program to be executed.
• Also called as Dry-Run Testing.
• Requires programmers to manually read their
own code to find any errors. Hence named ‘static’.
• Static testing is a stage of White Box Testing.
What is Static Testing?
• Main objective of this testing is to improve the quality
of software products by finding errors in early stages
of the development cycle.
• Most static testing techniques can be used to ‘test’ any
form of document including source code, design
documents and models, functional specifications and
requirement specifications.
Participants in Static Testing
During a review four types of participants take part. They
are:
1. Moderator
2. Author
3. Scribe
4. Reviewer
5. Manager
Participants in Static Testing
The moderator
• Also known as review leader
• Performs entry check
• Follow-up on the rework
• Schedules the meeting
• Coaches other team
• Leads the possible discussion and stores the data that is
collected
Participants in Static Testing
The author
• Illuminate the unclear areas and understand the defects
found
• Basic goal should be to learn as much as possible with
regard to improving the quality of the document.
The scribe
• Scribe is a separate person to do the logging of the
defects found during the review.
Participants in Static Testing
The reviewers
• Also known as checkers or inspectors
• Check any material for defects, mostly prior to the
meeting
• The manager can also be involved in the review
depending on his or her background.
The managers
• Manager decides on the execution of reviews
• Allocates time in project schedules and determines
whether review process objectives have been met
Static Testing Techniques
• Informal Reviews
• Formal Reviews
• Technical Reviews
• Walk Through
• Inspection Process
• Static Code Review
Informal Review
• Doesn't follow any process to find errors in the
document, you just review the document and give
informal comments on it.
• Applied many times during the early stages of the life
cycle of the document.
• A two person team can conduct an informal review and
in later stages more people are involved.
• The goal is to keep the author and to improve the quality
of the document.
• The most important thing to keep in mind about the
informal reviews is that they are not documented.
Formal Review
Formal reviews follow a formal process. It is well structured
and regulated (Controlled). A formal review process
consists of six main steps:
1. Planning
2. Kick-off
3. Preparation
4. Review meeting
5. Rework
6. Follow-up
Technical Review
• A team consisting of your peers, review the technical
specification of the software product and checks whether
it is suitable for the project.
• They try to find any discrepancies in the specifications
and standards followed.
• This review concentrates mainly on the technical
document related to the software such as Test Strategy,
Test Plan and requirement specification documents.
Walkthrough
• The author of the work product explains the product to
his team.
• Participants can ask questions if any.
• Meeting is led by the author.
• Scribe makes note of review comments
Inspection
• The main purpose is to find defects and meeting is led
by trained moderator.
• This review is a formal type of review where it follows
strict process to find the defects.
• Reviewers have checklist to review the work products .
• They record the defect and inform the participants to
rectify those errors.
Static Code Review
• This is systematic review of the software source code
without executing the code.
• It checks the syntax of the code, coding standards, code
optimization, etc.
• This is also termed as white box testing.
• This review can be done at any point during
development.
Advantages of Static Testing
• Since static testing can start early in the life cycle so
early feedback on quality issues can be established.
• As the defects are getting detected at an early stage so
the rework (Revise and rewrite) cost most often relatively
low.
• Development productivity is likely to increase because of
the less rework effort.
Disadvantages of Static Testing
• Time consuming as conducted manually.
• Does not find vulnerabilities introduced in runtime
environment.
• Limited trainee personnel to thoroughly conduct static
code analysis.
Static v/s Dynamic Testing
Static v/s Dynamic Testing
Static Testing Dynamic Testing
Testing is done without executing
the program
Testing is done by executing the
program
This testing does verification
process
Dynamic testing does validation
process
It is about prevention of defects It is about finding and fixing the
defects
Gives assessment of code and
documentation
Gives bugs/bottlenecks in the
software system.
Involves checklist and process to
be followed
Involves test cases for execution
Performed before compilation Performed after compilation
Static v/s Dynamic Testing
Static Testing Dynamic Testing
Covers the structural and statement
coverage testing
Covers the executable file of the
code
Cost of finding defects and fixing is
less
Cost of finding and fixing defects is
high
Return on investment will be high
as this process is involved at early
stage
Return on investment will be low as
this process is involved after the
development phase
More reviews comments are highly
recommended for good quality
More defects are highly
recommended for good quality.
Requires loads of meetings Comparatively requires lesser
meetings
Tools for Static Testing
• Checkstyle
• FindBugs
• IntelliJ IDEA
• Jarchitect
• Jtest
• LDRA Testbed
• PMD
• SemmleCode
• Sonargraph
• Soot
• Squale
• SonarQube
• SourceMeter
• ThreadSafe
Jtest – Static Testing Tool
Thank you

Mais conteúdo relacionado

Mais procurados

Types of Software Testing | Edureka
Types of Software Testing | EdurekaTypes of Software Testing | Edureka
Types of Software Testing | EdurekaEdureka!
 
Basic Guide to Manual Testing
Basic Guide to Manual TestingBasic Guide to Manual Testing
Basic Guide to Manual TestingHiral Gosani
 
TESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPTTESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPTsuhasreddy1
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assuranceAman Adhikari
 
Principles of Software testing
Principles of Software testingPrinciples of Software testing
Principles of Software testingMd Mamunur Rashid
 
Software Testing Life Cycle
Software Testing Life CycleSoftware Testing Life Cycle
Software Testing Life CycleUdayakumar Sree
 
Test plan presentation
Test plan presentationTest plan presentation
Test plan presentationPeter Lebedevv
 
What is Test Plan? Edureka
What is Test Plan? EdurekaWhat is Test Plan? Edureka
What is Test Plan? EdurekaEdureka!
 
Software Testing Technique in Software Engineering
Software Testing Technique in Software EngineeringSoftware Testing Technique in Software Engineering
Software Testing Technique in Software EngineeringIsmail Hussain
 
Test design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniquesTest design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniquesKhuong Nguyen
 
An Introduction to Unit Testing
An Introduction to Unit TestingAn Introduction to Unit Testing
An Introduction to Unit TestingJoe Tremblay
 
Types of software testing
Types of software testingTypes of software testing
Types of software testingPrachi Sasankar
 

Mais procurados (20)

Software Testing or Quality Assurance
Software Testing or Quality AssuranceSoftware Testing or Quality Assurance
Software Testing or Quality Assurance
 
Types of Software Testing | Edureka
Types of Software Testing | EdurekaTypes of Software Testing | Edureka
Types of Software Testing | Edureka
 
Basic Guide to Manual Testing
Basic Guide to Manual TestingBasic Guide to Manual Testing
Basic Guide to Manual Testing
 
Stlc ppt
Stlc pptStlc ppt
Stlc ppt
 
TESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPTTESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPT
 
Software testing
Software testing Software testing
Software testing
 
Unit testing
Unit testing Unit testing
Unit testing
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 
Principles of Software testing
Principles of Software testingPrinciples of Software testing
Principles of Software testing
 
Software Testing Life Cycle
Software Testing Life CycleSoftware Testing Life Cycle
Software Testing Life Cycle
 
Test plan presentation
Test plan presentationTest plan presentation
Test plan presentation
 
Test case development
Test case developmentTest case development
Test case development
 
Testing methodology
Testing methodologyTesting methodology
Testing methodology
 
Software testing
Software testingSoftware testing
Software testing
 
What is Test Plan? Edureka
What is Test Plan? EdurekaWhat is Test Plan? Edureka
What is Test Plan? Edureka
 
Software Testing Technique in Software Engineering
Software Testing Technique in Software EngineeringSoftware Testing Technique in Software Engineering
Software Testing Technique in Software Engineering
 
Test design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniquesTest design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniques
 
SOFTWARE TESTING
SOFTWARE TESTINGSOFTWARE TESTING
SOFTWARE TESTING
 
An Introduction to Unit Testing
An Introduction to Unit TestingAn Introduction to Unit Testing
An Introduction to Unit Testing
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
 

Semelhante a Static Testing

03. static techniques
03. static techniques03. static techniques
03. static techniquesTricia Karina
 
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_28-02-2022_sta...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_28-02-2022_sta...WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_28-02-2022_sta...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_28-02-2022_sta...madhurpatidar2
 
Software testing-and-analysis
Software testing-and-analysisSoftware testing-and-analysis
Software testing-and-analysisWBUTTUTORIALS
 
Software Testing Life Cycle Unit-3
Software Testing Life Cycle Unit-3Software Testing Life Cycle Unit-3
Software Testing Life Cycle Unit-3Raj vardhan
 
Unit3 software review control software
Unit3 software review control softwareUnit3 software review control software
Unit3 software review control softwareReetesh Gupta
 
Static techniques
Static techniquesStatic techniques
Static techniqueschayo rona
 
unit-2_20-july-2018 (1).pptx
unit-2_20-july-2018 (1).pptxunit-2_20-july-2018 (1).pptx
unit-2_20-july-2018 (1).pptxPriyaFulpagare1
 
Presentasi static techniques
Presentasi static techniquesPresentasi static techniques
Presentasi static techniquesEgi Ilham Elnusa
 
SENG202-v-and-v-modeling_121810.pptx
SENG202-v-and-v-modeling_121810.pptxSENG202-v-and-v-modeling_121810.pptx
SENG202-v-and-v-modeling_121810.pptxMinsasWorld
 
Introduction to Artificial Intelligence Definition of Artificial Intelligenc...
Introduction to Artificial Intelligence  Definition of Artificial Intelligenc...Introduction to Artificial Intelligence  Definition of Artificial Intelligenc...
Introduction to Artificial Intelligence Definition of Artificial Intelligenc...tecaviw979
 

Semelhante a Static Testing (20)

CTFL Module 03
CTFL Module 03CTFL Module 03
CTFL Module 03
 
03. static techniques
03. static techniques03. static techniques
03. static techniques
 
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_28-02-2022_sta...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_28-02-2022_sta...WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_28-02-2022_sta...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_28-02-2022_sta...
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing-and-analysis
Software testing-and-analysisSoftware testing-and-analysis
Software testing-and-analysis
 
Software Testing Life Cycle Unit-3
Software Testing Life Cycle Unit-3Software Testing Life Cycle Unit-3
Software Testing Life Cycle Unit-3
 
Unit3 software review control software
Unit3 software review control softwareUnit3 software review control software
Unit3 software review control software
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
Bab 3
Bab 3Bab 3
Bab 3
 
Static techniques
Static techniquesStatic techniques
Static techniques
 
Learn software testing
Learn software testingLearn software testing
Learn software testing
 
unit-2_20-july-2018 (1).pptx
unit-2_20-july-2018 (1).pptxunit-2_20-july-2018 (1).pptx
unit-2_20-july-2018 (1).pptx
 
Marjuni.
Marjuni.Marjuni.
Marjuni.
 
Presentasi static techniques
Presentasi static techniquesPresentasi static techniques
Presentasi static techniques
 
SENG202-v-and-v-modeling_121810.pptx
SENG202-v-and-v-modeling_121810.pptxSENG202-v-and-v-modeling_121810.pptx
SENG202-v-and-v-modeling_121810.pptx
 
Introduction to Artificial Intelligence Definition of Artificial Intelligenc...
Introduction to Artificial Intelligence  Definition of Artificial Intelligenc...Introduction to Artificial Intelligence  Definition of Artificial Intelligenc...
Introduction to Artificial Intelligence Definition of Artificial Intelligenc...
 
Software Testing 4/5
Software Testing 4/5Software Testing 4/5
Software Testing 4/5
 
3.static techniques
3.static techniques3.static techniques
3.static techniques
 
Software testing
Software testingSoftware testing
Software testing
 
Static techniques
Static techniquesStatic techniques
Static techniques
 

Último

CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxPurva Nikam
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 

Último (20)

CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 

Static Testing

  • 1. Click to add Title Static Testing e-Infochips Institute of Training Research and Academics Limited Prepared By:- Dharita Chokshi
  • 2. Outlines • What is Static Testing • Participants in Static Testing • Static Testing Techniques • Advantages of Static Testing • Disadvantages of Static Testing • Static v/s Dynamic Testing • Tools for Static Testing
  • 3. What is Static Testing? • Static testing is a software testing method that involves examination of program's code and its associated documentation but does not require the program to be executed. • Also called as Dry-Run Testing. • Requires programmers to manually read their own code to find any errors. Hence named ‘static’. • Static testing is a stage of White Box Testing.
  • 4. What is Static Testing? • Main objective of this testing is to improve the quality of software products by finding errors in early stages of the development cycle. • Most static testing techniques can be used to ‘test’ any form of document including source code, design documents and models, functional specifications and requirement specifications.
  • 5. Participants in Static Testing During a review four types of participants take part. They are: 1. Moderator 2. Author 3. Scribe 4. Reviewer 5. Manager
  • 6. Participants in Static Testing The moderator • Also known as review leader • Performs entry check • Follow-up on the rework • Schedules the meeting • Coaches other team • Leads the possible discussion and stores the data that is collected
  • 7. Participants in Static Testing The author • Illuminate the unclear areas and understand the defects found • Basic goal should be to learn as much as possible with regard to improving the quality of the document. The scribe • Scribe is a separate person to do the logging of the defects found during the review.
  • 8. Participants in Static Testing The reviewers • Also known as checkers or inspectors • Check any material for defects, mostly prior to the meeting • The manager can also be involved in the review depending on his or her background. The managers • Manager decides on the execution of reviews • Allocates time in project schedules and determines whether review process objectives have been met
  • 9. Static Testing Techniques • Informal Reviews • Formal Reviews • Technical Reviews • Walk Through • Inspection Process • Static Code Review
  • 10. Informal Review • Doesn't follow any process to find errors in the document, you just review the document and give informal comments on it. • Applied many times during the early stages of the life cycle of the document. • A two person team can conduct an informal review and in later stages more people are involved. • The goal is to keep the author and to improve the quality of the document. • The most important thing to keep in mind about the informal reviews is that they are not documented.
  • 11. Formal Review Formal reviews follow a formal process. It is well structured and regulated (Controlled). A formal review process consists of six main steps: 1. Planning 2. Kick-off 3. Preparation 4. Review meeting 5. Rework 6. Follow-up
  • 12. Technical Review • A team consisting of your peers, review the technical specification of the software product and checks whether it is suitable for the project. • They try to find any discrepancies in the specifications and standards followed. • This review concentrates mainly on the technical document related to the software such as Test Strategy, Test Plan and requirement specification documents.
  • 13. Walkthrough • The author of the work product explains the product to his team. • Participants can ask questions if any. • Meeting is led by the author. • Scribe makes note of review comments
  • 14. Inspection • The main purpose is to find defects and meeting is led by trained moderator. • This review is a formal type of review where it follows strict process to find the defects. • Reviewers have checklist to review the work products . • They record the defect and inform the participants to rectify those errors.
  • 15. Static Code Review • This is systematic review of the software source code without executing the code. • It checks the syntax of the code, coding standards, code optimization, etc. • This is also termed as white box testing. • This review can be done at any point during development.
  • 16. Advantages of Static Testing • Since static testing can start early in the life cycle so early feedback on quality issues can be established. • As the defects are getting detected at an early stage so the rework (Revise and rewrite) cost most often relatively low. • Development productivity is likely to increase because of the less rework effort.
  • 17. Disadvantages of Static Testing • Time consuming as conducted manually. • Does not find vulnerabilities introduced in runtime environment. • Limited trainee personnel to thoroughly conduct static code analysis.
  • 19. Static v/s Dynamic Testing Static Testing Dynamic Testing Testing is done without executing the program Testing is done by executing the program This testing does verification process Dynamic testing does validation process It is about prevention of defects It is about finding and fixing the defects Gives assessment of code and documentation Gives bugs/bottlenecks in the software system. Involves checklist and process to be followed Involves test cases for execution Performed before compilation Performed after compilation
  • 20. Static v/s Dynamic Testing Static Testing Dynamic Testing Covers the structural and statement coverage testing Covers the executable file of the code Cost of finding defects and fixing is less Cost of finding and fixing defects is high Return on investment will be high as this process is involved at early stage Return on investment will be low as this process is involved after the development phase More reviews comments are highly recommended for good quality More defects are highly recommended for good quality. Requires loads of meetings Comparatively requires lesser meetings
  • 21. Tools for Static Testing • Checkstyle • FindBugs • IntelliJ IDEA • Jarchitect • Jtest • LDRA Testbed • PMD • SemmleCode • Sonargraph • Soot • Squale • SonarQube • SourceMeter • ThreadSafe
  • 22. Jtest – Static Testing Tool

Notas do Editor

  1. 1
  2. Verification and Validation are two measures used to check that the software product meets the requirements specifications. Static testing involves verification whereas dynamic testing involves validation. Together they help improve software quality.