CH 4 Software Test Analysis

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/138

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:59 PM on 6/2/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

139 Terms

1
New cards

Test Analysis

The phase where the test basis is analyzed to identify test conditions.

2
New cards

Test Basis

Any project document used as the basis for testing (requirements, user stories, specifications, etc.).

3
New cards

Test Oracle

A source used to determine expected results, such as requirements, SMEs, or existing systems.

4
New cards

Test Condition

A testable aspect of a component or system identified as a basis for testing.

5
New cards

Given-When-Then Format

A structured way of writing test conditions and test cases where Given = Preconditions, When = Inputs/Actions, and Then = Expected Results/Postconditions.

6
New cards

Test Design

The phase where test conditions are transformed into test cases.

7
New cards

Test Case

A set of preconditions, inputs, actions, expected results, and postconditions developed from test conditions.

8
New cards

Preconditions

Conditions that must exist before a test can be executed.

9
New cards

Inputs

Data entered into the system during testing.

10
New cards

Actions

Operations performed during a test.

11
New cards

Expected Results

The outcomes that should occur after processing inputs.

12
New cards

Postconditions

Conditions that exist after a test has been completed.

13
New cards

Test Implementation

The phase where test procedures are created from test cases.

14
New cards

Test Procedure

A sequence of test cases and associated actions executed in a specific order.

15
New cards

Traceability

The ability to link requirements, test conditions, test cases, and test procedures together.

16
New cards

Purpose of Traceability

Supports impact analysis when requirements change, tracks coverage, improves reporting, and helps maintain test artifacts.

17
New cards

Purpose of Test Techniques

Reduce the number of tests needed, improve coverage, standardize testing, and increase efficiency.

18
New cards

Three Categories of Test Techniques

Black Box Testing, White Box Testing, and Experience-Based Testing.

19
New cards

Black Box Testing

A specification-based testing technique that evaluates system behavior without examining internal structure.

20
New cards

Behavioral Testing

Another term for black box testing because it focuses on system behavior.

21
New cards

Characteristics of Black Box Testing

Tests inputs and outputs, is independent of code structure, and verifies functionality and some non-functional requirements.

22
New cards

White Box Testing

A structure-based testing technique that evaluates internal structure and code coverage.

23
New cards

Structure-Based Testing

Another name for white box testing because it focuses on how a system is built.

24
New cards

Purpose of White Box Testing

Measures coverage of internal structure, often through code coverage.

25
New cards

Limitation of White Box Testing

Does not determine whether the system is fit for purpose.

26
New cards

Experience-Based Testing

Testing that relies on tester knowledge, intuition, and previous experience.

27
New cards

Purpose of Experience-Based Testing

Find defects missed by other techniques and support testing when time is limited.

28
New cards

Characteristics of Experience-Based Testing

Supplementary technique usually performed after black box and white box testing.

29
New cards

Equivalence Partitioning (EP)

A black box test technique that divides data into groups (partitions) expected to behave similarly.

30
New cards

Partition (Equivalence Partition)

A group of values expected to be processed in the same way.

31
New cards

Valid Partition

A group of acceptable input values.

32
New cards

Invalid Partition

A group of unacceptable input values that should be rejected.

33
New cards

Key Principle of Equivalence Partitioning

One representative value is selected from each partition.

34
New cards

Benefits of Equivalence Partitioning

Reduces test cases, provides measurable coverage, and avoids redundant testing.

35
New cards

Coverage in Equivalence Partitioning

Partitions tested divided by total partitions.

36
New cards

Each Choice Coverage

A coverage technique where each partition is tested at least once.

37
New cards

Purpose of Each Choice Coverage

Achieve coverage with the minimum number of test cases.

38
New cards

Error Masking

A situation where one defect hides another defect.

39
New cards

Preventing Error Masking

Test each invalid partition separately whenever possible.

40
New cards

Input Partition

A partition based on input values entered into the system.

41
New cards

Output Partition

A partition based on expected system outputs.

42
New cards

Test Analysis Creates

Test Conditions.

43
New cards

Test Design Creates

Test Cases.

44
New cards

Test Implementation Creates

Test Procedures.

45
New cards

Black Box Testing Focuses On

Behavior and expected outputs.

46
New cards

White Box Testing Focuses On

Internal structure and coverage.

47
New cards

Experience-Based Testing Focuses On

Tester knowledge and intuition.

48
New cards

Goal of Equivalence Partitioning

Reduce tests by grouping similar values.

49
New cards

Why Avoid Multiple Invalid Inputs in One EP Test?

To prevent error masking.

50
New cards

Review Culture

A people-related success factor where reviews focus on learning, quality improvement, and helping the author identify defects rather than assigning blame.

