Testing Flashcards

1
Q

What 2 things does testing ensure?

A

That the program works correctly without error

That the program meets the needs of the user

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

What is a test plan?

A

A test plan is a formal document which details the tests to be performed on the software

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

What 5 things does a test plan describe?

A
The scope of the testing
The tests to be performed
The reason for each test
The data to be used in tests
The expected outcome of each test
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 3 types of test data?

A

Normal-use data
Borderline data
Invalid data

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

What is normal-use data?

A

Data that is expected to be entered into the application

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

What is borderline data?

A

Testing the boundary of acceptable data. Borderline data is still acceptable and it will be processed in the same way as normal data

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

Give an example of borderline data

A

The user is asked to enter a username with between 1 and 10 characters. The borderline test data would be a username with 1 character and a username with 10 characters

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

What is invalid data?

A

Data that the program rejects as invalid

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

Give 3 reasons why a program reject data?

A

It is the wrong data type
It contains characters that are not allowed
The value falls outside the accepted parameters of the program

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

Give an example of invalid data

A

If the user is asked to enter a username with between 1 and 10 characters, invalid test data would be a blank username, or a username with 13 characters

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

What is black box testing?

A

The testers ignore how the program itself works in terms of code. They simply enter inputs and check if the outputs match their expectations

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

What is an advantage with black box testing?

A

The person carrying out the test doesn’t need to know anything about the software, this makes finding it a lot easier to find testers

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

What is a disadvantage with black box testing?

A

If the test fails, the tester doesn’t know why it failed

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

What is white box testing?

A

Looks into the details of every algorithm in the software, and tries to test every possible path through that bit of code to ensures that it works correctly every time

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

What is an advantage of white box testing?

A

If a test fails, you can quickly pinpoint exactly where the problem is and fix it

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

What is a disadvantage with white box testing?

A

It can take a long time to run through all of the test data

17
Q

State 2 things about a successful test for black box testing

A

Fast and easy for the tester

No wasted time, the test is completed and the tester can move onto the next one in the plan

18
Q

State 3 things about a successful test for white box testing

A

Much slower to complete tests compared to black box testing
Some tests can be complicated and require knowledgeable testers
You get a detailed record of the correct data

19
Q

State 1 thing about a failed test for black box testing

A

Provides no insight into why the test failed, unless you can work out a pattern from which test data led to failures and which to successes

20
Q

State 1 thing about a failed test for white box testing

A

By looking at the trace tables, you can see exactly where the failure occurred and quickly fix it

21
Q

What is a trace table?

A

A technique used to test algorithms, in order to make sure that no logical errors occur whilst the algorithm is being processed

22
Q

What is iterative testing?

A

When, during program development, the programmer will write a portion of their code. They will then test the code they have just written to check that it is working as expected before moving onto developing the next part, and testing again

23
Q

What 2 types of errors are iterative testing looking for?

A

Syntax errors - mistakes in the grammar of the coding language
Logic errors - mistakes in the algorithms or logic flow of the program

24
Q

What testing method is used during iterative testing?

A

White box testing

25
Q

What is final testing?

A

Final testing is done after the project is thought to be complete

26
Q

What testing method is used during final testing?

A

Black box testing

27
Q

What are the 2 stages of final testing?

A

Alpha

Beta

28
Q

What is alpha testing?

A

When the software is released for use by in-house test engineers. They try their best to break it by doing unexpected things to it

29
Q

What is beta testing?

A

Where the software is released to a select group of hired or volunteer testers, unconnected to the development process to date. These “beta testers” use the program as intended and under realistic conditions.