Goal 1: Testing is done with the indent of finding errors
Goal 2: Testing is done to find errors and get them corrected and makes the program with conformance with the functional and performance requirements as stated in the SRS document
1. Identifying the defects 2. Preventing the defects 3. To check whether the customer requirements criterion is met. and finally 4. To measure the quality of the Product.
If we want say in simple the testing is nothing but validation and verification.