Lecture 9: Software Testing Flashcards

1
Q

What is Software failure process?

A

Map into unacceptable output sequences

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

What is operational environment?

A

Measures the reliability of software products and its operational environment

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

What must test cases consist of?

A
  • Description of input data
  • Precise description of correct output for the input data
  • The results of the tests should be checked
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Test cases should be written for?

A
  • Valid and expected input conditions
  • Invalid and unexpected ones
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What must you check in test cases?

A
  • That the program does not do what it is not supposed to do
  • Does what it supposed to do
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

List the three forms of software testing

A
  • By the scope of testing
  • By the knowledge of the internal structure
  • By the goal testing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Elaborate the scope of testing

A
  • Unit testing
  • Integration testing
  • System testing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Elaborate the knowledge of internal structure

A
  • Black box: the internals of the tested software are NOT known
  • White box: the internals of the tested software ARE known and **made use of **
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Elaboate by the goal testing

A
  • Assessment: reliability, performance, resilience
  • Debugging: fault, bugs finding
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is black box testing?

A
  • Done in the user perspective not the designer: mainly the specification
  • Tests every possible **input/demand **
  • Uses sampling from the input/demand
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is white box testing?

A
  • Test cases are derived by examining program’s logic
  • Goal to have exhaustive path testing = Code coverage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is software testing objective?

A

Performance related testing
Reliability related testing
- Debugging – selecting test cases that maximise the like hood of activating faults
- Assurance that a software is good enough
• Usability testing

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

How can software reliability affect the market advantage?

A
  • Releasing a software that is unreliable will receive poor reviews
  • Can be costly
  • Spending too much time improving reliability pre-release prevents vendors from gaining market advantage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is unit testing?

A
  • Process of testing a software in different areas/units whereby verifying the functions work as expected
  • A technique used to debug
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What must test cases show?

A
  • What and when it is expected to do and if the user had any problems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the 2 unit types of testing?

A
  • Should show that the component works as expected
  • Test case should show the abnormal inputs to properly checking for any problems with the component
17
Q

What does a test coverage of a class involve?

A
  • Testing all the operations associated with an object
  • Finding possible states
18
Q

What is component testing?

A
  • Made up of interacting objects
  • Are accessed through component interfaces
  • Should focus on showing that the component interface behaves accordingly to its specification

• Component testing

                                     - Errors and misunderstanding etc.
         - Interface failures
19
Q

What does software testing involve?

A
  • Tested during development which involves testing the components to create a version of the system and testing the entire integrated system
  • Focuses on the interaction of the components
  • Checks that the components are compatible and interacting correctly
  • Tests the behaviour of the system
  • Developed by a set of separate system testing team/sub-teams
20
Q

What is use case testing?

A

Developed to identify the system interactions used as a basis for system testing

21
Q

Testing policies check what?

A

The required system test coverage includes EXAMPLES:
• Accessing menus
• Text formatting
• Correct/incorrect input

22
Q

What is Test driven development?

A

TEST-DRIVEN DEVELOPMENT is an approach to program development in which you inter-leave testing and code development
• Develop the code incrementally until one has passed the test before moving to the next increment

23
Q

What are the benefits of test-driven development?

A
  • Code coverage
  • Regression testing
  • Simplified debugging
  • System documentation
24
Q

Whats the other forms of testing?

A

Is to check that previously working functionality still works, after changes elsewhere in the system is made

All tests are re-run every time a change is made

25
Q

What’s release testing?

A

Testing that is intended to be used outside of the development team by convincing the supplier that it is good enough use

Black-box testing which focuses on the specification

26
Q

What’s user testing?

A

Get user and customer’s feedback and advice
• Essential after doing a release testing

27
Q

What are the forms of user testing?

A

Alpha testing
- Working with the development team to test the software at the developer’s site
Beta testing
- Made available to users to allow experiment and raise any problems that they may discover
Acceptance testing
- Customers test to decide if the software is ready and accepted by developers and deployed to customers- used for _bespoke systems _

28
Q

What’s statistical testing?

A

Involves exercising the program by randomly generating test cases to see if it has reached the required level of quality measuring:
Reliability and the performance
• Test cases for defect testing are a typical of actual usage
• Targets the anticipated environment

29
Q

What does statistical testing activites esabilsh and test?

A

Establishes the operational profile
Needed to generate random test cases
Testing the system known as “Oracle” testing between test cases

30
Q

Whats inference procedure?

A
  • Performance measures
  • Reliability measures
31
Q

Whats Statistical testing for reliability?

A
  • Responsible for handling a number of test cases correctly and others incorrectly
  • The Oracle has to be able to handle a number of tests
32
Q

How do you test Oracle problem?

A

Building a good Oracle solution:
• Limiting coverage by detecting crashes
• Implements plausibility checks