{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

TestingTechniques

# TestingTechniques - Software Engineering A Practitioner's...

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

1 Software Engineering: A Practitioner’s Approach, 6/e Software Testing Techniques

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

View Full Document
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
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

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

View Full Document
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
5 Selective Testing loop < 20 X Selected path

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

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

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

View Full Document
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
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

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

View Full Document
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
11 Control Structure Testing Condition testing  — a test case design method that  exercises the logical conditions  contained in a  program module Data flow testing

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern