๐Ÿงช

Software Testing and Quality Assurance Notes

Aug 19, 2024

Laboratory Practice II - Software Testing and Quality Assurance

Professor Introduction

  • Professor Puja Ptin
  • TSSM College of Engineering and Research, Computer Engineering Department

Overview

  • Topic: Laboratory Practice II for final year students
  • Subject focus: Software Testing and Quality Assurance
  • Objective: Develop a mini project through assignments

Assignment #4: Test Cases for Email Login

Assignment Details

  • Title: Write test cases for email login using manual testing
  • Learning Objective: Understand how to write test cases for email login
  • Outcome: Students will be able to implement test cases for email login using manual testing

Key Concepts

Test Case

  • Definition: Document detailing user actions and expected results
  • Components of a test case:
    • Precondition
    • Test data
    • Expected results
    • Post-condition
    • Actual result
  • Difference between test case and test scenario:
    • Test case: Detailed execution steps
    • Test scenario: General idea of what to test (e.g., verify login functionality)

Rules for Writing Test Cases

  1. Format: Preferably written in Excel for clarity; can also use Notepad/Word
  2. Naming Convention: Assign unique IDs for easier tracking
  3. Valid and Invalid Test Cases:
    • Valid: Correct username/password should log in
    • Invalid: Incorrect username/password should reject login

Test Case Template Format

Required Fields

  • Project Name
  • Module Name
  • Reference Document
  • Created By
  • Date of Creation
  • Date of Review
  • Test Case ID
  • Test Scenario
  • Test Case Description
  • Preconditions
  • Test Steps
  • Test Data
  • Expected Result
  • Post Conditions
  • Actual Result
  • Status (Pass/Fail)

Example Test Case

Positive Test Case

  • Test Case ID: 01
  • Scenario: Verify login of Gmail
  • Description: Enter valid username and password
  • Precondition: Valid Gmail account required
  • Test Steps:
    1. Enter valid username
    2. Enter password
    3. Click login button
  • Test Data: Valid username and password
  • Expected Result: Successful login, Gmail inbox appears
  • Post Condition: Gmail inbox is displayed
  • Actual Result: User is taken to Gmail inbox
  • Status: Pass

Negative Test Case

  • Test Case ID: 02
  • Scenario: Verify login of Gmail
  • Description: Enter valid username and invalid password
  • Precondition: Valid Gmail account required
  • Test Steps:
    1. Enter valid username
    2. Enter invalid password
    3. Click login button
  • Test Data: Valid username, invalid password
  • Expected Result: Error message displayed ("Email and password do not match")
  • Post Condition: Login attempt is rejected
  • Actual Result: Error message shown
  • Status: Fail

Conclusion

  • Students encouraged to create additional test cases (e.g., for e-banking/ATM) using provided framework.