Testing & Refining the database

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

This lesson contains 21 slides, with interactive quizzes and text slides.

time-iconLesson duration is: 60 min

Items in this lesson

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

Slide 1 - Slide

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 - Slide

Why do you think we should test databases?

Slide 3 - Open question

What is Database Testing?

Slide 4 - Slide

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 - Slide

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 - Slide

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 - Slide

Example Test Data

Slide 8 - Slide

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 - Slide

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 - Slide

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

Slide 15 - Slide

Implementing Fixes
Student Surname
  

Subject Level

Slide 16 - Slide

Implementing Fixes
Student Surname – IS NOT NULL

Subject Level – Between 1 and 3

Slide 17 - Slide

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 - Slide

What was one thing you learnt from todays lesson?

Slide 19 - Mind map

What was one thing you found challenging in todays lesson?

Slide 20 - Mind map

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

Slide 21 - Poll