Developing test plans and testing a solution Flashcards

(17 cards)

1
Q

What is the aim of testing?

A

To improve the quality of the software by ensuring that it is bug free, meets the user requirements and operates efficiently. This is done by testing the system and fixing any errors which are spotted

It is a continuous process carried out throughout the development process

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

What is a test case?

A

A document that contains a set of tests to help the programmer verify that the code works as expected. It will include expected and actual outcomes

It should include extreme, valid, invalid and null data

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

What is white box testing?

A

Tests the internal logic of a section of code to identify errors in syntax, logic and data flow

The tester needs to know how the code works, so a programmer completes this testing.

White box tests are carried out on units of code

Every statement executed should be tested at least once

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

Advantages of white box testing?

A

Thorough as it allows each line of code to be tested

Hidden errors are identified and the code is modified and optimised

Programmers who know the code can easily identify suitable test data

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

Disadvantages of white box testing?

A

Experienced programmers are required to undertake the testing

Large scale applications require complex test cases, which is time consuming

Some conditions may not be tested as it is not possible to test every possibility

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

What is black box testing?

A

Focuses on testing inputs and outputs

Used to identify errors in data structures, problems with user interfaces, errors in reports, missing functionality and behaviour errors

The tester has no knowledge of the internal code therefore a variety of people carry out this testing

The unit of code is viewed as a black box(the tester can’t see inside)

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

Advantages of black box testing?

A

Can help identify where the user requirements are not being met

testers do not need to know about the code and so the tester can be independent of the developer

Test cases can be designed as soon as the specification for the unit is completed

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

Disadvantages of black box testing?

A

Not all program pathways are tested as only a small number of input cases are used

The reason for a test failure cannot be determined

Repetition of tests already carried out by the programmer may occur

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

When can test cases be designed in black box testing?

A

Test cases can be designed as soon as the specification for the unit is completed.

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

What is unit testing?

A

A unit of code is tested to ensure it works as expected

The unit test has no relation to the code outside of the unit being tested

Unit testing starts with the module specification and includes detailed testing of the code

It is a form of white box testing with a narrow scope limited to one unit

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

What is integration testing?

A

Occurs after unit testing

A number of tested units are combined together to form a sub-system

Integration testing is used to ensure that units are working together as expected, for example there will be a focus on the data passed between units

Integration tests identify problems with interfaces or with the interactions between units

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

What is system testing?

A

Occurs after integration testing

Sub-systems are brought together to form a complete software system. The system is tested as a whole to ensure that it meets the user requirements

The system is treated like a black box

Can help identify missing functionality or issues related to performance

The tests should be carried out in a real life setting with real volumes of data

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

What is a test plan?

A

A document that describes in detail the activities to be undertaken when testing is carried out.

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

What is extreme data?

A

Used to test if the system can cope with very large or very small data values, for example if a student number has to be in the range 1-100, the test data would normally include the numbers 1 and 100 as extreme values

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

What is valid data?

A

Used to test that the system operates as expected with normal data

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

What is invalid data?

A

Used to test the system can process invalid data and does not crash when invalid data is entered

17
Q

What is null data?

A

Is used to test that the system can cope when no data is entered