Amazon offers

Input Data Validation



Every web application is expected have at least one submit form. Data entered in form is transferred as input to database or to any other application and will decide the output. So, input data plays a very important role in retrieving the output data.


Such data needs to be validated by the code. And tester has the responsibility of validating such data.
At this point tester thinks about how can the validations be done and what type of data should be provided to validate the input field. Test data needs to be created and passed to the form through the automation tool or manually.

Here are few steps or guide lines to validate the data.

Let’s consider a sample form which acts as input to signing in as new member in a social networking site like facebook. It contains different types of input fields – Numeric, String, Alpha Numeric, date, preset values (from drop downs or check boxes), file uploads and Email addresses.

Name: String input field
Password : Alphanumeric field
Age: Numeric input field
Address: Alpha numeric
Date: Date of Birth
Email Address: Email field
Profile Image: Photo of the member: File upload

Validations which can be performed on such forms are

1.      Name :
a.       Should start with letter
b.      Should not contain numbers.(unless proposed)
c.       Should contain string characters only.
d.      Can contain underscore (_) ,hyphen  (-) and single quotation (')
e.      Can contain space but along with string characters
2.      Password :
a.       Should be encrypted with any special character and should not be visible even to the person who is entering it. Generally it gets skipped from encrypting when it is passed through any testing tool.
b.      Can contain string characters, numerical and special characters.
c.       Should not contain only spaces
d.      Length factor should be tested.
3.      Age :
a.       Should start with number
b.      Should not contain characters
c.      Should contain numbers only
d.      Should not contain special characters and spaces also
e.      Should not have all zeroes or single 0
4.      Address :
a.       Can contain string characters, numeric, special characters.
b.      Should contain only spaces
c.       Should not contain junk data, it should be meaningful
5.      Date :
a.       Can contain numbers
b.      Can contain special characters like hyphen (-),slash(/) depending on format accepted
c.        Can contain string characters depending on format
d.      Some cases should not accept future date like for date of birth we cannot put future date.
e.      Some cases should not accept past date like for any activity which is planned for future date.
6.      Email Address :
a.       Can contain numeric, string and special characters
b.      Should not contain only special characters or numbers
c.       Should not contain only spaces
d.      Should contain at least one at symbol (@)
e.      Should contain at least one dot (.)
7.      Profile image :
a.       Should be a path to the file which is to be uploaded
b.      File should be existing
c.       File format should be acceptable with the input field
d.      File size should be in the limits mentioned
8.      Apart from above we should also check the following in the input provided
a.       Length acceptable in the field
b.      Minimum length criteria is accepted or not
c.       Is the field mandatory ---then input is must and no spaces and all zeroes should be accepted.
d.      More number of spaces provided at the end or in between or at start of the data should be trimmed.
e.      Data in the form of SQL queries should not be accepted as they are provided to break the security system by hackers.
f.        Date which has HTML tags should not be provided. As they might be interpreted in different form when submitted as input data.


Points to be noted by developer when submit forms are designed

1.       Highlight the mandatory fields either by asterisk (*) or text “Mandatory” or coloring the text box in differentiating color.
2.       Mention the acceptable format near the date field.
3.       Mention the max length for the input fields which has limit restrictions.
4.       SQL queries should be identified and rejected.
5.       Same with HTML tags, they should be identified before passing the data.
6.       Errors should be in red. Or fields which have incorrect data should be highlighted in red.
7.       Provide the error message near each error field. Or provide all the errors in one section of the page mentioning the data field names clearly.




More Info


For Developers, these links below will help you a lot about what should be considered for data validation.

https://www.owasp.org/index.php/Data_Validation

http://www.clerkendweller.com/2008/11/21/Free-Text-Form-Field-Data-Validation

Comments

  1. Very helpful post!!

    Thanks a ton.....

    ReplyDelete
  2. Thanks for sharing informative post on white box testing. Your post helped me a lot to understand the difference between the white and black box testing.

    ReplyDelete
  3. Digital Marketing Training

    Thanks for sharing this informative blog. Recently I did Digital Marketing courses at a leading digital marketing company. It's really useful for me to make a bright career. If anyone wants to get Digital Marketing Training in Chennai visit infiniX.

    ReplyDelete
  4. This is certainly one of the most valuable article. Great tips from beginning to till end. Lot of information are available here.Super article.
    SEO Training in chennai | SEO Training chennai | SEO Course in chennai | SEO Course chennai

    ReplyDelete
  5. Your posts is really helpful for me.Thanks for your wonderful post. I am very happy to read your post.
    Web designing Training in chennai | Web designing Training chennai

    ReplyDelete
  6. online colleges in India
    Extremely wonderful blog. Your blog is extremely valuable for me. A debt of gratitude is in order for sharing this enlightening web journal. Keep refresh your blog

    ReplyDelete
  7. "thank for sharing this information, we are Chicago web Design and provide
    Content Writing Chicago"

    ReplyDelete
  8. Appreciation for really being thoughtful and also for deciding on certain marvelous guides most people really want to be aware of.

    java training in bangalore


    ReplyDelete
  9. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
    Best Hadoop Training Institute In chennai

    amazon-web-services-training-institute-in-chennai

    ReplyDelete
  10. It's uncommonly extraordinary blog. It will upgrade my crucial to more hoisted sum. Thankful to you for sharing this splendid site.
    Digital Marketing Course in Chennai | Digital Marketing Course | Digital Marketing Training in Chennai | Digital Marketing Chennai

    ReplyDelete
  11. Fantastic work! This is the type of information that should follow collective approximately the web. Embarrassment captivating position Google for not positioning this transmit higher! Enlarge taking place greater than and visit my web situate
    java training in chennai | java training in bangalore

    java online training | java training in pune

    java training in chennai | java training in bangalore

    java training in tambaram | java training in velachery

    ReplyDelete
  12. Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.


    MEAN stack training in Chennai

    MEAN stack training in bangalore

    MEAN stack training in tambaram

    MEAN stack training in annanagar

    MEAN stack training in Velachery

    MEAN stack training Sholinganallur

    ReplyDelete
  13. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.


    rpa training in Chennai | rpa training in velachery

    rpa training in tambaram | rpa training in sholinganallur

    rpa training in Chennai | rpa training in pune

    rpa online training | rpa training in bangalore

    ReplyDelete
  14. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
    Devops Training in Chennai

    Devops Training in Bangalore

    ReplyDelete
  15. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...

    java training in marathahalli | java training in btm layout

    java training in jayanagar | java training in electronic city

    ReplyDelete
  16. Read all the information that i've given in above article. It'll give u the whole idea about it.
    python online training
    python training in OMR
    python training in tambaram

    ReplyDelete
  17. Thanks for sharing this information I really enjoyed reading this article if you are looking for Financial planning for building a home please visit us.

    ReplyDelete
  18. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.
    Devops training in sholinganallur
    Devops training in velachery

    ReplyDelete
  19. Resources like the one you mentioned here will be very useful to me ! I will post a link to this page on my blog. I am sure my visitors will find that very useful

    angularjs Training in chennai
    angularjs Training in chennai

    angularjs-Training in tambaram

    angularjs-Training in sholinganallur

    angularjs-Training in velachery

    ReplyDelete
  20. Thanks for sharing this information I really enjoyed reading this article if you are looking for Velpaclear from the millionhealthpharmaceuticals please visit us.

    ReplyDelete
  21. My blog is in the same niche as yours, and my users would benefit from some of the information you provide here. Please let me know if this ok with you. Thank you.
    nebosh igc courses in chennai

    ReplyDelete
  22. Very Informative article you have described everything in a brilliant way. This is really useful article for begginer learner. Appreciated!

    Cloud Training
    Cloud Training in Chennai
    Cloud Training in OMR
    Cloud Training in Velachery
    Cloud Training in Thiruvanmiyur

    ReplyDelete
  23. It would have been the happiest moment for you,I mean if we have been waiting for something to happen and when it happens we forgot all hardwork and wait for getting that happened.
    angularjs online training

    apache spark online training

    informatica mdm online training

    devops online training

    aws online training

    ReplyDelete
  24. I am sure this post has helped me save many hours of browsing other related posts just to find what I was looking for. Many thanks!
    Microsoft Azure online training
    Selenium online training
    Java online training
    uipath online training
    Python online training


    ReplyDelete
  25. here are so many online guidelines for students like online tutorial classes, and they can even take Online Assignment Help  which help them in academics.

    ReplyDelete
  26. Excellent post, must say thanks for the information you added to this post. I appreciate your post and looking forward for more.


    ExcelR Data Science Course Bangalore

    ReplyDelete
  27. This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more ... good luck.
    date analytics certification training courses
    data science courses training

    ReplyDelete
  28. I quite like reading an article that can make people think. Also, thanks for allowing for me to comment!
    data analytics course malaysia

    ReplyDelete
  29. Attend The Python training in bangalore From ExcelR. Practical Python training in bangalore Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Python training in bangalore.
    python training in bangalore

    ReplyDelete
  30. Took me time to understand all of the comments, but I seriously enjoyed the write-up. It proved being really helpful to me and Im positive to all of the commenters right here! Its constantly nice when you can not only be informed, but also entertained! I am certain you had enjoyable writing this write-up.

    Big Data Course

    ReplyDelete
  31. I Really Like you post. This explained most of the things about Data Validation. Love to read you next article.


    ReplyDelete
  32. Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more.
    iot training in malaysia

    ReplyDelete

  33. Actually I read it yesterday but I had some thoughts about it and today I wanted to read it again because it is very well written.


    salesforce Training in Bangalore
    uipath Training in Bangalore
    blueprism Training in Bangalore

    ReplyDelete
  34. Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.

    aws Training in Bangalore
    python Training in Bangalore
    hadoop Training in Bangalore
    angular js Training in Bangalore
    bigdata analytics Training in Bangalore

    ReplyDelete
  35. Very interesting, good job and thanks for sharing such a good blog. your article is so convincing that I never stop myself to say something about it. You’re doing a great job. Keep it up

    aws Training in Bangalore
    python Training in Bangalore
    hadoop Training in Bangalore
    angular js Training in Bangalore
    bigdata analytics Training in Bangalore

    ReplyDelete

Post a Comment

Popular posts from this blog

How to test search functionality

Scrum Methodology - Quick Info