testing Flashcards
(16 cards)
What is white box testing
What is white box testing
tests internal logic of a section of code to identify errors in syntax logic and data flow
tester needs to know how code works
white box tests carried out on units of code
tests cases should be built so that every statement is executed at least once
What is a test case
Document that contains a set of tests to help the programmer verify that the code works as expected. it will include expected results and outcomes
Advantages of white box testing
Thorough because allows each line of code to be tested
Hidden errors are identifie dand code is moified and optimised
Programmers who know code can easily identify suitable test data
What is black box testing
Where tester is unaware of internal structure of application they are testing.
Used to identify errors in data structures, user interfaces, errors in reports, missing functionallityi and behaviour reports
Disdavntages of white box testing
experience programmers are required
Large scale application require complex test cases (time consuming)
Some conditions may not be tested
Advantages of black box testing
Can help identify where user requirements are not being met
testers don’t need to know about the code and testers can be independent of devleoper
Test cases can be designed as soon as the specificaiton for the unit is completed
Disadvantages of black box testing
not all program pathways are tested as only a small number of input cases used
reason for a test failure can’t be determined
repeittion of tests already carried out by programmer may occur
What is Unit testing
Testing one module or unit of code to ensure that it it s working as expected
Logic of code is tested
Form of white box testingW
What is Integration testing
When a number of units have been tested they are combined together to form a sub-system. Integration testing ensures that all of the units work together correctly
what is system testing
carried out on a complete and fully integrated system to ensure correct outputs are produced in compliance with user requirements document
What is extreme data
used to test system can cope with very large or very small ddata values
Valid data used to test that the system operates as expected with normal data
What is valid data
used to test system operates as expefcted with normal data
What is invalid data
Used to test that system can process invalid data and doesn’t crash when entered
What is null data
Used to test system can cope when no data entered