The purpose of regression testing is to make sure that the existing functionality of the system has been unaffected by the change and still work as expected. This involves re-running the test cases that were created when the affected functionality has been developed originally.