Shared Flashcard Set

Details

Software Quality Testing & Assurance Midterm Practice
Software testing and QA concepts
36
Computer Science
Undergraduate 3
02/28/2018

Additional Computer Science Flashcards

 


 

Cards

Term
three types of abnormal situations with using variables
Definition
Defined then defined again, undefined but referenced, defined but not referenced
Term
Integration testing
Definition
Software testing phase which involves combining software modules and testing them as a group in order to find errors in the interfaces between them.
Term
Integration testing approaches
Definition
Big bang, top-down, bottom-up, sandwich
Term
Software testing
Definition
Executing a program to find bugs
Term
Purposes of software testing
Definition
quality assurance, verification and validation, reliability estimates
Term
quality assurance
Definition
set of activities that results in better software product quality, degree to which a system, component, or process meets certain requirements, needs, or expectations
Term
Why is it important to test software?
Definition
Bugs are expensive, drive away customers, and sometimes have severe consequences, such as FirstEnergy Corporation's alarm system bug that caused power outages for about 50 million people
Term
Why does software have bugs?
Definition
People make mistakes
Term
V-model
Definition
grew out of Waterfall, and has a corresponding testing phase for each development stage
Term
V-model advantage
Definition
Simple and straightfoward
Term
V-model disadvantage
Definition
Rigid and inflexible, difficult to go back and change anything
Term
Verification
Definition
Figuring out whether a development phase's products meet the previous phase's requirements
Term
For the purpose of this class only, what question does verification ask?
Definition
Are we building the right product?
Term
Validation
Definition
Evaluating software at the end of development after verification to make sure the produce complies with its intended use
Term
walkthrough
Definition
review where the author leads the team through a manual or simulated product execution using predefined scenarios.
Term
inspection
Definition
step-by-step work product peer group review with each step checked against predetermine criteria
Term
Test case
Definition
specific data set for testing a program
Term
Consider a program that calculates the distance of a prowling lion from the center of Lynchburg, VA and determines whether or not the lion is prowling outside of Lynchburg's periphery. If d is the lion's distance from the town's center in miles, what is a test case representing a lion 45 miles from the town's center?
Definition
d=45
Term
White-box testing
Definition
type of testing that takes the program's internal structure into account
Term
black-box testing
Definition
type of testing that hides the program's internal structure from the testing process
Term
dynamic testing
Definition
executing program with real inputs
Term
static testing
Definition
conduct testing without executing program
Term
How is static testing different from dynamic testing? (besides the obvious)
Definition
it is difficult and expensive, and does not guarantee that your program will be correct. However, it can work well for small programs
Term
T/F: 15 modules is not very many for a software project
Definition
F
Term
software unit testing
Definition
testing focusing on the smallest code units
Term
unit testing procedures process
Definition
unit test's driver provides input data under the test, and reports the test result. Stubs emulate the units that the UUT calls.
Term
Boundary testing
Definition
Test cases are generated within the input domain's extremes. Focuses on testing data on boundaries, and on each side of the boundaries
Term
Consider a program that finds nay-saying lions' distances from the center of Lynchburg, VA.
Lynchburg's periphery is approximately 25 miles from the town's center. If we assume that the lions must always remain within 3 miles of the periphery, and must not stray from city limits, a lion less than 47 miles or more than 50 miles from the town's center is not prowling the periphery.
If we test lions with distances of 46, 48, 49, and 51 miles from the town's center, what is this an example of?
Definition
boundary testing
Term
Consider a program that finds nay-saying lions' distances from the center of Lynchburg, VA.
Lynchburg's periphery is approximately 25 miles from the town's center. If we assume that the lions must always remain within 3 miles of the periphery, and must not stray from city limits, a lion less than 47 miles or more than 50 miles from the town's center is not prowling the periphery.

We divide the data into the following partitions:
1. Invalid: <0 miles (Lions with a negative distance)
2. Invalid: >0 & < 47 miles (Lions inside Lynchburg, but not on the periphery)
3. Valid: >47 & <50 miles (Lions prowling the periphery)
4. Invalid: >50 & <12,450 miles (Lions outside city limits)
5. Invalid: >12,450 (Maximum possible distance on Earth's surface)

If we test distances of -10, 10, 49, 60, and 13,000, what is this an example of?
Definition
equivalence partitioning testing
Term
equivalence partitioning testing
Definition
black-box technique that divides a software unit's input data into equivalent data partitions, then derives test cases from those partitions
Term
How is equivalence partitioning testing different from boundary test?
Definition
It does not focus specifically on boundaries, it is applicable to a wider range of data, you can use it when testing each possible value is too time-consuming
Term
pairwise testing
Definition
combinatorial technique that involves testing every pair of software input parameters
Term
Consider a program that takes for input parameters, l, i, o, and n, representing the status of four different lions. Each parameter can have one of two values: 1 (prowling the periphery) or 0 (not prowling the periphery).

In this example, there will be 24 pairs (l0, i0), ..., (o1, n1).

A test case (l1, i1, o0, n0) captures six of these pairs.

What is this an example of?
Definition
pairwise testing
Term
By selecting appropriate test cases in pairwise testing, you can do what?
Definition
Exercise all input parameter pairs with a minimum number of test cases
Term
When is Unit Testing performed?
Definition
during development
Term
Who performs Unit Testing?
Definition
code developers
Supporting users have an ad free experience!