Black Box Testing

16
Black Box Testing Testing Implementasi Sistem Pertemuan 3 Oleh :Rifiana Arief, SKom, MMSI

description

Testing Implementasi Sistem. Pertemuan 3. Black Box Testing. Oleh :Rifiana Arief, SKom, MMSI. Outline. Black Testing Definition Advantages and Disadvantages Black Box testing Black Box Testing Type Test case Design methods. What is Black-Box testing ?. - PowerPoint PPT Presentation

Transcript of Black Box Testing

Page 1: Black Box Testing

Black Box Testing

Testing Implementasi Sistem

Pertemuan 3

Oleh :Rifiana Arief, SKom, MMSI

Page 2: Black Box Testing

2

Outline

• Black Testing Definition• Advantages and Disadvantages Black Box testing• Black Box Testing Type• Test case Design methods

Page 3: Black Box Testing

What is Black-Box testing ?

● Testing without having an insight into the details of underlying code

input outputUnit

● Testing based on specification

3

Page 4: Black Box Testing

What is Black-Box testing ?

● Advantages● no need for source code● can be used for unit as well as system-level testing

●Disadvantages● don't test hidden functions

●Approaches:● Error guessing● Equivalence Partitioning● Boundary Value Analysis● Decision tables● Cause-Effect Graphing● Tests derived from functional requirements (e.g. use cases)

4

Page 5: Black Box Testing

Type of Black-Box testing ?

●Security Testing●Networks●Access right

●Type of Users

●Performance Testing●Load testing●Stress |Testing

5

Page 6: Black Box Testing

Type of Black-Box testing ?

● Usability Testing● User interface testing● Manual support Testing● Spell Checking

● Functionality Testing● Configuration Testing● Compatibility Testing● Functional Testing

● What Client wants● Installation Testing ● Input domain Testing

● Boundary Values● Equivalence Class partition 6

Page 7: Black Box Testing

1. Equivalence Partitioning

2. Boundary Value Analysis

3. Error Guessing

Test case Design methods

Page 8: Black Box Testing

• Equivalence class is a subset of data that is representative of a larger class• Divide input domain into equivalence classes • Attempt to cover classes of errors • One test case per equivalence class, to

reduce total number of test cases needed

InputInputDomainDomain

Equivalence partitioning

Page 9: Black Box Testing

A program which accepts credit limits with a given range Say,

$10,000 – $15,000

This would have three equivalence classes:-

1. Less than $10,000 (Invalid)

2. Between $10,000 and $15,000 (Valid)3. Greater than $15,000 (Invalid)

Example

Page 10: Black Box Testing

Less than 10,000 Between 10 and 15 More than 15,000

9800 12500 18000

Equivalence Partitions

Page 11: Black Box Testing

• Complements equivalence partitioning , selects the test cases at the “edge” of equivalence classes.

• In practice, more errors found at boundaries of equivalence classes than within the classes

• Divide input domain into equivalence classes

A technique that consists of developing test cases and data that focus on the input and output boundaries of a given function

Boundary Value Analysis

Page 12: Black Box Testing

In the same credit limit example: the boundary analysis would test

1. low boundary plus or minus one ($ 9,999 and $10,001)

2. On the boundary ($10,000 and $15000)

3. Upper boundary plus or minus one ($14999 and $15001)

Example

Page 13: Black Box Testing

1. Value immediately below range 2. First value of range 3. Second value of range 4. Value immediately below last value of range 5. Last value of range

6. Value immediately above range

Range of Boundary Values

Page 14: Black Box Testing

Based on the theory that test cases can be

developed based upon the intuition and

experience of the Test Engineer.

In an example where one of the inputs

is the date and the Test Engineer

may try February 29, 2000 or 9/9/9999

Error Guessing

Page 15: Black Box Testing

Metode Pengujian Black Box• Metode ujicoba blackbox memfokuskan pada keperluan fungsional dari

software. • Karna itu ujicoba blackbox memungkinkan pengembang software untuk

membuat himpunan kondisi input yang akan menguji seluruh syarat-syarat fungsional suatu program.

• Ujicoba blackbox bukan merupakan alternatif dari ujicoba whitebox, tetapi merupakan pendekatan yang melengkapi untuk menemukan kesalahan lainnya, selain menggunakan metode whitebox.

• Tidak seperti metode whitebox yang dilaksanakan diawal proses, ujicoba blackbox diaplikasikan dibeberapa tahapan berikutnya. Karena ujicoba blackbox dengan sengaja mengabaikan struktur kontrol, sehingga perhatiannya difokuskan pada informasi domain.

Page 16: Black Box Testing

Ujicoba blackbox berusaha untuk menemukan kategori kesalahan :

• Fungsi-fungsi yang salah atau hilang• Kesalahan interface• Kesalahan dalam struktur data atau akses

database eksternal• Kesalahan performa• Kesalahan inisialisasi dan terminasi