Testing And Debugging Programs Flashcards
What is an execution error?
An error produced when the program is run. Examples include an attempt to use a variable that has not been declared, use of invalid data, attempt to access a non existent file or division by 0.
What is a logic error?
A logic error occurs is when the code executes but produces the wrong result. Common errors may include AND instead of OR, , code written in the wrong order or loops which repeat the wrong number of times.
What is static testing?
A form of testing that involves reading the program code and mentally ‘walking through’ it without actually running the program.
Errors are fixed before program execution.
What is Dynamic Testing?
When code is executed using a set of test data. Variables are listed and the values which they store are tracked as code is executed.
What is a breakpoint and which type of testing is it used in?
Break points are used in dynamic testing to pause executing code at specific points and allowing current variable values to be executed.
Give an example of dynamic testing
A trace table, which lists variables in a program and tracks the values they store as code is executed.
Give an example of static testing
A dry run involves reading the program and going through it mentally without actually running the program. The tester predicts what the program code will produce.
Give an example of a test plan for a small program.
Dynamic testing to simply check the program copes with a variety of different inputs from normal, extreme and exceptional data.
Define normal, extreme and exceptional data
Normal - Data within the expected range
Extreme - Data on the boundaries of the unexpected range
Exceptional - Data within the unexpected range
What is functional testing?
Tests that check to see if particular features work
What is alpha testing?
Tests performed on completed software at a developers site
What is beta testing?
Tests performed offsite by those outside the programming team
What is acceptance testing?
Tests performed by the customer using their own environment and hardware
What is compatibility testing?
Tests that check softwares compatibility with other apps or OS
What is installation testing?
Tests which ensure the software installs correctly on customer hardware.
What is usability testing?
Checks the usability of a user interface
What is accessibility testing?
Checks that software is compatible with disability legislation
Why is software tested?
To identify errors in code