Software Testing Practice Sheet
Introduction to Software Testing
Software testing is the process of running a program or system to identify any errors or bugs that may exist. It is an important part of software engineering and helps to ensure that the software product is of high quality.
What is a Bug?
A bug is an error or mistake in a program or system. It can cause unexpected results or make the program crash.
What is a Test Case?
A test case is a set of conditions used to test a program or system. It is used to identify any bugs or errors that may exist.
What is a Test Plan?
A test plan is a document that describes the steps that need to be taken in order to test a program or system. It includes information such as the objectives of the test, the resources needed, and the expected results.
What is Regression Testing?
Regression testing is a type of testing that is done to verify that changes made to a program or system do not cause any unexpected results or errors.
What is Automated Testing?
Automated testing is the process of running a program or system using automated tools. This can help to reduce the amount of time needed to test the program or system.
Practice Problems
- You are testing a program that is used to calculate the area of a triangle. What would be a good test case to use?
A: A good test case would be to input values for the three sides of the triangle and check if the output is the correct area of the triangle.
- You are testing a program that is used to calculate the volume of a cube. What would be a good test plan to use?
A: A good test plan would include the objectives of the test (to verify that the program correctly calculates the volume of a cube), the resources needed (inputs for the length, width, and height of the cube, and a calculator to check the result), and the expected results (the calculated volume should match the expected result).