Stop the testing when the code coverage and functionality requirements come to the desired level. Stop the testing when the bug rate drops below a prescribed level. Stop the testing when the number of high severity Open Bugs is very low. Stop the testing when the period of beta testing/alpha testing is over.