Wednesday, July 9, 2025

Top 15 Test Cases for Login Page – Manual & Automation Examples (With Bug Scenarios)

Top 15 Test Cases for Login Page – Manual & Automation Examples (With Bug Scenarios)

Testing a login page is one of the most important tasks in software testing. Whether you’re preparing for a QA interview or writing real-time test cases for your web or mobile application, a login module provides many critical validations. In this post, you’ll learn manual test cases, common bugs, and Selenium automation examples for login functionality.

ЁЯФН Why Login Page Testing Is Important?

  • The first point of user interaction with the app
  • Security entry point – needs proper validation
  • The most common area where users face errors

ЁЯУЭ Top 15 Manual Test Cases for Login Page

Test Case ID Scenario Test Steps Expected Result
TC001 Valid username and password Enter valid credentials and click Login The user should be redirected to the dashboard
TC002 Invalid password Enter a valid username and the wrong password The error message should appear
TC003 Blank username and password Leave both fields blank and click Login Validation messages should be displayed
TC004 Blank username only Leave the username blank, enter the password, and click Login The username required message should appear
TC005 Blank password only Enter username, leave the password blank, click Login Password required message should appear
TC006 SQL injection attempt Enter "admin' OR 1=1--" as the username Input should be rejected and sanitized
TC007 Special characters in the username Enter special characters like '@#$%' Error or input validation message should appear
TC008 The password field is masked Check if the password is displayed as dots or asterisks Characters should be hidden
TC009 Remember Me checkbox Select the checkbox and log in The user should stay logged in on the next visit
TC010 Forgot Password link Click the link and validate the navigation The user should go to the reset password screen
TC011 Case sensitivity Enter uppercase instead of lowercase username The system should handle case sensitivity properly
TC012 Browser Back button after login Log in successfully and press the browser back button The user should not return to the login page or see cached content
TC013 Multiple failed login attempts Try logging in with the wrong password 5 times Account lock or CAPTCHA should appear
TC014 Login session timeout Login and remain idle The session should expire after the defined timeout
TC015 Mobile responsiveness Open the login page on mobile devices The login form should render correctly on smaller screens

ЁЯРЮ Common Bug Scenarios on Login Page

  • Login accepts invalid email or empty credentials
  • The password is visible even after clicking the "eye" toggle
  • No validation messages for blank fields
  • Incorrect redirect after login
  • The session has not expired after logging out

ЁЯдЦ Selenium Automation Example – Valid Login Test


@Test
public void validLoginTest() {
    WebDriver driver = new ChromeDriver();
    driver.get("https://example.com/login");
    
    driver.findElement(By.id("username")).sendKeys("testuser");
    driver.findElement(By.id("password")).sendKeys("testpass");
    driver.findElement(By.id("loginBtn")).click();
    
    String expectedTitle = "Dashboard";
    String actualTitle = driver.getTitle();
    Assert.assertEquals(actualTitle, expectedTitle);

    driver.quit();
}

This Selenium test script verifies a successful login using valid credentials. You can also write negative test cases using invalid passwords and assert error messages.

ЁЯСЛ Hi, I'm Suriya — QA Engineer with 4+ years of experience in manual, API & automation testing.

ЁЯУм Contact Me | LinkedIn | GitHub

ЁЯУМ Follow for: Real-Time Test Cases, Bug Reports, Selenium Frameworks.

Role of AI in Software Testing – What’s Changing?

ЁЯФН Role of AI in Software Testing – What’s Changing?

Artificial Intelligence (AI) is revolutionizing software testing by automating complex tasks, enhancing accuracy, and speeding up delivery cycles. Traditional manual and scripted automation testing often require significant human effort and time. AI brings intelligence, learning capability, and efficiency to testing processes.

ЁЯза Traditional Testing vs AI-Driven Testing

Feature/Aspect Traditional Testing AI-Driven Testing
Test Case Creation Manual or script-based Auto-generated using ML from usage patterns
Test Execution Manual or automated scripts Intelligent execution, self-healing scripts
Defect Prediction Based on past human knowledge Predicts based on data patterns
Test Maintenance High effort for UI changes AI auto-updates test cases (self-healing)
Data Handling Manually prepared test data AI generates synthetic test data
Test Coverage Based on human planning Expanded through AI-driven analysis

