Week 2 Flashcards

1
Q

What kind of activity is requirements based testing?

Primarily a validation activity
Primarily both a verification and validation activity
Requirements based testing is neither a verification or validation activity.
Primarily a verification activity

A

Primarily a verification activity

Test cases are developed around a list of requirements to verify that each requirement is met in requirements based testing. This is a verification activity. There is no check as to whether there are the right requirements, which is a validation activity.

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

What kind of activity is scenario based testing?

Primarily a verification activity
Primarily a validation activity
Requirements based testing is neither a verification or validation activity.
Primarily both a verification and validation activity

A

Primarily both a verification and validation activity

In scenario based testing, requirements are developed by creating use cases, and then tests are developed around the use cases. Having use cases makes it easier to validate whether the right requirements are there for an activity and then verify that test cases exist for each requirement, similar to the packing example from the lecture

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

What is not a step in use case construction?

Identify how an actor uses the system to accomplish its functions
Identify how each use case can be tested
Detail each use case identifying each of its processing flows as a scenario
Identify the actors (determine the scope of the system)

A

Identify how each use case can be tested

Use case construction includes the actors, how the actors use the system and use cases for each behavior. Identifying how each use case can be tested comes afterwards when looking from a testing perspective.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
GQ - Question 1
Which of the following is not considered as an error in a state machine?
Dead State
Unreachable State
2 event from same state
2 same event from same state
A

2 event from same state

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

GQ - True or False? Every requirement must be tested by at least one test case.

A

True

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

GQ - True or False? Scenario based testing helps identify missing requirements.

A

True

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

GQ - A text field on a form only accepts numeric values in the range of 19 to 26. Please identify the invalid equivalence partitions.

A

<19 >26

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

GQ - A student can score a minimum of 20 points and a maximum of 50 points on an exam. What is a valid equivalence partition of scores?

A

20 to 50

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

GQ - True or False? Decision trees are a way to perform cause and effect analysis.

A

True

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

GQ - True or False? Decision trees and decision tables will always result in the same number of test cases.

A

False

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

GQ - Three input variables, product number, price, and ratings are used to determine whether a product belongs in the “People’s Choice” category. Ratings is dependent on price and product number is independent of the other inputs. What method can be used to test this problem?

Equi P
State Based
Equi P and Cause and Effect
Timeline

A

Equi P and Cause and Effect

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

GQ - True or False? A timeline can be used to test asynchronous events.

A

True

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

Question 1

True or False? Equivalence partitioning is a good technique to utilize when there are multiple independent inputs.

A

True
Equivalence partitioning must be applied with independent inputs. In the lecture example of abs(x), it is necessary to test a negative value, 0, and a positive value which are all independent inputs.

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

What is NOT an equivalence partitioning step?

For each input, identify a set of equivalence partitions and label them.

For each invalid equivalence partition, write a test case that covers one of the uncovered equivalence partitions.

Write test cases covering as many of the uncovered valid equivalence partitions as possible.

Write test cases covering as many of the uncovered invalid equivalence partitions as possible.

A

Write test cases covering as many of the uncovered invalid equivalence partitions as possible.
There must only be one test case that covers each uncovered invalid equivalence partition at a time. Since equivalence partitioning is used during black box testing, if there are multiple invalid partitions tested, it is not known which invalid partition caused the error.

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

What are a good set of equivalence partitions for a password testing program where a password must be between 6-8 characters?

  1. 6-8 characters; 2 < 6 characters
  2. < 6 character; 2. > 8 characters

6-8 characters

  1. 6-8; 2. < 6 characters; 3. > 8 characters
A
  1. 6-8; 2. < 6 characters; 3. > 8 characters
    These equivalence partitions test all the possible inputs there could be for a password: a valid password between 6-8 characters, an invalid password with < 6 characters, and an invalid password with > 8 characters.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

A valid student ID can only contain digits between and including 2 and 7. What are the correct boundary values that need to be tested?

1,2

2,7

1,8

1,2,7,8

A

1,2,7,8

17
Q

Question 2
True or False? Boundary value analysis requires selecting test cases that are only on or above the edges of the input and output equivalence partitions.

A

False

BV analysis requires selecting test cases that are on, above, and below the edges of the partitions.

18
Q

Given 2 input variables, age and height, an output of vitamins, and a function that computes the number of vitamins a person should take based on age and height, which method(s) can be used to test this example?

Neither cause effect analysis nor equivalence partitioning

Equivalence partitioning

Cause Effect Analysis

Both cause effect analysis and equivalence partitioning

A

Cause Effect Analysis
Cause effect analysis can be used when the inputs are dependent on each other. Equivalence partitioning is only used when inputs are independent of each other.

19
Q

Question 2
What is one way to reduce the number of test cases in a cause and effect decision table?

Write as many test cases as there are partitions

Write only valid test cases

Make assumptions about how the partitions are related

A

Make assumptions about how the partitions are related

20
Q

Does creating a timeline to test synchronous events help with verification or validation?

Verification

Validation

A

Validation

Adding in events in a timeline helps identify missing requirements, which is necessary for validation.

21
Q

True or False? A timeline corresponds to a set of use cases mapped against time.

A

False

Each use case requires its own timeline.

22
Q

True or False? The basic strategy of testing a state machine is to visit each state and test each transition.

A

True

Testing each state / event combination provides a minimal state machine cover.

23
Q

Given the state diagram below with start state “A” and end state “E”, which of the following is a test one would derive from the state testing tree?

6 2 1

1 5 8

3 5 8

1 5 7 8

A

1 5 8

24
Q

What is NOT considered to be an advantage of model based testing?

Modeling gives potential for automated test generation.

Modeling requires manual test case generation.

Modeling provides precision and reduces ambiguity.

Modeling allows for changes in behavior to be directly translated into test changes.

A

Modeling requires manual test case generation.

Modeling gives potential for automated test generation, and does not require manual test case generation.

25
Q

What is the correct order of steps for model based testing?

Select test generation criteria, create a system model, generate tests, execute tests

Create a system model, select test generation criteria, generate tests, execute tests

Generate tests, create a system model, select test generation criteria, execute tests

A

Create a system model, select test generation criteria, generate tests, execute tests

26
Q

State Machine must be inspected for -
Validation
Verification
Both

A

Validation

27
Q

Model based testing assists with program
Verification
Validation
Both

A

Verification