Italian Trulli

Test Cases For Passport Number Field

Test Tribe
.
Sample Test Cases for Passport Number Field

Hello Folks, 

In this tutorial, we will learn how to write passport Number Test Cases? We will also learn about positive test scenarios and Negative test scenarios.


What are the test Cases For Passport Numbers?
Here, Important test cases for the passport number field are given.

Passport Number format in India 
Example - J8369845

Positive Test Cases For Passport Number -

  • Check passport number should be 8 characters long valid number.
  • Check that the first character of the passport should be in the Uppercase alphabet.
  • Check that the next two characters should be a number, but the first character should be any number from 1-9 (one to nine) and the second character should be any number from 0-9 (Zero to nine).
  • Check that the next four characters should be any number from 0-9 (Zero to nine).
  • Check that the last character should be any number from 1-9 (one to nine).
  • Check whether the alert message shows or not when the user enters an invalid passport number.
  • Verify whether the alert message is per requirement or not.


Negative Test Case for passport field -

  • Check the field by entering the passport number more than 8 Char.
  • Check the field by entering the passport number less than 8 Char.
  • Verify the passport field by entering the blank space only.
  • Check the passport field by entering the combination of number and blank space.
  • Check the field by entering the special char.
  • Verify the passport field by entering the first char of the passport as a number.
  • Verify the Passport field by entering the alphabet only.
  • Verify the passport number as a number only.
  • Verify the passport field by entering the second Char as 0(zero)
  • Verify the passport field by entering the last char as 0(zero ).
  • Check that when the user pastes an invalid passport number.


Hope !!! The above test cases for the passport field validation are helpful for you ...

Team,
QA acharya

Share Your Knowledge With Us -
Mail your content - qaacharya.in@gmail.com
 
Test Cases for passport field

Post a Comment

0 Comments