0% found this document useful (0 votes)
72 views28 pages

Static Testing Essentials

Static testing involves manually reviewing software work products like requirements, design documents, and code without executing the software. There are two main categories of static test techniques: informal reviews and formal reviews. Formal reviews follow a structured six step process of planning, kick-off, preparation, review meeting, rework, and follow-up. The primary goal of static testing is to find defects early in the development process when they are cheaper to fix. Common types of defects found through static testing include deviations from standards and missing requirements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views28 pages

Static Testing Essentials

Static testing involves manually reviewing software work products like requirements, design documents, and code without executing the software. There are two main categories of static test techniques: informal reviews and formal reviews. Formal reviews follow a structured six step process of planning, kick-off, preparation, review meeting, rework, and follow-up. The primary goal of static testing is to find defects early in the development process when they are cheaper to fix. Common types of defects found through static testing include deviations from standards and missing requirements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

ISTQB Chapter-3

Static Testing
What is test design and test design technique
mean?
By design we mean to create a plan for how to implement an idea; and technique is a method or way for
performing a task. So, Test Design is creating a set of inputs for given software that will provide a set of
expected outputs. The idea is to ensure that the system is working good enough and it can be released
with as few problems as possible for the average user.

Broadly speaking there are two main categories of Test Design Techniques. They are:
1. Static Techniques : without running the software , document test or reading the code
2. Dynamic Techniques
What is a static test technique?
Static test techniques provide a great way to improve the quality and productivity of software
development. It includes the reviews and provides the overview of how they are conducted. The primary
objective of static testing is to improve the quality of software products by assisting engineers to
recognize and fix their own defects early in the software development process.
What is Static Testing
Static testing is the testing of the software work products manually, or with a set of tools, but they are
not executed.
What are the uses 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 cost most often relatively low.
● Development productivity is likely to increase because of the less rework effort.
● Static tests contribute to the increased awareness of quality issues
Types of the defects that are easier to find
during the static testing are:
● Deviation from standards
● Missing requirements
● Design defects
● Non-maintainable code and inconsistent interface specifications.
What is Informal reviews?
Informal reviews are applied many times during the early stages of the life cycle of the document. A two
person team can conduct an informal review. In later stages these reviews often involve more people and
a meeting. 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.
What is Formal review?
Formal reviews follow a formal process. It is well structured and regulated.
A formal review process consists of 6 main steps:
1. Planning
2. Kick-off
3. Preparation
4. Review meeting
5. Rework
6. Follow-up
What is Formal review?
Planning: The first phase of the formal review is the Planning phase. In this phase the review process
begins with a request for review by the author to the moderator (or inspection leader). A moderator has
to take care of the scheduling like date, time, place and invitation of the review. For the formal reviews
the moderator performs the entry check and also defines the formal exit criteria. The entry check is done
to ensure that the reviewer’s time is not wasted on a document that is not ready for review. After doing
the entry check if the document is found to have very little defects then it’s ready to go for the reviews.

So, the entry criteria are to check that whether the document is ready to enter the formal review process
or not.
What is Formal review?
Hence the entry criteria for any document to go for the reviews are:
1. The documents should not reveal a large number of major defects.
2. The documents to be reviewed should be with line numbers.
3. The documents should be cleaned up by running any automated checks that apply.
4. The author should feel confident about the quality of the document so that he can join the review
team with that document.
What is Formal review?
Once, the document clear the entry check the moderator and author decides that which part of the
document is to be reviewed. Since the human mind can understand only a limited set of pages at one time
so in a review the maximum size is between 10 and 20 pages. Hence checking the documents improves
the moderator ability to lead the meeting because it ensures the better understanding.

2. Kick-off: This kick-off meeting is an optional step in a review procedure. The goal of this step is to
give a short introduction on the objectives of the review and the documents to everyone in the meeting.
The relationships between the document under review and the other documents are also explained,
especially if the numbers of related documents are high. At customer sites, we have measured results up
to 70% more major defects found per page as a result of performing a kick-off,
What is Formal review?
3. Preparation: In this step the reviewers review the document individually using the related documents,
procedures, rules and checklists provided. Each participant while reviewing individually identifies the
defects, questions and comments according to their understanding of the document and role. After that
all issues are recorded using a logging form. The success factor for a thorough preparation is the number
of pages checked per hour called checking rate. Usually the checking rate is in the range of 5 to 10 pages
per hour.
What is Formal review?
4. Review meeting: The review meeting consists of three phases:
● Logging phase: In this phase the issues and the defects that have been identified during the
preparation step are logged page by page. The logging is basically done by the author or by a
scribe. Scribe is a separate person to do the logging and is especially useful for the formal review
types such as an inspection. Every defects and it’s severity should be logged in any of the three
severity classes given below:
● Critical:The defects will cause downstream damage.
● Major: The defects could cause a downstream damage.
● Minor: The defects are highly unlikely to cause the downstream damage.
What is Formal review?
During the logging phase the moderator focuses on logging as many defects as possible within a certain
time frame and tries to keep a good logging rate (number of defects logged per minute). In formal review
meeting the good logging rate should be between one and two defects logged per minute.

