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
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
Great Post
ReplyDeleteVery helpful post!!
ReplyDeleteThanks a ton.....
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.
ReplyDeleteDigital Marketing Training
ReplyDeleteThanks 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.
This is certainly one of the most valuable article. Great tips from beginning to till end. Lot of information are available here.Super article.
ReplyDeleteSEO Training in chennai | SEO Training chennai | SEO Course in chennai | SEO Course chennai
Your posts is really helpful for me.Thanks for your wonderful post. I am very happy to read your post.
ReplyDeleteWeb designing Training in chennai | Web designing Training chennai
Very helpful post!!
ReplyDeleteoracle training in chennai
Best Seo company in delhi nc
ReplyDeleteThanks for giving great information about Digital marketing. Website Development Company NYC
ReplyDeleteWebsite Design Company NYC
online colleges in India
ReplyDeleteExtremely 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
"thank for sharing this information, we are Chicago web Design and provide
ReplyDeleteContent Writing Chicago"
Appreciation for really being thoughtful and also for deciding on certain marvelous guides most people really want to be aware of.
ReplyDeletejava training in bangalore
Wonderful post.This is nice post
ReplyDeleteIt's uncommonly extraordinary blog. It will upgrade my crucial to more hoisted sum. Thankful to you for sharing this splendid site.
ReplyDeleteDigital Marketing Course in Chennai | Digital Marketing Course | Digital Marketing Training in Chennai | Digital Marketing Chennai
Thanking you for sharing valuable information
ReplyDeleteDigtal marketing traning institue in chennai
Web design and development traning institue in chennai
Mobile app development traning institue in chennai
Thanks you for sharing this unique useful information content with us. Really awesome work. keep on blogging
ReplyDeletepython training in chennai | python training in bangalore
python online training | python training in pune
python training in chennai | python training in bangalore
python training in tambaram | python training in velachery
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
ReplyDeletejava 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
Nice post. By reading your blog, i get inspired and this provides some useful information. Thank you for posting this exclusive post for our vision.
ReplyDeleteHadoop Training in Chennai
Hadoop Training in Bangalore
Big data training in tambaram
Big data training in Sholinganallur
Big data training in annanagar
Big data training in Velachery
Big data training in Marathahalli
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.
ReplyDeleteMEAN 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
Awesome article. It is so detailed and well formatted that i enjoyed reading it as well as get some new information too.
ReplyDeleteData Science Training in Chennai
Data science training in bangalore
Data science online training
Data science training in pune
Data science training in kalyan nagar
selenium training in chennai
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.
ReplyDeleterpa 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
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.
ReplyDeleteDevops Training in Chennai
Devops Training in Bangalore
It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
ReplyDeletejava training in marathahalli | java training in btm layout
java training in jayanagar | java training in electronic city
Read all the information that i've given in above article. It'll give u the whole idea about it.
ReplyDeletepython online training
python training in OMR
python training in tambaram
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.
ReplyDeleteGreat 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.
ReplyDeleteDevops training in sholinganallur
Devops training in velachery
Awesome..You have clearly explained …Its very useful for me to know about new things..Keep on blogging..
ReplyDeleteData Science course in rajaji nagar | Data Science with Python course in chenni
Data Science course in electronic city | Data Science course in USA
Data science course in pune | Data science course in kalyan nagar
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
ReplyDeleteangularjs Training in chennai
angularjs Training in chennai
angularjs-Training in tambaram
angularjs-Training in sholinganallur
angularjs-Training in velachery
Thanks for sharing this information I really enjoyed reading this article if you are looking for Velpaclear from the millionhealthpharmaceuticals please visit us.
ReplyDeleteExcellent content!!! After reading your blog, I am curious to read the next part of the blog.
ReplyDeleteSelenium training in chennai
Selenium training institute in Chennai
iOS Course Chennai
Digital Marketing Training in Chennai
PHP Course Chennai
php course
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.
ReplyDeletenebosh igc courses in chennai
Very Informative article you have described everything in a brilliant way. This is really useful article for begginer learner. Appreciated!
ReplyDeleteCloud Training
Cloud Training in Chennai
Cloud Training in OMR
Cloud Training in Velachery
Cloud Training in Thiruvanmiyur
Excellent post gained so much of information, Keep posting like this.
ReplyDeleteaviation courses in Bangalore
aviation institute in Bangalore
best aviation academy in Bangalore
airlines courses Bangalore
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.
ReplyDeleteangularjs online training
apache spark online training
informatica mdm online training
devops online training
aws online training
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!
ReplyDeleteMicrosoft Azure online training
Selenium online training
Java online training
uipath online training
Python online training
Good to read. Check out one of the best training institutes in chennai
ReplyDeleteHardware training| Networking training in chennai | Hardware and networking in chennai KK nagar
Embedded Training| Embedded in chennai| Embedded training in chennai| best training institute in chennai
Best training in Blockchain in kk nagar chennai |Check Best Training @ Chennai in KK nagar, vadapalani in chennai |Blockchain institute in Chennai | Blockchain
Check Best Digital Marketing Training institute in KK nagar, Chennai | Software Courses| Real time Projects
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.
ReplyDeleteExcellent post, must say thanks for the information you added to this post. I appreciate your post and looking forward for more.
ReplyDeleteExcelR Data Science Course Bangalore
I quite like reading an article that can make people think. Also, thanks for allowing for me to comment!
ReplyDeletedata analytics course malaysia
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.
ReplyDeletepython training in bangalore
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.
ReplyDeleteBig Data Course
This is most user friendly and informative.Keep posting more blog like this,Thank you...
ReplyDeleteHadoop training in Bangalore|
Big Data Analytics Training in Bangalore|
Hadoop Training in Bellandur|
Hadoop Training in Bangalore
Hadoop Training in Marathahalli
Amazing blog with the recent news. Thank you very much for sharing such helpful data...
ReplyDeleteBig Data Analytics Training in Bangalore|
Hadoop Training in Bellandur|
Hadoop Training in Bangalore|
Hadoop Training in Marathahalli|
Hadoop training in Bangalore
I Really Like you post. This explained most of the things about Data Validation. Love to read you next article.
ReplyDeleteI went through your blog,it helped me a lot,and I also received some new information...
ReplyDeleteHadoop Training in Marathahalli|
Hadoop training in Bangalore|
Big Data Analytics Training in Bangalore|
Hadoop Training in Bellandur|
Hadoop Training in Bangalore
I'm really happy with your blog because your post is very unique and powerful for new readers...
ReplyDeleteHadoop Training in Marathahalli|
Hadoop training in Bangalore|
Big Data Analytics Training in Bangalore|
Hadoop Training in Bellandur|
Angular JS Training in Bangalore|
Big Data Training in Bangalore
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.
ReplyDeleteiot training in malaysia
Good information.Thank you for sharing this wonderful article.It was so good to read and upgrade my understanding...
ReplyDeleteBig Data Analytics Training in Bangalore|
Hadoop Training in Bellandur|
Hadoop Training in Marathahalli|
Hadoop training in Bangalore|
Angular JS Training in Bangalore|
Big Data Training in Bangalore
ReplyDeleteActually 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
I went through your blog, it was very helpful to me and I got some fresh data as well...
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
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.
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
Your post is really awesome. It is very helpful for me to develop my skills in a right way.keep sharing such a worthy information
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
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
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore