Advantages and disadvantages of black box testing

9.5.5 Advantages and disadvantages of black box testing

The main advantages of black box testing are:

Black box testing allows us to carry out the majority of testing classes, most of which can be implemented solely by black box tests. Of the test classes unique to black box testing, of special importance are system per- formance tests such as load tests and availability tests.

For testing classes that can be carried out by both white and black box tests, black box testing requires fewer resources than those required for white box testing of the same software package.

The main disadvantages of black box testing are:

Possibility that coincidental aggregation of several errors will produce the correct response for a test case, and prevent error detection. In other words, black box tests do not readily identify cases of errors that coun- teract each other to accidentally produce the correct output.

Absence of control of line coverage. In cases where black box testers wish to improve line coverage, there is no easy way to specify the parameters of the test cases required to improve coverage. Consequently, black box tests may not execute a substantial proportion of the code lines, which are not covered by a set of test cases.

Impossibility of testing the quality of coding and its strict adherence to the coding standards.

Summary 209 Summ

(1) Explain testing objectives.

One should distinguish between direct and indirect testing objectives. The direct

ar

objectives are:

■ To identify and reveal as many errors as possible in the tested software ■

To bring the tested software to an acceptable quality level ■

To perform the required testing in an efficient and effective way, within budget and scheduling limitations.

The indirect objective: ■

To supply records of software errors to be used for error prevention.

(2) Discuss the differences between the various testing strategies, their advantages and disadvantages.

There are basically two testing strategies: ■

“Big bang testing”: tests the software as a whole, once the completed package is available.

“Incremental testing”: tests the software piecemeal – software modules are test-

ed as they are completed (unit tests), followed by groups of modules composed of tested modules integrated with newly completed modules (integration tests). Once the entire package is completed, it is tested as a whole (system test).

There are two basic incremental testing strategies: bottom-up and top-down. In top- down testing, the first module tested is the main module, the highest level module in the software structure; the last modules to be tested are the lowest level mod- ules. In bottom-up testing, the order of testing is reversed: the lowest level modules are tested first, with the main module tested last. ■

Big bang vs. incremental testing. Unless the program is very small and simple, applying the “big bang” testing strategy presents severe disadvantages. Identification of error in the entire software package when perceived as one “unit” is very difficult and, in spite of the vast resources invested, is not very effective. Moreover, performing perfect correction of an error in this context is frequently laborious. Obviously, estimates of the required testing resources and testing schedule tend to be rather fuzzy. In contrast, the advantages of incre- mental testing, because it is performed on relatively small software units, yields higher percentages of identified errors and facilitates their correction. As a result, it is generally accepted that incremental testing should be preferred.

Bottom-up vs. top-down. The main advantage of the bottom-up strategy is its relative ease of performance, while its main disadvantage is the lateness of the stage at which it is possible to observe the program as a whole. The main advan- tage of the top-down strategy is the early stage at which it is possible to demonstrate the program as a whole, a condition that supports early identifica- tion of analysis and design errors. The main disadvantage of the approach is the comparative difficulty of its performance.

(3) Describe the concepts of black box testing and white box testing, and discuss their advantages and disadvantages.

Dokumen yang terkait

ALOKASI WAKTU KYAI DALAM MENINGKATKAN KUALITAS SUMBER DAYA MANUSIA DI YAYASAN KYAI SYARIFUDDIN LUMAJANG (Working Hours of Moeslem Foundation Head In Improving The Quality Of Human Resources In Kyai Syarifuddin Foundation Lumajang)

1 46 7

Anal isi s L e ve l Pe r tanyaan p ad a S oal Ce r ita d alam B u k u T e k s M at e m at ik a Pe n u n jang S MK Pr ogr a m Keahl ian T e k n ologi , Kese h at an , d an Pe r tani an Kelas X T e r b itan E r lan gga B e r d asarkan T ak s on om i S OL O

2 99 16

Analisis Pengaruh Banking Service Quality Dimensions (BSQ) Terhadap Kepuasan Nasabah PT. Bank Jatim Cabang Jember (Analysis Effect of Banking Service Quality Dimensions (BSQ) Toward Bank Customer Satisfaction on PT. Bank Jatim Branch Jember )

2 40 6

Analisis Perbedaan Kualitas Pelayanan KB antara Puskesmas Tekung dan Puskesmas Randuagung di Kabupaten Lumajang (Analysis Difference of Quality Family Planning Services inTekung and Randuagung Primary Health Care, Lumajang Regency)

0 12 8

Hubungan antara Kualitas Pelayanan Poli KIA/KB dengan Derajat Kesehatan Ibu dan Anak di 2 Puskesmas di Kabupaten Jember (The Correlation between Service Quality of Maternal and Child Healthcare/Family Planning Polyclinic and Degree of Maternal and Child H

0 18 6

I M P L E M E N T A S I P R O G R A M P E N Y A L U R A N B E R A S U N T U K K E L U A R G A M I S K I N ( R A S K I N ) D A L A M U P A Y A M E N I N G K A T K A N K E S E J A H T E R A A N M A S Y A R A K A T M I S K I N ( S t u d i D e s k r i p t i f

0 15 18

Mekanisme pengajuan klaim produk individu asuransi jiwa pada PT. MAA Life Assurance Syariah

6 85 87

Laporan Realisasi Anggaran N e r a c a C

0 11 4

HUBUNGAN DUKUNGAN KELUARGA DENGAN Quality of Life (QOL) PADA KEJADIAN STROKE Relationship Of Family Support With Quality of Life (QOL) Stroke Occurrence

0 1 7

PENGARUH KOSENTRASI SARI KUNYIT PUTIH (Curcuma zediaria) TERHADAP KUALITAS TELUR ASIN DITINJAU DARI AKTIVITAS ANTIOKSIDAN, TOTAL FENOL, KADAR PROTEIN DAN KADAR GARAM The Addition of White Turmeric (Curcuma zedoaria) Concentrated Base on Quality Antioxidan

1 1 8