1. What is the Software Testing Life Cycle (STLC)?
▪ The Software Testing Life Cycle (STLC) is a step-by-step process that guides how software is
tested to ensure it’s high quality, bug-free, and meets user needs.
▪
Each phase has its own goal, activities, and outputs, helping testers stay organized and
effective.
6 Phases of STLC
Phase 1: Requirement Analysis
• Goal: Understand what needs to be tested.
• Key Activity: Review the requirement documents and ask questions like:
“When a user clicks ‘Login’, what should happen?”
• Example:
For a login feature — testers check if users can log in with valid credentials and handle
invalid ones correctly.
• Main Output:
o A list of testable requirements
o A Requirement Traceability Matrix (RTM) that maps each requirement to its related
test cases.
Phase 2: Test Planning
• Goal: Create a master plan for the entire testing project.
• Key Activity: Decide what to test, how to test, who will test, and when it will be tested.
Also includes estimating costs and effort.
• Simple Example:
“We will do 50 hours of manual testing on the login module. Tester Raj will handle it using a
Windows 10 PC and Chrome browser.”
• Main Output: Test Plan / Strategy Document
Phase 3: Test Case Development
• Goal: Write detailed instructions for how each feature will be tested.
• Key Activity: Create Test Scenarios and Test Cases.
o Test Scenario: A high-level idea of what to test.
Example: “Verify the login functionality.”
o Test Case: Step-by-step instructions.
Example:
1. Go to login page
2. Enter valid username
3. Enter valid password
4. Click Login
Expected Result: User should be redirected to the dashboard.
• Main Output: Test Case Document with all detailed test cases.
Phase 4: Test Environment Setup
• Goal: Prepare the testing environment — the “playground” where testing happens.
• Key Activity: Set up all the hardware, software, and network needed for testing.
Example: Installing the app on a test server, setting up a test database, or configuring
browsers.
• Simple Example:
Creating a copy of the live website on a separate test server so real users aren’t affected
during testing.
• Main Output: A ready-to-use Test Environment
Phase 5: Test Execution
• Goal: Run the tests and identify bugs or issues.
• Key Activity: Testers execute the test cases they created earlier.
o If the software works as expected → Test Passed
o If it doesn’t → Defect Logged
• Simple Example:
A tester runs the “Valid Login” test case. If the login fails even with correct credentials, they
report a bug to the developer:
“Login fails with valid username and password.”
• Main Output: Test Execution Report & Defect Report
Phase 6: Test Cycle Closure
• Goal: Wrap up the entire testing process and gather lessons for future projects.
• Key Activity:
The testing team reviews the whole cycle — discussing what went well, what didn’t, and
what can be improved.
They also prepare reports showing testing metrics like:
o Number of test cases executed
o Bugs found and fixed
o Pending or deferred issues
• Simple Example:
The test lead reports: “We executed 100 test cases, found 15 bugs, and fixed 14. One minor
bug is deferred. For the next project, we’ll start testing earlier.”
• Main Output: Test Closure Report & Lessons Learned Document