ЁЯЪА Key Ways AI Is Changing Software Testing

1. Test Case Generation

AI analyzes user behavior, logs, and requirements to automatically generate test cases. This saves time and reduces missed edge cases.

2. Test Suite Optimization

AI identifies redundant or low-value test cases, prioritizing high-risk areas for faster regression cycles.

3. Self-Healing Test Scripts

When UI changes occur (e.g., button ID or label changes), AI automatically updates scripts without manual intervention.

4. Defect Prediction and Root Cause Analysis

Machine Learning models can predict bugs based on historical data and help identify the root cause of test failures.

5. Visual Testing with AI

AI-based visual tools like Applitools use image recognition to detect layout/UI bugs traditional testing might miss.

6. Natural Language Processing (NLP)

Tools like Testim and Mabl use NLP to convert plain English into test cases, simplifying test writing.

7. AI in Performance Testing

AI detects performance bottlenecks, predicts infrastructure needs, and smartly scales during load testing.

ЁЯзк Tools Using AI in Testing

Tool AI Features Included
Testim AI-based test case generation and maintenance
Mabl Intelligent test execution, self-healing tests
Applitools Visual AI testing and UI validation
Functionize NLP-based test creation and execution
ACCELQ Autonomous test generation and planning

✅ Benefits of AI in Testing

  • Faster time to market
  • Reduced manual effort
  • Improved accuracy
  • Smarter test coverage
  • Adaptive to frequent changes (Agile/CI-CD)

ЁЯзй Challenges & Considerations

  • Initial tool learning curve and training data needs
  • False positives/negatives from poorly trained models
  • Still requires human validation for business logic
  • Limited in certain non-functional testing areas (e.g., accessibility)

ЁЯФо The Future Outlook

AI won’t replace testers — it will augment human capabilities. Testers will focus more on strategy, data science, and model validation as routine tasks become automated.

Summary:
“AI in software testing is not just a trend – it’s a shift. Testers are becoming test engineers, using AI to shift from doing to deciding.”

ЁЯСЛ Hi, I'm Suriya — QA Engineer with 4+ years of experience in manual, API & automation testing.

ЁЯУм Contact Me | LinkedIn | GitHub

ЁЯУМ Follow for: Real-Time Test Cases, Bug Reports, Selenium Frameworks.

Friday, July 4, 2025

How to Explain Testing Concepts in Tamil

ЁЯзк How to Explain Testing Concepts in Tamil (for Local Learners)

ЁЯУМ 1. Software Testing роОрой்ро▒ாро▓் роОрой்рой?

ро╡ிро│роХ்роХроо்: роТро░ு рооெрой்рокொро░ுро│் роЪро░ிропாроХ ро╡ேро▓ை роЪெроп்роХிро▒родா, рокிро┤ைропிро▓்ро▓ைропா роОрой்рокродை рокро░ிроЪோродிрок்рокродைропே Software Testing роОрой роЕро┤ைроХ்роХிро▒ோроо்.

роЙродாро░рогроо்: роТро░ு рооро░ுрод்родுро╡рооройை роЪெропро▓ிропிро▓் роиோропாро│ி роЯைроЯ்роЯро▓் рокுроХ் роЪெроп்ропுроо் рокொро┤ுродு, роЕро╡рой் рокெропро░், ро╡ропродு, рооро░ுрод்родுро╡роо் роЕройைрод்родுроо் роЪро░ிропாроХроЪ் роЪேрооிроХ்роХрок்рокроЯுроХிро▒родா роОрой்ро▒ு рокாро░்рок்рокродு родாрой் роЪோродройை.

ЁЯУМ 2. Bug (рокிро┤ை) роОрой்ро▒ாро▓் роОрой்рой?

