what is validation understanding validation (different from verification)

21
What is Validation erstanding Validation (Different from Verification)

Upload: oswin-justin-snow

Post on 12-Jan-2016

225 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: What is Validation Understanding Validation (Different from Verification)

What is Validation

Understanding Validation (Different from Verification)

Page 2: What is Validation Understanding Validation (Different from Verification)

What is ValidationValidation and verification are two ways to check that the data entered into a computer is correct. Data entered incorrectly is of little use.Validation is an automatic computer check to ensure that the data entered is sensible and reasonable. It does not check the accuracy of data.For example, a secondary school student is likely to be aged between 11 and 16. The computer can be programmed only to accept numbers between 11 and 16. This is a range check.However, this does not guarantee that the number typed in is correct. For example, a student's age might be 14, but if 11 is entered it will be valid but incorrect.

Types of validationThere are a number of validation types that can be used to check the data that is being entered. 

Page 3: What is Validation Understanding Validation (Different from Verification)

Validation TypesValidation type How it works Example usage

Check digit the last one or two digits in a code are used to check the other digits are correct

bar code readers in supermarkets use check digits

Format check checks the data is in the right format

a National Insurance number is in the form LL 99 99 99 L where L is any letter and 9 is any number

Length check checks the data isn't too short or too long

a password which needs to be six letters long

Lookup table looks up acceptable values in a table

there are only seven possible days of the week

Presence check checks that data has been entered into a field

in most databases a key fieldcannot be left blank

Range check checks that a value falls within the specified range

number of hours worked must be less than 50 and more than 0

Spell check looks up words in a dictionary

when word processing

Page 4: What is Validation Understanding Validation (Different from Verification)

What disease is this?

Page 5: What is Validation Understanding Validation (Different from Verification)

Leprosy

Page 6: What is Validation Understanding Validation (Different from Verification)

Leprosy Patch

Lepers don’t feel Pain

Page 7: What is Validation Understanding Validation (Different from Verification)

Is Pain a bad thing?

Pain sometimes serves as a warning message, to tell the body that the input (or whatever it is sensing) is causing harm. This is a type of Validation (prevention of the input of harmful sensory inputs)

Harmful Sensory Input (fire)

Bad relationships

Dangerous People

Page 8: What is Validation Understanding Validation (Different from Verification)

Validation is crucial to good designIt’s used all the times

ESPECIALLY when it comes to web forms!

The world as we know it (online world) wouldn’t function without validation in web forms.

The concept of validating web forms therefore is something integral to the entire online world!

Page 9: What is Validation Understanding Validation (Different from Verification)

Languages of the web …HTML

JAVASCRIPT

Page 10: What is Validation Understanding Validation (Different from Verification)
Page 11: What is Validation Understanding Validation (Different from Verification)

In order to know how to validate web forms you firstNeed to understand the nature of HTML – how to use it –

how it works and so on

Need to have an understanding of JAVASCRIPT – its functionality, how it works and particularly how it works in conjunction with HTML

Page 12: What is Validation Understanding Validation (Different from Verification)

Examples of Form Validation

Page 13: What is Validation Understanding Validation (Different from Verification)
Page 14: What is Validation Understanding Validation (Different from Verification)
Page 15: What is Validation Understanding Validation (Different from Verification)

Using JavaScript to validate

http://www.w3schools.com/js/js_form_validation.asp

This site (w3schools) has plenty of useful information and

JavaScript snippets that will help you along in your

controlled assessment research and learning!

Page 16: What is Validation Understanding Validation (Different from Verification)

JavaScript and validationJavaScript can be used to validate data in HTML forms

before sending off the content to a server.Form data that typically are checked by a JavaScript

could be:has the user left required fields empty?has the user entered a valid e-mail address?has the user entered a valid date?has the user entered text in a numeric field?

Page 17: What is Validation Understanding Validation (Different from Verification)

Field Validation (JavaScript)

http://www.w3schools.com/js/tryit.asp?filename=tryjs_form_validation

Page 18: What is Validation Understanding Validation (Different from Verification)

Email validation! (JavaScript)

http://www.w3schools.com/js/tryit.asp?filename=tryjs_form_validation

Page 19: What is Validation Understanding Validation (Different from Verification)

For Your controlled assessmentYou will be required to

1)Do a write-up showing that you understand how HTMl works (Question 1…)

2)Do a similar write-up (Question 2) that shows you have an understanding of JavaScript

3)Solve a JavaScript task (which is basically validating a web form)

Page 20: What is Validation Understanding Validation (Different from Verification)

Where do I start?1. Read through the Controlled Assessment carefully.

2. Go through the tutorials for HTML and Javascript and get to grips with some of the basics. Practice making a basic web page with HTML and include some Javascript.

3. Prepare a powerpoint of research (with at least 10-15 slides) with plenty of examples of code and sites that will help you fully solve the task. Explain how you will be using these sites to help you tackle the controlled assessment.

4. You can then start attempting the questions (in the controlled assessment).

Page 21: What is Validation Understanding Validation (Different from Verification)

What will you submit?1. Research power point (with sites and screenshots and

explanation of your research and how it will help you tackle the controlled assessment questions and tasks)

2. Write-up with all the questions answered (you can do this in word or in powerpoint)

3. Solution (web form, fully validated [if you solve the challenge!!!])