Week 2 Flashcards
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
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.
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
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
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)
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.
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
2 event from same state
GQ - True or False? Every requirement must be tested by at least one test case.
True
GQ - True or False? Scenario based testing helps identify missing requirements.
True
GQ - A text field on a form only accepts numeric values in the range of 19 to 26. Please identify the invalid equivalence partitions.
<19 >26
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?
20 to 50
GQ - True or False? Decision trees are a way to perform cause and effect analysis.
True
GQ - True or False? Decision trees and decision tables will always result in the same number of test cases.
False
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
Equi P and Cause and Effect
GQ - True or False? A timeline can be used to test asynchronous events.
True
Question 1
True or False? Equivalence partitioning is a good technique to utilize when there are multiple independent inputs.
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.
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.
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.
What are a good set of equivalence partitions for a password testing program where a password must be between 6-8 characters?
- 6-8 characters; 2 < 6 characters
- < 6 character; 2. > 8 characters
6-8 characters
- 6-8; 2. < 6 characters; 3. > 8 characters
- 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.