Test Case

Test Case: A set of input values, execution preconditions, expected results and execution postconditions, developed for a particular objective or test condition, such as to exercise a particular program path or to verify compliance with a specific requirement. Test Case is a commonly used term for a specific test. This is usually the smallest unit of testing. A Test Case will consist of information such as requirements testing, test steps, verification steps, prerequisites, outputs, test environment, etc. A set of inputs, execution preconditions, and expected outcomes developed for a particular objective, such as to exercise a particular program path or to verify compliance with a specific requirement.

Test Case Format:

Test Case ID Test Case (Objective) Steps Input Data Expected Output











Below is an example of writing test cases:

Test Cases for Registration on a Website
  • Check and verify that server open other page even after user type the URL(www.xxxxxx.com)
  • Check and verify that server does not open "New user registration " form on clicking  "new user" link
  • Check and verify that server open invalid page  on clicking  "new user" link
  • Check and verify that server should open "congratulation page" even after leaving mandatory fields blank.
  • Check and verify that server  accept credentials (login id)  already in use.
  • Check and verify that server accepts  password and confirm password even after giving different password and confirm password.
  • Check and verify that server accepts the password which is not in the range of  6-32 characters.
  • Check and verify that server accepts the wrong captcha code.
  • Check and verify that server does not change captcha code even after click "Try new characters".
  • Check and verify that server does not respond to "Need Audio Assistance" even after clicking it.
  • Check and verify that server does not create new account even after completing the form and clicking "Create My Account " link.
  • Check and verify that server show "Congratulation page " even registration form is not completed.
  • Check and verify that server does not open user home page even though user clicks "continue" on "Congratulation Page"
  • Check and verify that server open invalid page even though user clicks "continue" on "Congratulation Page"
  • Check and verify that server open error  page even though user clicks "continue" on "Congratulation Page"
  • Check and verify that server does not sign off the user even after user clicks "sign out" link.
  • Check and verify that server opens the user's home page on clicking back button even though user is sign out.
  • Check that the server cancels the registration process after clicking "cancel" button
  • Check that server open "Password recovering " page after selecting "Forget password."
  • Check that server open XXXXX home page after writing url www.xxxxxx.com
  • Check that server opens new user registration page as user clicks to "new user" link
  • Check that server create the user account as user fill the form and clicks to "Create My Account " button
  • Check that server open user's home page after user clicks to "continue " on "congratulation Page"
  • Check that server sign off the user after clicking "sign out"