Software Testing Flashcards

1
Q

what is the prepose of testing?

A

1- to show that a program does what it is suppose to do
2- discover program defects

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

When you test software, you execute a program using …. WHAT?

A

artificial data

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

in program testing You check the results of the test run for errors, anomalies or information about the program’s (functional OR non-functional) attributes?

A

non-functional

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

T/F in program testing it Can reveal the presence of errors NOT their absence.

A

T

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

Testing is part of a more GENERAL …………… and …………..process

A

verification and validation

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

Testing is part of a more general verification and validation process, which also includes ……….. …………. Techniques

A

static validation.

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

Program testing goals are:

A
  • to show the developer and customer that the software meets requirements
  • identify cases where the software behaves incorrectly, undesirably , not to its specification
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

for which software (custom / generic) is that there should be at least one test for every requirement in the requirements document.

A

Custom Software

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

for which software (custom / generic) is that there should be tests for all of the system features, plus combinations of these features, that will be incorporated in the product release.

A

Generic software

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

DEF is concerned with rooting out undesirable system behavior:

A

Defect testing

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

what is the first goal in program testing to….. WHAT?

A

validation testing

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

(defect or validation) testing expect the system to perform correctly using a given set of test cases that reflect the system’s expected use?

A

validation testing

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

(defect or validation) testing The test cases are designed to expose defects?

A

defect testing

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

the test cases in (defect or validation) testing can be deliberately obscure and need not reflect how the system is normally used?

A

defect

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

in validation testing:
You expect the system to perform correctly using a given set of …….. …….. that reflect the system’s expected use

A

test cases

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

why are you giving a set of test cases in validation testing?

A

to reflect the system’s expected use.

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

(defect or validation) testing
Demonstrates to the developer and customer that the software meets requirements.

A

validation

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

(defect or validation) testing
A successful test shows the system works as intended.

A

validation

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

(defect or validation) testing
Identifies faults where behavior is incorrect or deviates from the specification.

A

defect

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

(defect or validation) testing
Identifies faults where behavior is incorrect or deviates from the specification.

A

defect

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

in (Verification vs validation) we ask “Are we building the product right”. ?

A

verfication

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

(Verification vs validation)
The software should conform to its specification.

A

verification

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

in (Verification vs validation) we ask
“Are we building the right product”?

A

validation

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

Verification vs validation
The software should do what the user really requires.

A

