Testing Flashcards
What 2 things does testing ensure?
That the program works correctly without error
That the program meets the needs of the user
What is a test plan?
A test plan is a formal document which details the tests to be performed on the software
What 5 things does a test plan describe?
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
What are the 3 types of test data?
Normal-use data
Borderline data
Invalid data
What is normal-use data?
Data that is expected to be entered into the application
What is borderline data?
Testing the boundary of acceptable data. Borderline data is still acceptable and it will be processed in the same way as normal data
Give an example of borderline data
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
What is invalid data?
Data that the program rejects as invalid
Give 3 reasons why a program reject data?
It is the wrong data type
It contains characters that are not allowed
The value falls outside the accepted parameters of the program
Give an example of invalid data
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
What is black box testing?
The testers ignore how the program itself works in terms of code. They simply enter inputs and check if the outputs match their expectations
What is an advantage with black box testing?
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
What is a disadvantage with black box testing?
If the test fails, the tester doesn’t know why it failed
What is white box testing?
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
What is an advantage of white box testing?
If a test fails, you can quickly pinpoint exactly where the problem is and fix it