1 / 22

Teknik Pengujian Software

Teknik Pengujian Software. Software Testing. Testing merupakan proses percobaan terhadap program dengan tujuan khusus untuk menemukan errors sebelum diguna- Kan oleh end user. Yang dapat diuji. Operabilitas —dapat bekerja secara benar

pender
Télécharger la présentation

Teknik Pengujian Software

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Teknik Pengujian Software

  2. Software Testing Testing merupakan proses percobaan terhadap program dengan tujuan khusus untuk menemukan errors sebelum diguna- Kan oleh end user.

  3. Yang dapat diuji • Operabilitas—dapat bekerja secara benar • Controlabilitas—derajad dimana pengujian dapat diotomatisasi dan dioptimasi • Decomposabilitas—testing dapat ditarget-kan • Kesederhanaan—mengurangi kompleksi-tas arsitektur dan logika untuk menyeder-hanakan pengujian • Stabilitas—sedikit perubahan diperlukan selama pengujian • Pemahaman—terhadap rancangan

  4. Yang Ditunjukkan Testing errors kesesuaian kebutuhan kinerja indikasi kualitas

  5. Siapa yang menguji Software? pengembang penguji independen Memahami sistemnya Harus mempelajari sistemnya tetapi, akan menguji dengan "gentle" tetapi, akan berusaha untuk memecahkannya dan, dipandu kualitas dan, dipandu "delivery"

  6. Pengujian Melelahkan loop < 20 X Terdapat kemungkinan 1014 jalur! Jika untuk eksekusi 1 test perlu 1 ms, maka akan memerlukan 3.170 tahun untuk menguji seluruh program.

  7. Testing terpilih Jalur terpilih loop < 20 X

  8. Pengujian Software metode black-box metode white-box Metode Strategi

  9. Rancangan Uji Kasus Tujuan Untuk menemukan errors Kriteria Secara lengkap Kendala dengan usaha dan waktu minimal

  10. Metode White-Box ... Tujuannya adalah untuk meyakinkan bahwa semua statement dan kondisi telah dieksekusi paling tidak sekali

  11. Mengapa tersembunyi? Kesalahan logika dan asumsi yang tidak benar berbanding terbalik dengan proba- bilitas eksekusi suatu jalur Seringkali kita percaya bahwa suatu jalur kelihatannya tidak tereksekusi. Kenyataannya seringkali berlawanan dengan intuisi Kesalahan penulisan sering random; dimungkinkan pada jalur yang tidak teruji memuat beberapa.

  12. Testing Jalur Dasar Pertama, dihitung kompleksitas siklomatik V(G): banyak kondisi sederhana + 1 atau Banyak area tertutup + 1 Dalam contoh ini, V(G) = 4 Semakin tinggi V(G), semakin besar kemungkinan terjadi error. V(G) akan menentukan banyaknya jalur yang Independen, yaitu sebanyak V(G)

  13. Basis Path Testing Next, we derive the independent paths: 1 Since V(G) = 4, there are four paths 2 Path 1: 1,2,3,6,7,8 3 4 Path 2: 1,2,3,5,7,8 5 6 Path 3: 1,2,4,7,8 Path 4: 1,2,4,7,2,4,...7,8 Finally, we derive test 7 cases to exercise these paths. 8

  14. you don't need a flow chart, but the picture will help when you trace program paths count each simple logical test, compound tests count as 2 or more basis path testing should be applied to critical modules Basis Path Testing Notes

  15. Loop Testing Simple loop Nested Loops Concatenated Loops Unstructured Loops

  16. Loop Testing: Simple Loops Minimum conditions—Simple Loops 1. skip the loop entirely 2. only one pass through the loop 3. two passes through the loop 4. m passes through the loop m < n 5. (n-1), n, and (n+1) passes through the loop where n is the maximum number of allowable passes

  17. Loop Testing: Nested Loops Nested Loops Start at the innermost loop. Set all outer loops to their minimum iteration parameter values. Test the min+1, typical, max-1 and max for the innermost loop, while holding the outer loops at their minimum values. Move out one loop and set it up as in step 2, holding all other loops at typical values. Continue this step until the outermost loop has been tested. Concatenated Loops If the loops are independent of one another then treat each as a simple loop else* treat as nested loops endif* for example, the final loop counter value of loop 1 is used to initialize loop 2.

  18. Black-Box Testing requirements output input events

  19. Equivalence Partitioning user queries FK input output formats mouse picks data prompts

  20. Sample Equivalence Classes Valid data user supplied commands responses to system prompts file names computational data physical parameters bounding values initiation values output data formatting responses to error messages graphical data (e.g., mouse picks) Invalid data data outside bounds of the program physically impossible data proper value supplied in wrong place

  21. Boundary Value Analysis user queries FK input output formats mouse picks data prompts output domain input domain

  22. Other Black Box Techniques • error guessing methods • decision table techniques • cause effect graphing

More Related