51
New cards
Statement Coverage
White box testing technique that measures the percentage of executable statements (lines of code) that have been executed by test cases.
52
New cards
Branch Coverage
White box testing technique that measures whether every possible decision outcome (true and false) has been executed.
53
New cards
Decision Coverage
Another name for branch coverage because it focuses on testing all outcomes of decisions.
54
New cards
Nested IF Statement
An IF statement contained inside another IF statement.
55
New cards
Statement Coverage vs Branch Coverage
Branch coverage is stronger because it tests both true and false outcomes of decisions, while statement coverage only ensures executable statements run.
56
New cards
Branch
A path connecting two points in a control flow diagram, often representing a decision outcome.
57
New cards
Loop Structure
A programming structure that repeats execution of code while a condition remains true.
58
New cards
WHILE Loop
A loop that continues executing as long as its condition evaluates to true.
59
New cards
SELECT CASE Statement
A programming structure used to select one action from multiple possible conditions, often replacing multiple IF/ELSEIF statements.
60
New cards
Path Coverage
White box testing technique that tests every possible path through a program.
61
New cards
Path Coverage Complexity
The number of required test cases grows exponentially as more decisions are added.
62
New cards
White Box Testing Hierarchy
Path coverage subsumes branch coverage, and branch coverage subsumes statement coverage.
63
New cards
Subsumes
Includes all test cases required by a lower-level coverage technique and potentially additional tests.
64
New cards
Why Use Statement Coverage?
It requires fewer test cases and less effort than branch coverage.
65
New cards
Risk of Statement Coverage
It may miss defects because not all decision outcomes are tested.
66
New cards
Advantage of Branch Coverage
Provides greater confidence in code quality and can detect more defects.
67
New cards
Control Flow Analysis
Static analysis technique that reviews code structure to identify possible execution paths without running the code.
68
New cards
Static Testing
Testing activities that examine work products without executing the software.
69
New cards
Dynamic Testing
Testing that involves executing software and comparing actual results with expected results.
70
New cards
Experience-Based Testing
Testing that relies on the tester's knowledge, intuition, skills, and past experience to design tests.
71
New cards
Purpose of Experience-Based Testing
Supplements systematic testing techniques by identifying additional test cases based on experience.
72
New cards
Reasons to Use Experience-Based Testing
Lack of detailed documentation, high-risk areas, historical defects, unusual value combinations, or inexperienced developers.
73
New cards
Three Experience-Based Test Techniques
Error guessing, exploratory testing, and checklist-based testing.
74
New cards
Error Guessing
Technique that uses knowledge of previous defects and experience to predict likely problem areas.
75
New cards
Examples of Error Guessing
Leaving mandatory fields blank, entering invalid dates, using maximum values, and entering letters in numeric fields.
76
New cards
Advantage of Error Guessing
Can uncover defects not found through systematic testing.
77
New cards
Disadvantage of Error Guessing
Heavily dependent on tester experience.
78
New cards
Fault Attack
Structured form of error guessing where testers identify possible failures and create tests to expose them.
79
New cards
Fault Attack Workshop
Collaborative session where multiple testers brainstorm possible defects and attack scenarios.
80
New cards
Exploratory Testing
Simultaneous learning, test design, and test execution based on exploration of the software.
81
New cards
When Exploratory Testing Is Useful
Limited time, poor documentation, usability testing, or investigating defects.
82
New cards
Advantage of Exploratory Testing
Experienced testers can quickly find significant defects.
83
New cards
Disadvantage of Exploratory Testing
Difficult to measure coverage and reproduce defects if notes are poor.
84
New cards
Heuristic Evaluation
Exploratory testing focused on evaluating usability.
85
New cards
Session-Based Testing
Structured exploratory testing performed during a defined time-box using a specific charter.
86
New cards
Session
An uninterrupted period of exploratory testing.
87
New cards
Time-Box
A fixed amount of time allocated to a testing session.
88
New cards
Charter
A documented objective or focus area for exploratory testing.
89
New cards
Debrief
Review meeting after a session to discuss findings and test results.
90
New cards
Exploratory Testing vs Ad Hoc Testing
Exploratory testing is focused and structured around a charter; ad hoc testing is unstructured.
91
New cards
Checklist-Based Testing
Experience-based technique that uses predefined lists of items or questions to guide testing.
92
New cards
Purpose of Checklists
Ensure consistency and standardization of testing activities.
93
New cards
Advantages of Checklist-Based Testing
Consistent quality assessment, repeatability, and easier reviews.
94
New cards
Disadvantages of Checklist-Based Testing
Testers may only test listed items and overlook other defects.
95
New cards
Possible Error Guessing Test
Leave username and password fields blank.
96
New cards
Boundary Value Test Example
Enter a username longer than the maximum allowed length.
97
New cards
Decision Table Test Example
Test combinations of valid and invalid usernames and passwords.
98
New cards
State Transition Test Example
Verify transitions between login screen and main menu after successful login.
99
New cards
SQL Injection Example
Entering malicious SQL code to bypass authentication.
100
New cards
Rule 1
Functional testing should be the first testing priority.