Chapter 4 - Test Analysis and Design Flashcards

1
Q

Describe Black-Box test techniques ?

A

(also known as specification-based techniques) are based on an analysis of the specified behavior of the test object without reference to its internal structure. Therefore, the test cases are independent of how the software is implemented. If the implementation changes, but the required behavior stays the same, then the test cases are still useful.
Commonly used Black-box Test Techniques:
- Equivalence Partitioning
- Boundary Value Analysis
- Decision Table Testing
- State Transition Testing

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

Describe White-box test techniques ?

A

(also known as structure-based techniques) are based on an analysis of the test object’s internal structure and processing. As the test cases are dependent on how the software is designed, they can only be created after the design or implementation of the test object.
code-related white-box techniques:
- Statement testing
- Branch testing

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

Describe Experience-based test techniques ?

A

They effectively use the knowledge and experience of testers for the design and implementation of test cases. The effectiveness of these techniques depends heavily on the tester’s skills.
- can detect defects that may have been missed using the black-box and white box techniques.

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

Commonly used Black-box Test Techniques ?
(K3)

A
  • Equivalence Partitioning
  • Boundary Value Analysis
  • Decision Table Testing
  • State Transition Testing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Equivalence Partitioning (EP) (K3)

A

It divides data into partitions.
If a test case, that tests one value from an equivalence partition, detects a defect, this defect should detected by test cases that test any other value from the same partition. Therefore, one test for each partition is sufficient.

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

Boundary Value Analysis (BVA) (K3)

A

It’s a technique based on exercising the boundaries of equivalence partitions. Therefore, BVA can only be used for ordered partitions.

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

Decision Table Testing ? (K3)

A

Decision tables are used for testing the implementation of system requirements that specify how different combinations of conditions result in different outcomes. They are an effective way of recording complex logic, such as business rules.

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

State Transition Testing ? (K3)

A

A state transition diagram models the behavior of a system by showing its possible states and valid state transitions.
A transition is initiated by an event, which may be additionally qualified by a guard condition.

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

Code-related white-box test techniques?

A

Because of their popularity and simplicity we will focus on these two :
- Statement testing
- Branch testing

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

Statement Testing and Statement Coverage ?

A

A white-box test technique;
In statement testing, the coverage items are executable statements. The aim is to design test cases that exercise statements in the code until an acceptable level of coverage is achieved.
Coverage is measured as the number of statements exercised by the test cases divided by the total number of executable statements in code, and is expressed as a percentage.
(Coverage TC/Executable statements)*100%

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

Branch Testing and Branch Coverage?

A

A white-box test technique.
A branch is a transfer of control between two nodes in the control flow graph, which shows the possible sequences in which source code statements are executed in the test object. Each transfer of control can be either unconditional (straight-line code) or conditional (decision outcome)

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

What is the value of White-box testing ?

A

The entire software implementation is taken in account during testing, which facilitates defect detection even when the software specification is vague, outdated or incomplete.
Weakness : If the software does not implement one or more requirements, white-box testing may not detect the resulting defects of omission.
Can be used in static testing.

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

Commonly used Experience-based Test Techniques ?

A
  • Error guessing
  • Exploratory testing
  • Checklist-based testing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Collaborative User Story Writing - What is a User Story ?

A

A user story represents a feature that will be valuable to either a user or purchaser of a system or software.

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

Most common format for a user story is ?

A

The most common format for a user story is “As a [role], I want [goal to be accomplished], so that I can
[resulting business value for the role]”, followed by the acceptance criteria.

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

User stories have three critical aspects, called together the “3 C’s”:

A
  • Card – the medium describing a user story (e.g., an index card, an entry in an electronic board)
  • Conversation – explains how the software will be used (can be documented or verbal)
  • Confirmation – the acceptance criteria
17
Q

Acceptance criteria for a User Story ?

A

Acceptance criteria for a user story are the conditions that an implementation of the user story must meet
to be accepted by stakeholders. From this perspective, acceptance criteria may be viewed as the test conditions that should be exercised by the tests. Acceptance criteria are usually a result of the Conversation.

18
Q

What are Acceptance Criteria used for ?

A
  • Define the scope of the user story
  • Reach consensus among the stakeholders
  • Describe both positive and negative scenarios
  • Serve as a basis for the user story acceptance testing
  • Allow accurate planning and estimation
19
Q

Two most common ways to write acceptance criteria for a user story ?

A
  • Scenario-oriented (e.g., Given/When/Then format used in BDD)
  • Rule-oriented (e.g., bullet point verification list, or tabulated form of input-output mapping)
20
Q

Acceptance Test-driven Development (ATDD)

A

ATDD is a test-first approach.
Test cases are created prior to implementing the user
story. The test cases are created by team members with different perspectives, e.g., customers,
developers, and testers. Test cases may be executed manually or automated.