The Phases of Testing: A Comprehensive Guide