Week 3

Chapter 1

Chapter 2

Chapter 3

Practice

Assignment

Back to Track

Software Testing Life Cycle (STLC)

The Software Testing Life Cycle, or STLC, is a structured process that describes the main testing activities performed during a project.

In simple words, STLC helps answer:

STLC helps testing stay organized and systematic.

Main phases of STLC

1.⁠ ⁠Requirement Analysis 2.⁠ ⁠Test Planning 3.⁠ ⁠Test Case Design 4.⁠ ⁠Test Execution 5.⁠ ⁠Test Closure

Let us look at each phase.

What is requirement analysis?

Requirement analysis is the phase where testers study the requirements and try to understand:

⁠ ⁠what the system should do •⁠ ⁠what needs to be tested •⁠ ⁠what may be risky •⁠ ⁠whether the requirements are clear, complete, and testable

This is one of the earliest and most important testing activities.

Why it matters

If the requirements are unclear, incomplete, or contradictory, testing becomes difficult.

For example:

A requirement says: “The user should receive confirmation quickly after payment.”

This is not very clear.

A tester may ask: •⁠ ⁠What does “quickly” mean? •⁠ ⁠Is it 1 second? 5 seconds? 30 seconds? •⁠ ⁠What kind of confirmation, email, screen message, SMS?

This is useful because testing starts with understanding.

What testers do during requirement analysis

Testers may: •⁠ ⁠review requirements and user stories •⁠ ⁠ask questions •⁠ ⁠identify missing details •⁠ ⁠identify risks •⁠ ⁠identify test conditions •⁠ ⁠check whether the requirements are testable

Example

Requirement: The user can reset the password by email.

Possible tester questions: •⁠ ⁠What happens if the email does not exist? •⁠ ⁠How long is the reset link valid? •⁠ ⁠Can the link be used more than once? •⁠ ⁠What message is shown after success or failure?

These questions improve quality before testing even starts.


3. Test Planning

What is test planning?

Test planning is the phase where the team decides how testing will be organized.

It answers questions like: •⁠ ⁠what will be tested •⁠ ⁠what will not be tested •⁠ ⁠which test types will be used •⁠ ⁠who will do the testing •⁠ ⁠when testing will happen •⁠ ⁠what tools, environments, and data are needed •⁠ ⁠what risks exist

Why it matters

Without planning, testing easily becomes chaotic.

A good test plan helps the team: •⁠ ⁠stay aligned •⁠ ⁠use time better •⁠ ⁠focus on priorities •⁠ ⁠manage risks •⁠ ⁠communicate clearly

Example

Imagine a team is releasing a food delivery app update.

Without planning: •⁠ ⁠one tester focuses on profile settings •⁠ ⁠another tests restaurant search •⁠ ⁠nobody tests checkout and payment

That is dangerous, because payment is business-critical.

With planning: •⁠ ⁠critical flows are identified first •⁠ ⁠responsibilities are clearer •⁠ ⁠risk areas get more attention


4. Test Case Design

What is test case design?

Test case design means preparing the tests that will later be executed.

This may include: •⁠ ⁠test cases •⁠ ⁠test scenarios •⁠ ⁠checklists •⁠ ⁠test data •⁠ ⁠expected results

Why it matters

Good test design helps testers:

⁠cover important functionality test systematically

⁠reduce missed scenarios

⁠make execution more efficient

Example

Feature: Login

Possible test cases: •⁠ ⁠login with valid username and valid password •⁠ ⁠login with valid username and invalid password •⁠ ⁠login with empty fields •⁠ ⁠login with locked account •⁠ ⁠login with password shorter than allowed •⁠ ⁠login after several failed attempts

These are not random checks. They are designed in advance.


5. Test Execution

What is test execution?

Test execution means running the designed tests and comparing actual results with expected results.

During this phase, testers: •⁠ ⁠execute test cases •⁠ ⁠record results •⁠ ⁠report defects •⁠ ⁠retest fixes •⁠ ⁠perform regression testing when needed

Example

Test case: Login with valid credentials

Expected result: User is redirected to the dashboard

Actual result: User clicks login, but the page freezes

This means the test failed, and a defect may be reported.

Why it matters

Execution shows how the software really behaves.

It helps answer: •⁠ ⁠does the product work as expected? •⁠ ⁠which scenarios passed? •⁠ ⁠which failed? •⁠ ⁠what defects were found? •⁠ ⁠what risks remain?


6. Test Closure

What is test closure?

Test closure is the phase where testing activities are formally completed and reviewed.

This does not mean only “we are done.” It also means: •⁠ ⁠reviewing what was tested •⁠ ⁠checking what was not tested •⁠ ⁠summarizing results •⁠ ⁠documenting lessons learned •⁠ ⁠identifying improvement points

What may happen in test closure

The team may: •⁠ ⁠check test coverage •⁠ ⁠summarize defects •⁠ ⁠evaluate whether exit criteria were met •⁠ ⁠create a test summary report •⁠ ⁠discuss what went well and what should improve next time

Example

At the end of a release, the test closure report may say: •⁠ ⁠120 test cases executed •⁠ ⁠110 passed •⁠ ⁠10 failed •⁠ ⁠8 defects fixed •⁠ ⁠2 low-severity defects remain open •⁠ ⁠payment and checkout fully covered •⁠ ⁠mobile tablet layout only partially covered •⁠ ⁠recommendation: improve test data preparation next cycle

This helps future projects too.



The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

CC BY-NC-SA 4.0 Icons

Built with ❤️ by the HackYourFuture community · Thank you, contributors

Found a mistake or have a suggestion? Let us know in the feedback form.