TAILIEUCHUNG - Lecture Software testing and analysis - Chapter 16: Fault-based testing

A model of potential program faults is a valuable source of information for evaluating and designing test suites. Some fault knowledge is commonly used in functional and structural testing, for example when identifying singleton and error values for parameter characteristics in category-partition testing or when populating catalogs with erroneous values, but a fault model can also be used more directly. | Fault-Based Testing Learning objectives Understand the basic ideas of fault-based testing - How knowledge of a fault model can be used to create useful tests and judge the quality of test cases - Understand the rationale of fault-based testing well enough to distinguish between valid and invalid uses Understand mutation testing as one application of fault-based testing principles c 2007 Mauro Pezzè Michal Young Ch 16 slide 1 c 2007 Mauro Pezzè Michal Young Ch 16 slide 2 Let s count marbles . a lot of marbles Estimating marbles Photo credit c KaCey97007 on Flickr Creative Commons license Suppose we have a big bowl of marbles. How can we estimate how many - I don t want to count every marble individually - I have a bag of 100 other marbles of the same size but a different color - What if I mix them I mix 100 black marbles into the bowl - Stir well . I draw out 100 marbles at random 20 of them are black How many marbles were in the bowl to begin with c 2007 Mauro Pezzè Michal Young Ch 16 slide 3 c 2007 Mauro Pezzè Michal Young Ch 16 slide 4 Estimating Test Suite Quality Now instead of a bowl of marbles I have a program with bugs I add 100 new bugs Assume they are exactly like real bugs in every way I make 100 copies of my program each with one of my 100 new bugs I run my test suite on the programs with seeded bugs . - . and the tests reveal 20 of the bugs - the other 80 program copies do not fail What can I infer about my test suite c 2007 Mauro Pezzè Michal Young Ch 16 slide 5 Basic Assumptions We d like to judge effectiveness of a test suite in finding real faults by measuring how well it finds seeded fake faults. Valid to the extent that the seeded bugs are representative of real bugs - Not necessarily identical . black marbles are not identical to clear marbles but the differences should not affect the selection . if I mix metal ball bearings into the marbles and pull them out with a magnet I don t learn anything about how many marbles were in the bowl .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.