3.1 Static testing basics Flashcards

1
Q

What is static testing?

A

the software under test does not need to be executed.
Code, process specification, system architecture specification or other work products are evaluated
through manual examination (e.g., reviews) or with the help of a tool (e.g., static analysis)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are test objectives of static testing?

A

improving quality, detecting defects and assessing characteristics like readability, completeness,
correctness, testability and consistency. Static testing can be applied for both verification and validation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Who collaborates during example mappings, collaborative user story writing, and backlog refinement sessions?

A

Testers, business representatives, and developers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the purpose of example mappings, collaborative user story writing, and backlog refinement sessions?

A

To ensure that user stories and related work products meet defined criteria, such as the Definition of Ready.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What techniques can be applied to ensure user stories are complete and understandable?

A

review techniques

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What roles do testers play in the user story process?

A

testers, explore, challenge and help improve proposed user storied by asking the right questions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What can static analysis identify prior to dynamic testing?

A

problems in the code
Evaluating maintainability and security

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why does static analysis often require less effort than dynamic testing

A

because it does not require test cases and typically uses tools

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Into what frameworks is static analysis often incorporated?

A

continuous integration (CI) frameworks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are some examples of static analysis tools?

A

Spelling checkers and readability tools.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What types of work products can be examined using static testing?

A

Requirement specification documents
source code
test plans
test cases
product backlog items
test charters
project documentation
contracts
models.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Can any work product be the subject of a review?

A

Yes, any work product that can be read and understood can be the subject of a review.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is necessary for a work product to be suitable for static analysis?

A

The work product needs a structure against which it can be checked, such as models, code, or text with a formal syntax.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are examples of work products not appropriate for static testing?

A

Work products that are difficult to interpret by human beings and that should not be analyzed by tools, such as 3rd party executable code due to legal reasons.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What principle does static testing fulfill by detecting defects in the earliest phases of the SDLC?

A

The principle of early testing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What types of defects can static testing identify that dynamic testing cannot?

A

Unreachable code, design patterns not implemented as desired, and defects in non-executable work products.

17
Q

What benefits does static testing provide in terms of work product quality and stakeholder confidence?

A

It allows evaluation of work product quality and builds confidence by verifying that documented requirements describe actual needs.

18
Q

How does static testing contribute to stakeholder understanding and communication?

A

By being performed early in the SDLC, it creates a shared understanding and improves communication among stakeholders.

19
Q

Why is it recommended to involve a wide variety of stakeholders in static testing?

A

To ensure a shared understanding and improved communication among the involved stakeholders.

20
Q

Despite the cost, why are reviews considered beneficial in the long run?

A

Because they reduce overall project costs by decreasing the time and effort needed to fix defects later in the project.

21
Q

How does static analysis compare to dynamic testing in terms of efficiency and development effort?

A

Static analysis detects code defects more efficiently, resulting in fewer code defects and a lower overall development effort.

22
Q

How do static testing and dynamic testing practices complement each other?

A

They have similar objectives, such as supporting defect detection in work products, but each can find certain types of defects the other cannot.

23
Q

What is a key difference between static testing and dynamic testing in terms of defect detection?

A

Static testing finds defects directly, while dynamic testing causes failures from which the associated defects are determined through subsequent analysis.

24
Q

Which type of testing is more effective for detecting defects on rarely executed paths in code?

A

Static testing.

25
Q

To what types of work products can static testing be applied?

A

Non-executable work products.

26
Q

To what types of work products can dynamic testing be applied?

A

Executable work products.

27
Q

What quality characteristics can static testing measure?

A

Quality characteristics not dependent on executing code, such as maintainability.

28
Q

What quality characteristics can dynamic testing measure?

A

Quality characteristics dependent on executing code, such as performance efficiency.

29
Q

Name types of defect in requirements that is easier and/or cheaper to find through static testing.

A

Inconsistencies
ambiguities
contradictions
omissions
inaccuracies
duplications

30
Q

Name design defects that is easier and/or cheaper to find through static testing.

A

Inefficient database structures, poor modularization

31
Q

Name types of coding defect that is easier and/or cheaper to find through static testing.

A

Variables with undefined values, undeclared variables, unreachable or duplicated code, excessive code complexity.

32
Q

What kind of deviation from standards is easier and/or cheaper to find through static testing?

A

Lack of adherence to naming conventions in coding standards.

33
Q

What kind of incorrect interface specification is easier and/or cheaper to find through static testing?

A

Mismatched number, type, or order of parameters.

34
Q

Name a type of security vulnerability that is easier and/or cheaper to find through static testing.

A

Buffer overflows

35
Q

What kind of gaps or inaccuracies in test basis coverage are easier and/or cheaper to find through static testing?

A

Missing tests for an acceptance criterion.