ро╡ிро│роХ்роХроо்: рооெрой்рокொро░ுро│் роОродிро░்рокாро░்род்родрокроЯி ро╡ேро▓ை роЪெроп்ропாрооро▓், родро╡ро▒ாрой ро╡ிро│ைро╡ுроХро│ை родро░ுроо் роиிро▓ைропை “Bug” роОрой்роХிро▒ோроо்.

роЙродாро░рогроо்: роТро░ு app-ро▓் "Pay" рокроЯ்роЯройை роХிро│ிроХ் роЪெроп்род рокிро▒роХு рокрогроо் ро╡ிро▓ைропிро▓்ро▓ை, роЖройாро▓் success message ро╡рои்родுро╡ிроЯ்роЯродு. роЗродு роТро░ு рокிро┤ை.

ЁЯУМ 3. Manual Testing (роХைрооுро▒ை роЪோродройை):

ро╡ிро│роХ்роХроо்: роХроо்рок்ропூроЯ்роЯро░ிро▓் роЙро│்ро│ роЪெропро▓ிропை роиாрооே роХைропிро▓் роУроЯ்роЯி (manually) роЪோродройை роЪெроп்ро╡родு.

роЙродாро░рогроо்: Login роЪெроп்ропுроо் рокроХ்роХроо் родிро▒рои்родு, роЪро░ிропாрой username, password роЯைрок் роЪெроп்родு, system роОрок்рокроЯி рокродிро▓ро│ிроХ்роХிро▒родு роОрой்ро▒ு рокாро░்рок்рокродு.

ЁЯУМ 4. Automation Testing (родாройிропроЩ்роХி роЪோродройை):

ро╡ிро│роХ்роХроо்: роТро░ு tool (роЙродாро░рогроо்: Selenium) рокропрой்рокроЯுрод்родி, рооெрой்рокொро░ுро│் роЪோродройைропை родாройாроХро╡ே роУроЯро╡ைроХ்роХிро▒ோроо்.

роЙродாро░рогроо்: 100 рокேро░் login роЪெроп்ропроХ்роХூроЯிропродு роОрой்рокродை роТро╡்ро╡ொрой்ро▒ாроХ роХைропாро▓் роЪோродிроХ்роХாрооро▓், роТро░ு program роОро┤ுродிро╡ிроЯ்роЯாро▓் system родாрой் роУроЯ்роЯுроо்.

ЁЯУМ 5. Test Case (роЪோродройை ро╡ро┤ிрооுро▒ை):

ро╡ிро│роХ்роХроо்: роТро╡்ро╡ொро░ு роЪெропро▓ை роОрок்рокроЯிроЪ் роЪோродிроХ்роХ ро╡ேрог்роЯுроо் роОрой்ро▒ родிроЯ்роЯрооிроЯро▓்.

Login рокроХ்роХроо்:

  • Step 1: Username родроЯ்роЯро╡ுроо்
  • Step 2: Password родроЯ்роЯро╡ுроо்
  • Step 3: Login рокроЯ்роЯройை роЕро┤ுрод்родро╡ுроо்

роОродிро░்рокாро░்рок்рокு: рооுроХрок்рокு рокроХ்роХроо் ро╡ро░ுроо்

ЁЯУМ 6. Test Scenario (роЪோродройை роиிро▓ை):

ро╡ிро│роХ்роХроо்: рокропройро░் роЪெропро▓்рооுро▒ை роЕроЯிрок்рокроЯைропிро▓் рокро░ிроЪோродிроХ்роХ ро╡ேрог்роЯிроп роиிро▓ை.

роЙродாро░рогроо்: “Patient Appointment Booking” роОрой்рокродு роТро░ு scenario. роЗродுроХ்роХுро│் рокро▓ test cases роЗро░ுроХ்роХுроо் – register, select doctor, select date, confirm.

ЁЯУМ 7. Defect Life Cycle (рокிро┤ை ро╡ாро┤்роХ்роХை роЪுро┤ро▒்роЪி):

ро╡ிро│роХ்роХроо்: роТро░ு рокிро┤ை роХрог்роЯுрокிроЯிроХ்роХрок்рокроЯ்роЯ рооுродро▓் роиாро│ிро▓ிро░ுрои்родு роЕродு родீро░்роХ்роХрок்рокроЯுроо் ро╡ро░ை роЙро│்ро│ роиிро▓ைроХро│்:

  • New → Assigned → Open → Fixed → Retest → Closed (роЕро▓்ро▓родு Reopen)

