{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

TestingTechniques - Software Engineering A Practitioner's...

Info icon This preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Software Engineering: A Practitioner’s Approach, 6/e Software Testing Techniques
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 What is a “Good” Test? A good test has a high probability of finding an error A good test is not redundant A good test should be “best of breed”  A good test should be neither too simple nor too complex
Image of page 2
3 Test Case Design "Bugs lurk in corners and congregate at boundaries ..." Boris Beizer OBJECTIVE CRITERIA CONSTRAINT to uncover errors in a complete manner with a minimum of effort and time
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4 Exhaustive Testing loop < 20 X There are 10 possible paths! If we execute one test per millisecond, it would take 3,170 years to test this program!! 14
Image of page 4
5 Selective Testing loop < 20 X Selected path
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
6 Software Testing Methods Strategies white-box methods black-box methods
Image of page 6
7 White-Box Testing ... our goal is to ensure that all statements and conditions have been executed at least once ...
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
8 Basis Path Testing First , we compute the cyclomatic complexity: number of simple decisions + 1 or number of enclosed areas + 1 In this case, V(G) = 4 White-Box Testing
Image of page 8
9 Basis Path Testing Next , we derive the independent paths: Since V(G) = 4, there are four paths Path 1 : 1,2,3,6,7,8 Path 2 : 1,2,3,5,7,8 Path 3 : 1,2,4,7,8 Path 4 : 1,2,4,7,2,4,...7,8 Finally , we derive test cases to exercise these paths. 1 2 3 4 5 6 7 8 White-Box Testing
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
10 Basis Path Testing Notes 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 White-Box Testing
Image of page 10
11 Control Structure Testing Condition testing  — a test case design method that  exercises the logical conditions  contained in a  program module Data flow testing  
Image of page 11

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern