A good test case writing sample for a testing internship is a small, complete set: a short requirements list, 15 to 25 test cases that each trace back to a requirement, and a traceability matrix that shows nothing was missed. This guide gives you that set for a simple registration form. Copy the structure, then replace the form with one you have tested yourself.
This is an independent guide for AKTU students. It is not issued or endorsed by the university. The sample cases below are illustrative, and no code or tests were run to produce them.
What a recruiter or mentor looks for in a sample
A reviewer who opens your sample usually spends under two minutes on it. They are checking whether you can think in a structured way. They are not counting how many cases you wrote. In practice that means they look for:
- Clear requirements first. Test cases without a source requirement look like guesses.
- Atomic cases. One case checks one behaviour, so a failure points to one cause.
- Specific expected results. “Works correctly” is not an expected result. “Error message ‘Email is required’ appears below the field” is.
- Coverage of negative and boundary conditions, not only the happy path.
- Traceability. Every requirement maps to at least one case, and every case maps to a requirement.
The sample application: a student registration form
The sample uses a simple web form that any student can reproduce in plain HTML. It has five fields and one button. The requirements are written the way a small project might state them.
| Req ID | Requirement |
|---|---|
| REQ-01 | Full Name is mandatory, accepts letters, spaces and hyphens, and allows 2 to 50 characters. |
| REQ-02 | Email is mandatory and must be in a valid format (one @, a domain with a dot). |
| REQ-03 | Mobile number is mandatory and must be exactly 10 digits, starting with 6, 7, 8 or 9. |
| REQ-04 | Password is mandatory, 8 to 20 characters, with at least one uppercase letter, one lowercase letter and one digit. |
| REQ-05 | Confirm Password must match Password exactly. |
| REQ-06 | On valid submission, the system shows the message “Registration successful” and clears the form. |
| REQ-07 | On invalid submission, the form is not submitted and an inline message appears next to each invalid field. |
Free 2-Week CareerSwami Internship
Online, 14 days, with a free offer letter and a free completion certificate once you finish the work. Check with your college that it fits your requirement before you enrol.
Anatomy of a well-written test case
Use the same columns every time. A consistent template is itself a signal of discipline.
- Test Case ID: a short unique code such as TC-REG-001.
- Requirement ID: the requirement this case verifies.
- Title: one line that states the condition being tested.
- Preconditions: what must be true before you start, for example “Registration page is open”.
- Test steps: numbered, each a single action.
- Test data: the exact values entered, written out.
- Expected result: observable and specific.
- Type and priority: positive, negative or boundary, and High, Medium or Low.
- Actual result and status: left blank in a sample, filled in during execution.
Sample test cases (illustrative)
The table below is a starter set. It covers each requirement with positive, negative and boundary conditions. Treat the expected results as illustrative, because they depend on how your form is built.
| TC ID | Req | Title | Test data | Expected result | Type | Priority |
|---|---|---|---|---|---|---|
| TC-REG-001 | REQ-01 | Valid full name accepted | Name: Anita Sharma | No error shown on the name field | Positive | High |
| TC-REG-002 | REQ-01 | Name left empty | Name: (blank) | Inline message says name is required; form not submitted | Negative | High |
| TC-REG-003 | REQ-01 | Name at minimum length | Name: Al | Accepted | Boundary | Medium |
| TC-REG-004 | REQ-01 | Name below minimum length | Name: A | Inline error about minimum length | Boundary | Medium |
| TC-REG-005 | REQ-01 | Name at maximum length | 50 letters | Accepted | Boundary | Medium |
| TC-REG-006 | REQ-01 | Name above maximum length | 51 letters | Rejected, or input blocked at 50 | Boundary | Medium |
| TC-REG-007 | REQ-01 | Digits in name | Name: Anita2 | Inline error about allowed characters | Negative | Medium |
| TC-REG-008 | REQ-02 | Valid email accepted | anita.sharma@example.com | No error on email field | Positive | High |
| TC-REG-009 | REQ-02 | Email without @ | anita.example.com | Inline error about invalid email | Negative | High |
| TC-REG-010 | REQ-02 | Email without domain dot | anita@example | Inline error about invalid email | Negative | Medium |
| TC-REG-011 | REQ-02 | Email with spaces | anita sharma@example.com | Inline error about invalid email | Negative | Low |
| TC-REG-012 | REQ-03 | Valid mobile number | 9876543210 | Accepted | Positive | High |
| TC-REG-013 | REQ-03 | Nine-digit mobile | 987654321 | Inline error about 10 digits | Boundary | High |
| TC-REG-014 | REQ-03 | Eleven-digit mobile | 98765432101 | Rejected, or input blocked at 10 | Boundary | Medium |
| TC-REG-015 | REQ-03 | Mobile starting with 5 | 5876543210 | Inline error about starting digit | Negative | Medium |
| TC-REG-016 | REQ-03 | Letters in mobile | 98765abcde | Inline error or letters not accepted | Negative | Medium |
| TC-REG-017 | REQ-04 | Valid password | Test1234 | Accepted | Positive | High |
| TC-REG-018 | REQ-04 | Seven-character password | Test123 | Inline error about minimum length | Boundary | High |
| TC-REG-019 | REQ-04 | Password without uppercase | test1234 | Inline error about uppercase | Negative | Medium |
| TC-REG-020 | REQ-04 | Password without digit | TestTest | Inline error about digit | Negative | Medium |
| TC-REG-021 | REQ-04 | Twenty-one-character password | Test1234 plus 13 more valid characters | Rejected, or input blocked at 20 | Boundary | Medium |
| TC-REG-022 | REQ-05 | Matching passwords | Both: Test1234 | No mismatch error | Positive | High |
| TC-REG-023 | REQ-05 | Different case in confirm field | Test1234 and test1234 | Mismatch error | Negative | Medium |
| TC-REG-024 | REQ-06 | Submit with all valid data | Values from TC-001, 008, 012, 017, 022 | “Registration successful” appears; form cleared | Positive | High |
| TC-REG-025 | REQ-07 | Submit with all fields blank | All fields empty | Form not submitted; message beside every field | Negative | High |
| TC-REG-026 | REQ-07 | Submit with one invalid field | Valid data except mobile: 12345 | Not submitted; message only beside mobile field | Negative | High |
One case written out in full
The table is compact. In a portfolio document, write at least a few cases in the full vertical format below.
Test Case ID : TC-REG-013
Requirement : REQ-03
Title : Mobile number with nine digits is rejected
Preconditions: Registration page is open; all other fields hold valid data
Steps :
1. Click the Mobile Number field.
2. Enter 987654321.
3. Click Register.
Test data : Mobile = 987654321
Expected : Form is not submitted. Inline message next to the
mobile field states that 10 digits are required.
Type/Priority: Boundary / High
Actual/Status: (filled during execution)
Requirements-to-test traceability matrix
A traceability matrix proves coverage. It lists each requirement against the cases that verify it. Gaps become visible straight away, and so do cases with no requirement behind them.
| Requirement | Test cases | Positive | Negative | Boundary | Coverage |
|---|---|---|---|---|---|
| REQ-01 Name rules | TC-REG-001 to 007 | 1 | 2 | 4 | Covered |
| REQ-02 Email format | TC-REG-008 to 011 | 1 | 3 | 0 | Covered |
| REQ-03 Mobile rules | TC-REG-012 to 016 | 1 | 2 | 2 | Covered |
| REQ-04 Password rules | TC-REG-017 to 021 | 1 | 2 | 2 | Covered |
| REQ-05 Password match | TC-REG-022, 023 | 1 | 1 | 0 | Covered |
| REQ-06 Success message | TC-REG-024 | 1 | 0 | 0 | Partial: no check for double-click submit |
| REQ-07 Inline errors | TC-REG-025, 026 | 0 | 2 | 0 | Covered |
The “Partial” row is deliberate. A matrix that honestly flags a thin area reads as more credible than one that shows everything green. In this case you would add a case for pressing Register twice quickly, plus one for the browser Back button after success.
Worked example: turning one requirement into cases
This walk-through is illustrative and uses REQ-04, the password rule.
- Split the requirement into testable conditions. Length 8 to 20; at least one uppercase; at least one lowercase; at least one digit; mandatory.
- Apply boundary value analysis to length. The boundaries are 8 and 20, so test 7, 8, 20 and 21 characters. That produces TC-REG-018, TC-REG-017 (8 characters), and TC-REG-021. A 20-character valid case can be added.
- Apply one-condition-fails-at-a-time to the composition rules. Remove only the uppercase letter, then only the digit, then only the lowercase letter. Each case keeps every other rule satisfied, so a failure identifies the faulty rule.
- Add the empty case. A blank password must trigger the mandatory-field message.
- Record the trace. Each case gets REQ-04 in the Requirement column, and the matrix row is updated.
Notice the gap this method exposes: the sample set has no lowercase-missing case. Spotting that when you review is exactly the habit an internship mentor wants to see.
Self-review checklist for your own test cases
Run every sample through this list before sharing it.
- Does every case name its requirement ID?
- Is each expected result something a second person could verify without asking you?
- Does each case test one condition only?
- Are test data values written out, not described as “valid email”?
- Are boundaries tested on both sides, not only one?
- Are preconditions stated?
- Is there at least one case for blank input, whitespace-only input, and special characters?
- Are there any duplicates that check the same thing with different words?
- Do case IDs follow one consistent pattern?
- Does the matrix flag areas where coverage is thin?
Common mistakes in beginner test cases
- Vague expected results. “Error is shown” fails review. State where and what text.
- Combining several checks in one case. When it fails, nobody knows which condition caused it.
- Only happy-path cases. Real defects hide in invalid and boundary input.
- Assuming behaviour the requirement does not state. If the requirement is silent on spaces in a password, log a question instead of inventing an answer.
- Copying a template without adapting it. Reviewers recognise generic downloaded cases quickly.
Extending the sample beyond functional cases
A small set of additional cases shows range. Keep them modest, and label each by type.
- Usability: Tab order moves logically from Name to Register; error messages are readable and sit next to the field.
- Compatibility: run the same positive case in two browsers and at one mobile screen width.
- Security-minded input: enter a short script tag as the name and check it is rejected or displayed as plain text. Keep this to simple input validation; do not test systems you do not own.
- Accessibility basics: each field has a visible label, and error text does not rely on colour alone.
Packaging the sample as a portfolio piece
A spreadsheet is the usual format. Use three sheets in one file: Requirements, Test Cases, and Traceability. Add a fourth sheet for defects if you executed the cases against a real page, with columns for defect ID, linked test case, steps, expected, actual and severity. Export a PDF copy so it opens on any device, and name the file clearly, for example YourName_TestCases_RegistrationForm.xlsx. A public repository or shared drive link on your resume works well, but keep the sample free of any real personal data.
To practise against a real flow, build the five-field form yourself in an hour with plain HTML, then execute your cases and record real actual results. A sample with genuine execution notes is far stronger than one that only lists intentions. The free two-week online internship at CareerSwami includes a free offer letter and a free completion certificate after successful completion, and it offers 26 tracks, so you can pair a sample like this with structured practice.
AKTU and the test case sample: where the internship rule and the testing syllabus meet
AKTU is an affiliating university set up by the Government of Uttar Pradesh in May 2000, with jurisdiction over the whole state. The same portal says it affiliates 700+ colleges, both government and private. In practice, a student at one of these colleges may find that the training coordinator, not the university office, handles day-to-day questions about reports and documents.
The timing of an internship matters for a testing sample. The 2023-24 second-year scheme for Plastic Engineering says a 4-week mini project or internship is done in the summer break after semester 4 and assessed in semester 5. The Textile Technology scheme lists the paper BCC351, “Internship Assessment/Mini Project”, as 100 marks and 2 credits. A third-party copy of the computer-related second-year scheme (CSE, IT, AI and related branches) repeats the same rule. These are excerpts from other branches or an unofficial mirror, so confirm the wording for your own branch and batch. An older 2019-20 scheme, seen in a third-party copy, placed a 3-4 week project after semester 2, so the rule has changed between schemes.
If your batch follows the 4-week pattern, a test case document, a traceability matrix and a short defect log from a sample application can become the working evidence for the report. Whether an online internship satisfies the requirement is not settled by anything verified here, so ask before relying on it.
The state’s URISE portal has a Central Training & Placement Cell page for AKTU, with 2025 announcements including a virtual internship offer for B.Tech, M.Tech, MBA and MCA students. Check the current page for what is open to you.
Checks before you start writing test cases
- Scheme PDF: Find your branch’s second-year evaluation scheme on the official AKTU site and confirm the internship or mini-project duration, the semester of assessment and whether BCC351 or an equivalent applies.
- Coordinator email: Ask your training coordinator in writing whether a self-built testing sample on a practice application qualifies as a mini project, or whether a host organisation is required.
- Report format: Request the college’s report template, signature requirements and submission date before drafting the document.
- Online internships: Ask whether a virtual internship is accepted for the credit-bearing paper, and what proof is needed.
- Placement cell: Ask whether the cell wants to know about external internships, and check its page for current offers.
A 7-day plan to build your sample
| Day | Task | Output |
|---|---|---|
| 1 | Choose a form and write 6 to 8 numbered requirements | Requirements sheet |
| 2 | Write positive cases for every requirement | 7 to 8 cases |
| 3 | Add negative cases using one-fault-at-a-time input | 10 or more cases |
| 4 | Add boundary cases from stated limits | 6 to 8 cases |
| 5 | Build the traceability matrix and find gaps | Matrix with gaps flagged |
| 6 | Execute cases and log real actual results and defects | Execution status, defect log |
| 7 | Review against the checklist and export | Final spreadsheet and PDF |
Frequently Asked Questions
How many test cases should a sample for a testing internship contain?
Between 15 and 30 well-built cases for one small feature is enough. Quality and traceability matter more than volume, and a sample of 200 repetitive cases looks weaker than 25 distinct ones.
What is the difference between a test scenario and a test case?
A scenario is a one-line idea, such as “verify registration with an invalid mobile number”. A test case turns it into exact steps, test data and an expected result. Many teams list scenarios first and then expand each into several cases.
Do I need a traceability matrix for a small form?
It is not required for a small form, but including one in a sample shows you understand coverage. It also helps you find missing cases quickly, which is why the example above flags a partial row.
Can I use a real website to write my test cases?
Writing cases from a public page is fine, but do not run aggressive or security-style tests on sites you do not own. For safe practice, build a small local form or use a practice site that explicitly invites testing.
Should the sample include actual results?
Only if you executed the cases. If you did not, leave the column blank or mark it “Not executed” and say the expected results are illustrative. Never fill in made-up pass results.
Which tool should I use, Excel, Google Sheets or a test management tool?
A spreadsheet is enough for a sample, and every mentor can open it. Learning a test management tool later is useful, but the thinking in the cases is what is assessed first.
Is a testing internship accepted by AKTU for training credit?
That depends on your college and the scheme your batch follows, so it cannot be assumed. Use the written questions in the “Confirm with your college” list and keep the reply with your records.
What should I learn after test case writing?
The natural next steps are writing defect reports, learning basic SQL for data checks, and a first look at test automation with a simple browser tool. Each builds on a clear set of manual cases like the ones above.
Related Software Testing guides
- Software Testing Internship Report Structure for MAKAUT Students: Test Plans and Bug Reports
- API Testing Basics for a Software Testing Internship: A Starter Guide for GTU Students
- Selenium Practice Projects for Software Testing Internships: Savitribai Phule Pune University Guide
- All Software Testing internship guides
Ready to put this into practice?
Join the free two-week CareerSwami online internship in Software Testing. The internship, the offer letter and the completion certificate are free.