ЁЯУМ 8. Regression Testing (рооீрог்роЯுроо் роЪோродройை):

ро╡ிро│роХ்роХроо்: рокுродிроп рооாро▒்ро▒роЩ்роХро│ாро▓் рокро┤ைроп роЕроо்роЪроЩ்роХро│் рокாродிроХ்роХрок்рокроЯுроХிро▒родா роОрой்рокродை роЪро░ிрокாро░்рок்рокродு.

роЙродாро░рогроо்: “Search Doctor” рокроХ்роХрод்родிро▓் рооாро▒்ро▒роо் роЪெроп்родோроо். роЖройாро▓் “Book Appointment” ро╡ேро▓ை роЪெроп்роХிро▒родா роОрой்ро▒ு рооீрог்роЯுроо் роЪோродிроХ்роХிро▒ோроо்.

ЁЯУМ 9. Performance Testing (родிро▒рой் роЪோродройை):

ро╡ிро│роХ்роХроо்: рооெрой்рокொро░ுро│் ро╡ேроХрооாроХ ро╡ேро▓ை роЪெроп்роХிро▒родா, роЕродிроХ load-роХ்роХு роОродிро░ாроХ роОрок்рокроЯி роЪெропро▓்рокроЯுроХிро▒родு роОрой்ро▒ு рокாро░்роХ்роХிро▒ோроо்.

Tool: JMeter

ЁЯУМ 10. Bug Reporting (рокிро┤ை роЕро▒ிроХ்роХைроХро│்):

ро╡ிро│роХ்роХроо்: роХрог்роЯுрокிроЯிроХ்роХрок்рокроЯ்роЯ рокிро┤ைроХро│ை documentation роЪெроп்родு development роХுро┤ுро╡ிроЯроо் родெро░ிро╡ிрок்рокродு.

Tool: Jira, Bugzilla

✅ Bonus Tip:

роЙрог்рооைропாрой роТрок்рокீроЯு: роТро░ு рокொро░ுро│் ро╡ிро▒்рокройைроХ்роХு ро╡ро░ுро╡родро▒்роХு рооுрой்ройாро▓் роЕродை рокро░ிроЪோродிроХ்роХுроо் роЕро│ро╡ுроХ்роХு QA рооுроХ்роХிропроо். рооெрой்рокொро░ுро│் роОрой்рокродு рооро░ுрои்родு рокோро▓ – роЪро░ிропாроХ ро╡ேро▓ை роЪெроп்ропாро╡ிроЯ்роЯாро▓் роЖрокрод்родு.

ЁЯСЛ Hi, I'm Suriya — QA Engineer with 4+ years of experience in manual, API & automation testing.

ЁЯУм Contact Me | LinkedIn | GitHub

ЁЯУМ Follow for: Real-Time Test Cases, Bug Reports, Selenium Frameworks.

A Day in the Life of a QA Working on a Medical App

ЁЯй║ A Day in the Life of a QA Working on a Medical App

Working in QA for a medical application isn’t just about writing test cases — it’s about ensuring patient safety, data privacy, and compliance with healthcare regulations. Here's what a typical day looks like for me:

ЁЯХШ 9:00 AM – Morning Standup

We start the day with a daily stand-up call. The product team, developers, and QAs share updates. For me, this is the time to raise concerns about yesterday’s test results or any blockers in automation runs.

ЁЯУД 10:00 AM – Reviewing Requirements

Before diving into testing, I read through user stories and FSDs (Functional Spec Documents). In the medical domain, I verify that all HIPAA compliance notes and audit trail requirements are clear.

ЁЯзк 11:00 AM – Manual Testing Critical Flows

I start by manually testing critical flows like patient registration, appointment booking, EMR (Electronic Medical Records) viewing, and prescription generation. I focus on edge cases, validation, and field-level security.

ЁЯТ╗ 1:00 PM – Automation Script Review

Post-lunch, I review the automated Selenium + Java test cases that ran on Jenkins overnight. If any failed, I analyze logs, screenshots, and check whether the failure is due to flaky scripts or actual application issues.

ЁЯУ▓ 2:30 PM – API Testing with Postman

I test appointment APIs, authentication tokens, and data sync endpoints using Postman. For medical apps, secure transmission of patient data (often in JSON or HL7 format) is critical.

ЁЯЫб️ 4:00 PM – Compliance & Security Checklist

I perform checks for access control, role-based permissions (Doctor, Nurse, Admin, Patient), and ensure error messages don’t leak sensitive data. I also check that sessions time out securely and that data is encrypted at rest.

ЁЯУЛ 5:30 PM – Bug Reporting & Test Case Updates

By end of day, I log all bugs found in Jira, update the test case execution sheet, and document regression impacts if needed. I also prepare for the next day’s test plan and share a status update with the team.

ЁЯФЪ Final Thoughts

Being a QA in a healthcare app requires technical expertise and a sense of responsibility. One bug can impact real people’s health — so attention to detail and rigorous validation is not optional, it’s mandatory.

If you're working in or planning to join healthcare QA, let me know your experiences or doubts in the comments!

ЁЯСЛ Hi, I'm Suriya — QA Engineer with 4+ years of experience in manual, API & automation testing.

ЁЯУм Contact Me | LinkedIn | GitHub

ЁЯУМ Follow for: Real-Time Test Cases, Bug Reports, Selenium Frameworks.

Case Study: Testing a Food Delivery App (Real Project Tasks)

ЁЯУж Case Study: Testing a Food Delivery App (Real Project Tasks)

In this case study, I’ll walk you through how I tested a real-world food delivery application, covering the different types of testing I performed and the actual modules I worked on.

ЁЯУ▒ Application Overview

  • Platform: Web and Mobile App (iOS & Android)
  • Users: Super Admin, Restaurant Admin, Customer, Delivery Boy
  • Tech Stack: React, Node.js, MongoDB, Firebase

ЁЯзк Testing Types Performed

  • Functional Testing – Verified core features like order placement, payment, and delivery flow.
  • UI Testing – Checked responsiveness, alignment, and element visibility across devices.
  • Regression Testing – After each deployment or feature enhancement.
  • Cross-Browser Testing – Chrome, Firefox, Safari compatibility for web interface.
  • API Testing – Used Postman to validate RESTful endpoints for user login, orders, and menu updates.

ЁЯзС‍ЁЯТ╗ Modules Tested

  • ЁЯФР User Registration & Login (OTP & Email-based)
  • ЁЯНФ Restaurant Menu Management (CRUD operations)
  • ЁЯЫТ Cart & Checkout Flow (Add, remove items, promo codes)
  • ЁЯТ│ Payment Integration (Razorpay/Stripe sandbox testing)
  • ЁЯЪ┤ Order Assignment to Delivery Boys
  • ЁЯУН Real-Time Order Tracking (Google Maps)
  • ЁЯУК Admin Dashboard Analytics & Reports

ЁЯУЭ Sample Test Case Table

Test Case Expected Result Status
The user places an order with a valid payment The order should be accepted and visible in the order history Pass
The delivery boy accepts the order Status changes to "Out for delivery" Pass
Invalid promo code applied Display appropriate error message Pass

ЁЯРЮ Bugs Found

  • Promo code applied multiple times in the cart
  • The order tracking map is not loading on iOS
  • Menu item image upload fails on slow network
  • Delivery boy app crashes on auto logout

ЁЯФЪ Conclusion

This project helped me gain practical experience in end-to-end QA for a multi-user food delivery ecosystem. It involved API testing, real-time validations, UI cross-checks, and regression cycles. A strong reminder that good testing means thinking like both the customer and the developer.

ЁЯСЛ Hi, I'm Suriya — QA Engineer with 4+ years of experience in manual, API & automation testing.

ЁЯУм Contact Me | LinkedIn | GitHub

ЁЯУМ Follow for: Real-Time Test Cases, Bug Reports, Selenium Frameworks.