Software Testing quiz 1
5 Levels of Testing
0-"There is no difference between testing and debugging" 1-The purpose of testing is to show that the software works 2-The purpose of testing is to show that the software doesn't work 3-The purpose of testing isn't to prove anything but to reduce the risk of not working to an acceptable value. Understand the quality of the software in terms of defects 4-Testing is not an act. It is a mental discipline that results in low-risk software without much testing effort.
Infection
After executing the location, the state of the program must be incorrect
Oracle
Any program, process, or data that provides the test designer with expected results of a test
Integration Testing
Assemble units together into subsystems and finally into systems,
In C++ and Java the unit is the ____
Class
Software inspections
Concerned with analysis of the static system representation to discover problems (static verification)e.g.,requirements documents, design diagrams, and program source code.
Model-based testing
Deriving tests from a model of the software (such as a UML diagram)
System Testing
Focuses on defects that arise at highest level of integration
In C the unit is the___
Function
stress test
How well will the application perform when many people are using it at once?
Purchased Test Suites
Run the program against a standardized test suite that has been previously created and validated. Programs like compilers, web browsers, and sql processors are often tested against such suites
Existing program
Run the program and compare the output to another version of the program
Kiddie oracle
Run the program and see if the output looks right.
Bottom-Up Testing
Test the leaves in the tree (procedures that make no calls), and move up to the root.
Top-Down Testing
Test the main procedure, then go down through procedures it calls, and so on
White box testing
Testing based on an analysis of the internal structure of the component or system.
Black box testing
Testing is based solely on requirements and specifications. Black box testing requires no knowledge of internal paths, structure, or implementation of software under test
Acceptance Testing
Testing which when completed successfully will result in the customer accepting the software and giving the money. Based on pass/fail "criteria"
Propagation
The infected state must propagate to cause some output of the program to be incorrect
Reachability
The location/locations in the program that contain the fault must be reached
characteristic of good test model
contains test cases that identify errors.
Software testing (dynamic)
executing an implementation of the software with test data and examining the actual outputs against expected results.
scenario testing is a ___ test
functional
SW Error
incorrect internal state that is the manifestation of some fault (human error)
SW Fault (Defect/Bug)
mechanical or algorithmic cause of failure
Gray Box Testing
peek into program long enough to understand how it's been implemented then we close the box and use knowledge to choose more effective black box tests
Testing theory(F)
program that operates on inputs and produces outputs
Testing theory(R)
range or set of all possible outputs
(RIP Model) 3 conditions that must be present for a failure to be observed:
reachability, infection, propagation
Regression test suites
run the program and compare output to result of same tests run against previous version of the program
Validated Data
run the program and compare results against a standard such as a table, formula, or other accepted definition of valid output
Testing theory(D)
set of all possible inputs
Cascading Test cases
test cases build on each other
Testing theory(T)
testing set