Software Engineering: Testing Flashcards

1
Q

Test Case

A

Evaluates a single explicit behaviour in a program

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

Test Suite

A

Grouped Test Cases

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

White box testing

A

Developing tests based on the code

usually written by developers who have access to the code

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

Black box testing

A

Deleping tests based on the specifications and api signitures

usually written by stakeholders who do not have direct access to the code

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

Test cases should:

A

Be Fast
Be Reliable
Isolate defects
simulate users

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

Different kinds to tests?

A

Unit tests
integration tests
System tests
Acceptance tests

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

TDD process Red, Green, Refactor

A
  1. Implementation that Fails
  2. Implementation that Passes
  3. Refactor and Extend
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Coverage

A

Measures the perportion of the sytem being tested

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

Two main kinds of coverage

A

Flow independent

Flow dependent

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

Flow independent coverage

A

Block
line
statement

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

Flow dependent coverage

A

Branch
Path
MCC

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

Coverage guided testing iteration

A
  1. Identify code
  2. Design test case
  3. Write and execute test
  4. Repeat
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How many test cases should we write?

A

Till we have 100% line coverage, then tll we have 100%, branch coverage and then 100% path coverage

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

How to perform white box testing?

A

Coverage based tesing

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

How to perform black box testing?

A

Exhausting every possible state of the required inputs

or through input class partitioning and output class partition

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

What is boundery value analysis

A

Testing with valid and invalid values near the boundaries

17
Q

Four phase test

A
  1. Setup
  2. run test
  3. assertion
  4. teardown