● Discussion phase: If any issue needs discussion then the item is logged and then handled in the
discussion phase. As chairman of the discussion meeting, the moderator takes care of the people
issues and prevents discussion from getting too personal and calls for a break to cool down the
heated discussion. The outcome of the discussions is documented for the future reference.
What is Formal review?
● Decision phase: At the end of the meeting a decision on the document under review has to be
made by the participants, sometimes based on formal exit criteria. Exit criteria are the average
number of critical and/or major defects found per page (for example no more than three
critical/major defects per page). If the number of defects found per page is more than a certain
level then the document must be reviewed again, after it has been reworked.
5. Rework: In this step if the number of defects found per page exceeds the certain level then the
document has to be reworked. Not every defect that is found leads to rework. It is the author’s
responsibility to judge whether the defect has to be fixed. If nothing can be done about an issue then at
least it should be indicated that the author has considered the issue.
What is Formal review?
6. Follow-up: In this step the moderator check to make sure that the author has taken action on all known
defects. If it is decided that all participants will check the updated documents then the moderator takes
care of the distribution and collects the feedback. It is the responsibility of the moderator to ensure that
the information is correct and stored for future analysis.
What are the roles and responsibilities
involved during a review?
During a review four types of participants take part. They are:
1. The moderator:
a. Also known as review leader
b. Performs entry check
c. Follow-up on the rework
d. Schedules the meeting
e. Coaches other team
f. Leads the possible discussion and stores the data that is collected
What are the roles and responsibilities
involved during a review?
2. The author:
a. Illuminate the unclear areas and understand the defects found
b. Basic goal should be to learn as much as possible with regard to improving the quality of
the document.
3. The scribe:
a. Scribe is a separate person to do the logging of the defects found during the review.
4. The reviewers:
a. Also known as checkers or inspectors
b. Check any material for defects, mostly prior to the meeting
c. The manager can also be involved in the review depending on his or her background.
What are the roles and responsibilities
involved during a review?
5. The managers:
a. Manager decides on the execution of reviews
b. Allocates time in project schedules and determines whether review process objectives
have been met.
What are the types of review?
The main review types that come under the static testing are mentioned below:
1. Walkthrough:
● It is not a formal process
● It is led by the authors
● Author guide the participants through the document according to his or her thought
process to achieve a common understanding and to gather feedback.
● Useful for the people if they are not from the software discipline, who are not used to or
cannot easily understand software development process.
● Is especially useful for higher level documents like requirement specification, etc.
What is static analysis?
Performed on requirement design or code without actually executing the software or before the
code is actually run.
● Goal of static analysis is to find the defects whether or not they may cause failure.
● Static analysis find defects rather than failures.
What are the types of review?
The goals of a walkthrough:
● To present the documents both within and outside the software discipline in order to
gather the information regarding the topic under documentation.
● To explain or do the knowledge transfer and evaluate the contents of the document
● To achieve a common understanding and to gather feedback.
● To examine and discuss the validity of the proposed solutions
2. Technical review:
● It is less formal review
● It is led by the trained moderator but can also be led by a technical expert
What are the types of review?
● It is often performed as a peer review without management participation
● Defects are found by the experts (such as architects, designers, key users) who focus on
● the content of the document.
● In practice, technical reviews vary from quite informal to very formal

The goals of the technical review are:


● To ensure that an early stage the technical concepts are used correctly
● To access the value of technical concepts and alternatives in the product
● To have consistency in the use and representation of technical concepts
● To inform participants about the technical content of the document
What are the types of review?
3. Inspection:
● It is the most formal review type
● It is led by the trained moderators
● During inspection the documents are prepared and checked thoroughly by the reviewers
before the meeting
● It involves peers to examine the product
● A separate preparation is carried out during which the product is examined and the defects are
found.
What are the types of review?
● The defects found are documented in a logging list or issue log
● A formal follow-up is carried out by the moderator applying exit criteria

The goals of inspection are:


● It helps the author to improve the quality of the document under inspection
● It removes defects efficiently and as early as possible
● It improve product quality
● It create common understanding by exchanging information
● It learn from defects found and prevent the occurrence of similar defects
What is Static analysis tools in software testing
Static analysis tools are generally used by developers as part of the development and component testing
process. The key aspect is that the code (or other artifact) is not executed or run but the tool itself is
executed, and the source code we are interested in is the input data to the tool.
● These tools are mostly used by developers.
● Static analysis tools are an extension of compiler technology – in fact some compilers do offer
static analysis features. It is worth checking what is available from existing compilers or
development environments before looking at purchasing a more sophisticated static analysis tool.
What is Static analysis tools in software testing
● Other than software code, static analysis can also be carried out on things like, static analysis of
requirements or static analysis of websites (for example, to assess for proper use of accessibility
tags or the following of HTML standards).

● Static analysis tools for code can help the developers to understand the structure of the code, and
can also be used to enforce coding standards.
What is Static analysis tools in software testing
Features or characteristics of static analysis tools are:
● To calculate metrics such as cyclomatic complexity or nesting levels (which can help to identify
where more testing may be needed due to increased risk).
● To enforce coding standards.
● To analyze structures and dependencies.
● Help in code understanding.
● To identify anomalies or defects in the code.

You might also like