Testing should be stopped when:
All the planned tests have been run
Time has run out
All faults have been fixed correctly
It depends on the risks for the system being tested