validation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
a .........test [in defect testing] is a test that makes the system perform incorrectly and so exposes a defect in the system.
Successful
26
DEF Concerned with analysis of the static system representation to discover problems:
Software inspections
27
Software inspections May be supplement by .......... .................. and ....... ...............
tool-based document and code analysis.
28
DEF Concerned with exercising and observing product behavior:
Software testing
29
Software (inspections or testing) is called static verification?
Inspection
30
Software (inspections or testing) is called dynamic verification?
testing
31
DEF These involve people examining the source representation with the aim of discovering anomalies and defects:
Software inspections
32
T/F Software Inspections not require execution of a system so may be used before implementation.
T
33
They have been shown to be an effective technique for discovering program errors.????
Software inspections
34
During (متى؟), errors can mask (hide) other errors
testing
35
Advantages of inspections: (3)
- Prevent hidden errors through static analysis, avoiding error interactions. - Can inspect incomplete systems without needing costly test setups. - Identify defects and evaluate broader qualities like compliance, portability, and maintainability.
36
in inspection If a program is incomplete, then you need to develop ................ ................to test the parts that are available.
test harnesses
37
T/F :Inspections and testing are complementary and not opposing verification techniques.
T
38
T/F: Inspections and testing Both should be used during the V & V process.
T
39
DEF: can check conformance with a specification but not conformance with the customer’s real requirements:
inspections
40
DEF CANNOT check non-functional characteristics such as performance, usability, etc:
inspections
41
name the three stages of testimg:
- Development testing - Release testing - User testing
42
which testing stage is "where the system is tested during development to discover bugs and defects." ?
Development testing
43
which testing stage is "where a separate testing team test a complete version of the system before it is released to users."?
Release testing
44
which testing stage is "where users or potential users of a system test the system in their own environment."
user testing
45
DEF includes all testing activities that are carried out by the **team developing the system.**
development testing
46
what are the three kind of testing in development testing?
unit, component, system testing
47
which development testing part is "where individual program units or object classes are tested."
unit testing
48
Unit testing should focus on testing the functionality of what?
object or methods
49
which development testing part is "where several individual units are integrated to create composite components"
component testing
50
Component testing should focus on testing what?
component interfaces.
51
which development testing part is ", where some or all of the components in a system are integrated and the system is tested as a whole"
System testing
52
System testing should focus on testing What?
component interactions
53
DEF the process of testing individual components in isolation:
unit testing
54
Unit testing is a (defect or validation) testing process????
DEFECT
55
Units in Unit testing can be: (3)
- Functions or methods. - Object classes with attributes and methods. - Composite components with defined interfaces.
56
unit testing should be (automated or manual)?
automated (why?)so that tests are run and checked without manual intervention.
57
In automated unit testing, you make use of WHAT?
test automation framework like: JUnit (why?) to write and run your program tests.
58
What do unit testing frameworks provide?
Generic test classes to create specific test cases
59
How do unit testing frameworks report test results?
through a (GUI)
60
what are the automated test components?
- A setup part - A call part - An assertion part
61
which automated testing component iswhere you initialize the system with the test case, namely the inputs and expected outputs?
setup
62
which automated testing component is where you call the object or method to be tested.
call
63
which automated testing component is where you compare the result of the call with the expected result?
assertion
64
what does the assertion part compare in automated testing?
the result of the call with the expected result.
65
in the assertion part of automation testing what happens If the assertion is true?
the test is successful
66
in the assertion part of automation testing what happens If the assertion is false?
test failed
67
what should the unit test cases do?(2)
- Show the component works as expected. - Reveal any defects in the component.
68
what are the two types of unit testing?
- Test normal operations to ensure expected behavior. - Test abnormal inputs to catch and handle common problems.
69
what are two types of testing strategies?
- partition testing - guideline-based testing
70
in the second type of unit testing what kind of inputs should we use?
abnormal inputs
71
why should we use abnormal inputs in unit test cases?
to find common problems, ensuring they are handled properly without crashing the component.
72
which testing strategy is where you identify groups of inputs that have common characteristics and should be processed in the same way?
partition testing
73
T/F in partition testing You should choose tests from within each of these groups.
T
74
which testing strategy is where you use testing guidelines to choose test cases?
Guideline-based testing
75
In guideline-based testing, guidelines are based on .......... ................ of common programming .............during component development.
previous experience errors
76
DEF Input data and output results often fall into different classes where all members of a class are related.
partition testing
77
what are the classes in partition testing called?
equivalence partition or domain
78
In partition testing, how should test cases be selected?
they should be chosen from each partition.
79
which testing strategy Tests software with sequences which have only a single value?
Testing guidelines (sequences)
80
T/F in testing guidelines it Uses sequences of different sizes in different tests.
T
81
why do we need to derive tests in testing guidelines tests ?
tests so that the first, middle and last elements of the sequence are accessed.
82
Software components are often ...........................................that are made up of several interacting objects.
composite components
83
How do you access the functionality of objects within a composite component?
Through the defined component interface.
84
What should testing of composite components focus on?
Showing that the component interface behaves according to its specification.
85
What can you assume has been completed when testing composite components?
Unit tests on the individual objects within the component.
86
What are the objectives of interface testing?
To detect faults
87
name the 4 interface types:
- Parameter interfaces - Shared memory interfaces - Procedural interfaces Sub-system - Message passing interfaces Sub-systems
88
which interface type is Data passed from one method or procedure to another?
parameter interfaces
89
what interface type is a Block of memory is shared between procedures or functions?
Shared memory interfaces
90
what interface type is a Sub-system encapsulates a set of procedures to be called by other sub-systems?
Procedural interfaces
91
which interface type is a Sub-systems request services from other sub-systems
Message passing interfaces
92
name the 3 interface errors
- interface misuse - Interface misunderstanding - timing error
93
which interface error is A calling component calls another component and makes an error in its use of its interface
interface misuse
94
"parameters in the wrong order" is an example of which interface error?
Interface misuse
95
which interface error is A calling component embeds assumptions about the behaviour of the called component which are incorrect?
Interface misunderstanding
96
which interface error is The called and the calling component operate at different speeds and out-of-date information is accessed.
timing error
97
What is the main focus in system testing?
Testing the interactions between components.
98
What does system testing check regarding components?
That components are 1- compatible 2- interact correctly 3- transfer the right data at the right time
99
T/F: System testing tests the emergent behavior of a system.
T
100
What may be integrated with newly developed components during system testing?
Reusable components and off-the-shelf systems.
101
T/F: System testing is a collective rather than an individual process.
T
102
DEF define the required system test coverage may be developed:
Testing policies
103
DEF an approach to program development in which you inter-leave testing and code development:
Test-driven development (TDD)
104
T/F: In TDD, tests are written before the code is developed.
T
105
What is the critical driver of development in TDD?
passing the test
106
What must happen before moving to the next increment in TDD?
developed code must pass its test.
107
Which development method introduced TDD?
Agile methods
108
T/F: TDD can be used in plan-driven development processes
T
109
DEF testing the system to check that changes have not ‘broken’ previously working code:
Regression testing
110
T/F: manual testing process, regression testing is expensive
T
111
T/F in Regression testing with automated testing, it is simple and straightforward.
T/F
112
which stages of testing is Testing a particular release of a system intended for use outside the development team?
release testing
113
which stages of testing's goal is To convince the supplier that the system is good enough for use?
Release testing
114
T/F: Release testing must show that the system delivers its specified functionality, performance, and dependability, and that it does not fail during normal use
T
115
what type of testing process is release testing?
black-box testing process
116
DEF Part of release testing may involve testing the emergent properties of a system:
performance testing
117
What emergent properties of a system are tested as part of release testing?
Performance and reliability.
118
What should tests reflect during performance testing?
The profile of use of the system.
119
True or False: Performance tests involve increasing the load until the system performance becomes unacceptable.
t
120
DEF A form of performance testing where the system is deliberately overloaded to test its failure behavior:
stress testing
121
which stages of testing is : in which users or customers provide input and advice on system testing?
user testing
122
T/F: User testing is essential, even when comprehensive system and release testing have been carried out
T
123
what are the 3 types of user testing?
1- Alpha 2- beta 3- acceptance
124
which type of user testing is where Users of the software work with the development team to test the software at the developer’s site?
Alpha testing
125
which type of user testing is where A release of the software is made available to users to allow them to experiment and to raise problems that they discover with the system developers?
beta testing
126
which type of user testing is where Customers test a system to decide whether or not it is ready to be accepted from the system developers and deployed in the customer environment?
acceptance testing
127
which type of user testing is used Primarily for custom systems?
acceptance testing
128
What do software customers generally expect all software to be?
Dependable
129
Customers may accept some system failures for non-critical applications.
T
130
DEF are usually a result of system errors that are derived from faults in the system
Failures
131
T/F: faults do not necessarily result in system errors
t
132
TorF : Errors do not necessarily lead to system failures
T
133
three types of fault management:
fault avoidance fault detection fault tolerance
134
which fault manag.. is this: Verification and validation techniques are used to discover and remove faults in a system before it is deployed.
Fault detection
135
which fault manag.. is this: The system is designed so that faults in the delivered software do not result in system failure.
Fault tolerance
136
which fault manag.. is this: development process is organised so that faults in the system are detected and repaired before delivery to the customer?
Fault avoidance
137