Showing posts with label Test cases. Show all posts
Showing posts with label Test cases. Show all posts

Wednesday, May 8, 2013

Field Level Cases

Name

Allowed Field Length-50

Valid Data
==Alphabets
==Allow Numbers(unless proposed)
==Allowed Special characters( -,&,. ,',Space)

Invalid Data-
==Blank
==Special chars like ~,!,@,#,$,%,^,*,(,),_,+,{,},:,",<,>,?,|,/,comma,;,],[,=,
==adding more characters to this field than the field size limit
-----------------------------------------------------------------------------------------------------

Address

Allowed Field Length-500

Valid Data
==Alphabets, numbers and few special
==characters like #,@,/,(,), . ,comma,Space and - only

Invalid Data-
==Blank
==Special chars like ~,!,$,%,^,&,*,_,+,{,},:,",<,>,?,|,',;,],[,=,`
==adding more characters to this field than the field size limit

-------------------------------------------------------------------------------------------------------
File upload

Valid Data
==Upload supported file format,Single or multiple file upload

Invalid Data-
1]Blank
2]Upload file with filename having special character like #.png
3]Upload large sized file more that max allowed
4]Single or multiple file upload
5]Once again upload file which has already been uploaded
6]Write a wrong path or a path where no such file exits and click 
upload
7]No plain text or characters should be allowed
8]Upload unsupported file format
---------------------------------------------------------------------------------------------------------
Birth Date

Valid Data
Numbers,Special characters like hyphen(-),slash(/),depending on format accepted

Invalid Data-
1]Blank
2]Upload file with filename having special character like #.png
3]Upload large sized file more that max allowed
4]Single or multiple file upload
5]Once again upload file which has already been uploaded
6]Write a wrong path or a path where no such file exits and click 
upload
7]No plain text or characters should be allowed
8]Upload unsupported file format
---------------------------------------------------------------------------------------------------------
Email

Allowed Field Length-320

Valid Data
mail@domain.com
firstname.lastname@domain.com
email@subdomain.domain.com
firstname+lastname@domain.com
email@123.123.123.123
email@[123.123.123.123]
"email"@domain.com
1234567890@domain.com
email@domain-one.com
_@domain.com
email@domain.name
email@domain.co.jp
firstname-lastname@domain.com

Invalid Data-
plainaddress
#@%^%#$@#$@#.com
@domain.com
Joe Smith
email.domain.com
email@domain@domain.com
.email@domain.com
email.@domain.com
email..email@domain.com
あいうえお@domain.com
email@domain.com (Joe Smith)
email@domain
email@-domain.com
email@domain.web
email@111.222.333.44444
email@domain..com
Blank
Adding more characters to this field than the field size limit
------------------------------------------------------------------------------------------------------

URL

Valid Data
1]Add urls containing http:// and https://
2]Consider things like domains and subdomains ... www.google.com and www.maps.google.com
3]Presence of trailing slash -http://example.com/foo/
4]Absence of trailing slash-http://example.com/foo
5]Non-standard port ... http://www.example.com:8800
6]Deep path after the host ... http://www.example.com/a/b/c/d/e/f/g/h/i.html
7]URL Parameters ... http://www.test.com?pageid=123&testid=1524
8]Anchor tags ... http://www.test.com/do.html#A

Invalid Data-
1]test.com/?q=vijay’s!@#$%^&*()_+}{“:?><,./;’[]web_page
2]URL must not contain a literal space( It must either be encoded using the percent-encoding or a different 
encoding that uses URL-safe characters)


Thursday, October 25, 2012

Email address test cases

Valid Email addressReason
email@domain.comValid email
firstname.lastname@domain.comEmail contains dot in the address field
email@subdomain.domain.comEmail contains dot with subdomain
firstname+lastname@domain.comPlus sign is considered valid character
email@123.123.123.123Domain is valid IP address
email@[123.123.123.123]Square bracket around IP address is considered valid
"email"@domain.comQuotes around email is considered valid
1234567890@domain.comDigits in address are valid
email@domain-one.comDash in domain name is valid
_______@domain.comUnderscore in the address field is valid
email@domain.name.name is valid Top Level Domain name
email@domain.co.jpDot in Top Level Domain name also considered valid (use co.jp as example here)
firstname-lastname@domain.comDash in address field is valid


Invalid Email addressReason
plainaddressMissing @ sign and domain
#@%^%#$@#$@#.comGarbage
@domain.comMissing username
Joe Smith Encoded html within email is invalid
email.domain.comMissing @
email@domain@domain.comTwo @ sign
.email@domain.comLeading dot in address is not allowed
email.@domain.comTrailing dot in address is not allowed
email..email@domain.comMultiple dots
あいうえお@domain.comUnicode char as address
email@domain.com (Joe Smith)Text followed email is not allowed
email@domainMissing top level domain (.com/.net/.org/etc)
email@-domain.comLeading dash in front of domain is invalid
email@domain.web.web is not a valid top level domain
email@111.222.333.44444Invalid IP format
email@domain..comMultiple dot in the domain portion is invalid

Captcha test cases

  • Incorrect captcha code
  • User should not be able to copy paste
  • Only alphabets/digits should be allowed in captcha,no special characters in captcha
  • On page refresh it should bring another captcha
  • Correct  captcha should be accepted.
  • No offensive languages should be used.
  • Proper error message if incorrect captcha is entered.

DATE field test cases

  1. Manual entry of date field or calendar control is provided
  2. Click on submit with empty details
  3. Click on submit with valid details.
  4. Check UI::if button and field are properly aligned.
  5. Check if character are not allowed.
  6. Check the format(dd/mm/yyyy)

Multilingual Testing cases

1]Test Error messages
2]Test Date format
3]Labels,contents which are static
4]Is UI disturbed when translated to other languages?
5]Input data with different languages
6]On redirecting to paypal gateway,the amount should be multilingual.

Top 10 negative test cases

1)Use of Single quote in entries
2)Submit with required fields only
3)Submit with invalid field size
4)Submit with invalid field type
5)Numeric fields with numeric bound(negative and positive integers)
6)Numeric fields with numeric limit(both upper and lower bound)
7)Date validity
8)Invalid date
9)Session test
10)Performance testing