Week 3

Chapter 1

Chapter 2

Chapter 3

Practice

Assignment

Back to Track

Test Planning

Purpose of a Test Plan

A test plan is a document that describes how testing will be performed for a specific project, release, or scope.

Its purpose is to: •⁠ ⁠define testing scope •⁠ ⁠describe the test approach •⁠ ⁠assign responsibilities •⁠ ⁠identify risks •⁠ ⁠define schedule and resources •⁠ ⁠support communication and control

In simple words: A test plan helps the team understand what will be tested, how, when, and by whom.

Example

If a company is releasing a new online banking feature, the test plan may define: •⁠ ⁠login, transfer, and transaction history are in scope •⁠ ⁠credit card application is out of scope •⁠ ⁠API and regression testing are required •⁠ ⁠testing will be done in staging •⁠ ⁠testing starts Monday •⁠ ⁠release depends on critical defects being resolved


Key Sections of a Test Plan

A beginner does not need to memorize every possible template, but these sections are common and useful.

1. Test objectives

What is the testing trying to achieve?

Example: •⁠ ⁠verify that checkout works correctly •⁠ ⁠reduce release risk •⁠ ⁠validate payment flows

2. Scope

What is in scope and out of scope?

Example: •⁠ ⁠in scope: login, checkout, payment confirmation •⁠ ⁠out of scope: loyalty program

3. Test approach

How will testing be done?

Example: •⁠ ⁠smoke testing •⁠ ⁠functional testing •⁠ ⁠exploratory testing •⁠ ⁠regression testing •⁠ ⁠API testing

4. Test items

Which features, modules, or systems will be tested?

5. Entry and exit criteria

When can testing start? When can it be considered complete?

Example: •⁠ ⁠Entry: build deployed to staging, test data ready •⁠ ⁠Exit: critical test cases executed, no open critical defects

6. Test environment

Where will testing happen?

Example: •⁠ ⁠staging environment •⁠ ⁠test database •⁠ ⁠Android and iPhone devices

7. Test data

What data is needed?

Example: •⁠ ⁠valid user account •⁠ ⁠expired card •⁠ ⁠blocked user •⁠ ⁠empty cart •⁠ ⁠discount code

8. Roles and responsibilities

Who does what?

Example: •⁠ ⁠QA prepares and executes tests •⁠ ⁠developers fix defects •⁠ ⁠BA clarifies requirements •⁠ ⁠business users support UAT

9. Risks and dependencies

What may affect testing?

Example: •⁠ ⁠unstable environment •⁠ ⁠delayed API from another team •⁠ ⁠missing test accounts

10. Schedule

What is the timeline?

Example: •⁠ ⁠smoke testing: Monday •⁠ ⁠regression: Tuesday and Wednesday •⁠ ⁠UAT support: Thursday

11. Deliverables

What outputs are expected?

Example: •⁠ ⁠test cases •⁠ ⁠defect reports •⁠ ⁠test summary report •⁠ ⁠daily status report


AI in Test Planning

AI can support testers during analysis and planning, but it should not replace human thinking.

How AI can help

AI may help with: •⁠ ⁠summarizing requirements •⁠ ⁠identifying possible test scenarios •⁠ ⁠suggesting positive and negative test cases •⁠ ⁠organizing ideas into categories •⁠ ⁠finding missing edge cases •⁠ ⁠helping draft test plans or checklists •⁠ ⁠rephrasing unclear content into simpler language

Example

Requirement: Users can update their address in their profile.

AI might suggest: •⁠ ⁠update with valid data •⁠ ⁠update with empty mandatory fields •⁠ ⁠update with unsupported characters •⁠ ⁠verify confirmation message •⁠ ⁠verify data is saved after logout and login •⁠ ⁠verify maximum field length

That can save time.

But there are risks

AI can also: •⁠ ⁠misunderstand the business context •⁠ ⁠generate generic or repetitive test cases •⁠ ⁠miss critical domain rules •⁠ ⁠invent details that are not in the requirement •⁠ ⁠produce content that looks confident but is wrong

So AI should be used as support, not as final authority.

Good way to use AI

Use AI to: •⁠ ⁠brainstorm ideas •⁠ ⁠speed up drafting •⁠ ⁠improve wording •⁠ ⁠generate checklists •⁠ ⁠help structure information

But always validate with: •⁠ ⁠requirements •⁠ ⁠domain knowledge •⁠ ⁠risk understanding •⁠ ⁠real project context

Simple rule

AI can assist test planning, but testers still own the quality of the plan.


Practical Example, Putting It All Together

Imagine a team is building a hotel booking feature.

Requirement analysis

QA reviews requirements and asks: •⁠ ⁠Can users book multiple rooms? •⁠ ⁠What happens if payment fails? •⁠ ⁠Can dates in the past be selected?

Test planning

QA defines: •⁠ ⁠booking flow is high priority •⁠ ⁠payment and confirmation email are critical •⁠ ⁠testing will happen in staging •⁠ ⁠regression is needed for cancellation flow

Test case design

QA prepares tests such as: •⁠ ⁠book room with valid dates •⁠ ⁠book room with invalid card •⁠ ⁠cancel booking after payment •⁠ ⁠try booking with past date •⁠ ⁠verify confirmation email content

Test execution

QA runs the tests, logs defects, retests fixes, and performs regression.

Test closure

QA summarizes: •⁠ ⁠what was tested •⁠ ⁠what passed and failed •⁠ ⁠what defects remain •⁠ ⁠what risks exist before release

This is STLC in action.


Key Takeaways

⁠STLC is a structured testing process •⁠ ⁠requirement analysis helps testers understand what to test and identify risks early •⁠ ⁠test planning organizes the testing work •⁠ ⁠test case design prepares test conditions and expected results •⁠ ⁠test execution shows how the software really behaves •⁠ ⁠test closure summarizes results and lessons learned •⁠ ⁠development methodology affects how and when testing happens •⁠ ⁠Agile supports early and continuous testing •⁠ ⁠Waterfall is a sequential model where testing often happens later •⁠ ⁠V-Model is also sequential, but links development stages to testing stages •⁠ ⁠a test plan helps testing stay controlled, visible, and aligned •⁠ ⁠AI can support test planning, but human judgment is still essential


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.