Testing & Refining the database

Testing & Refining the database
Unit 2 - Creating Systems to Manage Information
1 / 21
suivant
Slide 1: Diapositive
ComputingFurther Education (Key Stage 5)

Cette leçon contient 21 diapositives, avec quiz interactifs et diapositives de texte.

time-iconLa durée de la leçon est: 60 min

Éléments de cette leçon

Testing & Refining the database
Unit 2 - Creating Systems to Manage Information

Slide 1 - Diapositive

By the end of todays lesson you should be able to:

1. Identify the steps involved in testing a database.
2. Execute strategies to test and refine a database effectively.
3. Evaluate the effectiveness of a database through testing.

Slide 2 - Diapositive

Why do you think we should test databases?

Slide 3 - Question ouverte

What is Database Testing?

Slide 4 - Diapositive

Types of Tests
  Normal – This is data which can be considered the ordinary/typical (normal) type of data you would expect to be input to the field and that should be accepted.

Username: john_doe
Password: Password123!
Email: john.doe@example.com
Date of Birth: 15/05/1990
Phone Number: +441234567890

Slide 5 - Diapositive

Types of Tests
Erroneous – This is data that is incorrect for this field (e.g. a text value in a number field) and should be rejected with a suitable error message.


Username: john@doe (contains invalid character @)
Password: pass (too short, does not meet complexity requirements)
Email: john.doe@com (invalid email format)
Date of Birth: 25/12/2025 (future date)
Phone Number: 12345 (too short, invalid format)

Slide 6 - Diapositive

Types of Tests
Extreme test data includes values that are at the boundaries of acceptable input ranges or beyond, to test the application’s limits.

Username: a_very_long_username_exceeding_the_maximum_length_limit
Password: P@ssw0rd!P@ssw0rd!P@ssw0rd!P@ssw0rd!P@ssw0rd! (extremely long password)
Email: a_very_long_email_address_exceeding_the_maximum_length_limit@example.com
Date of Birth: 01/01/1900 (very old date)
Phone Number: +4412345678901234567890 (exceedingly long phone number)


Slide 7 - Diapositive

Example Test Data

Slide 8 - Diapositive

Common Database Errors
A common error in a database is when a field can be left blank.
Another common error is data that is in the wrong format.
Sometimes we have data in a database that is outside of the range we are looking for

Slide 9 - Diapositive

Select the option that is not considered normal test data:
A
Brown
B
Blue
C
Red
D
Small

Slide 10 - Quiz

_______ test data includes values that are at the boundaries of acceptable input ranges or beyond, to test the application’s limits.
A
Extreme
B
Normal
C
Erroneous
D
Small

Slide 11 - Quiz

This is data which can be considered the ordinary/typical type of data you would expect to be input to the field and that should be accepted.

A
Extreme
B
Normal
C
Erroneous
D
Small

Slide 12 - Quiz

Which option would be considered extreme for a username field?
A
Sam123
B
MacSam
C
Samisthemostamazingteachereverandshouldalwaysteachus2
D
samtheman4

Slide 13 - Quiz

Demonstration

Slide 14 - Diapositive

Class Activity – Jan22 Database
Help
You can find the database in the shared folder under Testing folder. It is called Jan22_PartA

Slide 15 - Diapositive

Implementing Fixes
Student Surname
  

Subject Level

Slide 16 - Diapositive

Implementing Fixes
Student Surname – IS NOT NULL

Subject Level – Between 1 and 3

Slide 17 - Diapositive

You should now be able to:

1. Identify the steps involved in testing a database.
2. Execute strategies to test and refine a database effectively.
3. Evaluate the effectiveness of a database through testing.

Slide 18 - Diapositive

What was one thing you learnt from todays lesson?

Slide 19 - Carte mentale

What was one thing you found challenging in todays lesson?

Slide 20 - Carte mentale

On a scale from 1 to 10 (1 being really bad and 10 being awesome), did you enjoy todays lesson?
110

Slide 21 - Sondage