• Tidak ada hasil yang ditemukan

Staffsite STMIK PPKIA Pradnya Paramita DP_19_1

N/A
N/A
Protected

Academic year: 2017

Membagikan "Staffsite STMIK PPKIA Pradnya Paramita DP_19_1"

Copied!
12
0
0

Teks penuh

(1)
(2)

Database Programming with SQL

(3)

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

DPS19L1

Testing 3

Objectives

This lesson covers the following objectives:

• Develop and apply a strategy for testing that a database

(4)

Purpose

• Most people, when they buy a car, wish to know that it is

reliable and will not break down.

• So the manufacturers will put the car through a number of

tests before it is available to be sold.

• The same is true of a database; before it is sold to a customer,

(5)

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

DPS19L1

Testing 5

Unit Testing

• If two things are tested at once and the test fails, it is difficult

or impossible to work out what has caused the failure.

• So it is important to test only one thing at a time.

(6)

What Could Be Tested?

• When testing a database, a variety of things need to be

tested.

• For example:

– Columns should be tested that they contain the correct data type.

– Columns should be tested that they can accommodate the largest amount of data that might be entered.

(7)

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

DPS19L1

Testing 7

What Should Be Tested?

• It is frequently unrealistic to test every column and every

constraint in every table in a database if it is a large database.

• A random spread of tests, that check some columns and

(8)

Designing Tests

• Before you carry out a test, you should have a good idea of

what result you expect to see if the database is working as expected.

• This should be documented before you carry out the test in a

table similar to the one shown:

Test

Number Date Test Description Input

Expected Output

Result/

Discrepancy Action

22 19/07/06

Confirm NOT NULL constraint on JOB_TITLE in

INSERT INTO jobs ( job_id, job_title, min_salary, max_salary)

(9)

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

DPS19L1

Testing 9

Running Tests

Test

Number Date Test Description Input

Expected Output

Result/

Discrepancy Action

22 19/07/06

Confirm NOT NULL constraint on JOB_TITLE in JOBS table

• Once you have designed your test, you can run it and record

(10)

Terminology

Key terms used in this lesson included:

• Testing

(11)

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

DPS19L1

Testing 11

Summary

In this lesson, you should have learned how to:

• Develop and apply a strategy for testing that a database

(12)

Referensi

Dokumen terkait

SUATU DATA BASE MANAGEMENT SYSTEM (DBMS) TERDIRI DARI SEKUMPULAN DATA YANG SALING BERHUBUNGAN DAN SUATU HIMPUNAN PROGRAM YANG MELAKUKAN AKSES TERHADAP DATA

• An entity relationship diagram (ERD) is a consistent tool that can be used to represent the data requirements of a business regardless of the type of database that is used, and

correct: COUNTRY visited by TRAVELER correct: LANDMARK seen by TRAVELER. incorrect: TRAVELER visited

• The relationship between JEWELRY PIECE and MOVIE STAR should be revised to a M:M, which is then resolved with an intersection entity RENTAL HISTORY. • Next we need to determine

– Columns: Each table gets a column for all attributes of the entity it is based on, with the original optionality. • Identifiers: The primary UID of the supertype level

• The request is then sent to the Oracle Server (a database running on a computer), the request is processed and the data returned is displayed. SQL statement

• The IS NULL condition tests for unavailable, unassigned, or unknown data. • IS NOT NULL tests for data that is available in

Bila dua atau lebih data mengalir dari suatu sumber yang sama ke tujuan yang sama, maka harus dianggap sebagai suatu arus data tunggal.  Konsep arus data menyebar (diverging