When planning the basic path testing plan of the new taximeter module, Softw

9 When planning the basic path testing plan of the new taximeter module, Softw

a flow chart and a program flow graph for the taxi fare calculation process were prepared. Each figure represents a calculation process that includes five

are tes

decisions, as shown in Figure 9.3.

A review of the ITS flow chart and program flow graph demonstrates the difference between path testing and basic path testing as well as com-

ting – str

paring the testing requirements of path coverage with those of line coverage. As mentioned above, full path coverage requires that all the possible paths be executed at least once. In the ITS flow chart (Figure 9.3), 24 differ- ent paths may be indicated. In other words, in order to achieve full path

a tegies

coverage of the software module we have to prepare at least 24 test cases, which we list in Table 9.3.

Table 9.3: The Imperial Taxi example – the full list of paths No.

The path 1 1-2-3-5-6-8-9-11-12-17

2 1-2-3-5-6-8-9-11-13-14-15-17 3 1-2-3-5-6-8-9-11-13-14-16-17 4 1-2-3-5-6-8-10-11-17 5 1-2-3-5-6-8-10-11-13-14-15-17 6 1-2-3-5-6-8-10-11-13-14-16-17 7 1-2-3-5-7-8-9-11-12-17 8 1-2-3-5-7-8-9-11-13-14-15-17 9 1-2-3-5-7-8-9-11-13-14-16-17 10 1-2-3-5-7-8-10-11-12-17 11 1-2-3-5-7-8-10-11-13-14-15-17 12 1-2-3-5-7-8-10-11-13-14-16-17 13 1-2-4-5-6-8-9-11-12-17 14 1-2-4-5-6-8-9-11-13-14-15-17 15 1-2-4-5-6-8-9-11-13-14-16-17 16 1-2-4-5-6-8-10-11-12-17 17 1-2-4-5-6-8-10-11-13-14-15-17 18 1-2-4-5-6-8-10-11-13-14-16-17 19 1-2-4-5-7-8-9-11-12-17 20 1-2-4-5-7-8-9-11-13-14-15-17 21 1-2-4-5-7-8-9-11-13-14-16-17 22 1-2-4-5-7-8-10-11-12-17 23 1-2-4-5-7-8-10-11-13-14-15-17 24 1-2-4-5-7-8-10-11-13-14-16-17

1 (a) Flow chart of the module

Charge the minimal fare

9.4 White bo

x tes

WT ⬎ 3

5 WT ⱕ 3

ting

Waiting time

S⬎ 1

8 S ⱕ1

No. of suitcases

Regular client?

12 Yes

14 No

Night journey? 15 16

17 Print receipt

3 R1 4

(b) Program flow graph of the 6 7 module

Figure 9.3: The ITS taxi fare calculation process – flow chart and program flow graph

194 In contrast, the program flow graph allows us to observe that full line coverage of the ITS software module can be reached by inspecting the mini-

9 mum number of paths – a total of three – as listed in Table 9.4. Softw

The proportion of test cases required to test the system by full line cov- erage of three test cases (by basic path testing) versus full path coverage of

are tes

24 test cases is 1:8! This ratio grows rapidly with program complexity. Support for the basic path testing strategy is provided by McCabe’s cyclomatic complexity metrics, which besides being software complexity

ting – str

metrics also serve to give an upper limit to the number of test cases needed for full line coverage.

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

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

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

Studi Pengaruh Kondisi Penyetelan Nosebar pada Mesin Kupas terhadap Tekanan Kempa dan Kualitas Potong Venir Study on the Influences of Nosebar Setting of a Peeler on the Compressive Forces and Cutting Quality of Veneer

0 0 7

Physical and Chemical Quality of Silage Organic Market Waste with Lamtoro Leaf Flour (Leucaena leucacephala) as Alternative Feed

0 0 5

J a n g k a S o r o n g M ik r o m e te r S e k r u p

0 0 36

Pengembangan Desain Produk Teh Gelas Dengan Menggunakan Metode Quality Function Deployment Untuk Meningkatkan Penjualan Di CV. Tirta Indo Megah

0 0 5