# L5 - Software Testing Quality Assurance and Maintenance...

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

Software Testing, Quality Assurance and Maintenance Winter 2010 Lecture 5 — January 13, 2010 Patrick Lam version 2 Let’s consider an example of a test set which satisfies node coverage on D , the double-diamond graph from last time. Start with a test case t 1 ; assume that executing t 1 gives the test path path( t 1 ) = p 1 = [ n 0 , n 1 , n 3 , n 4 , n 6 ] . Then test set { t 1 } does not give node coverage on D , because no test case covers node n 2 or n 5 . If we can find a test case t 2 with test path path( t 2 ) = p 2 = [ n 0 , n 2 , n 3 , n 5 , n 6 ] , then the test set T = { t 1 , t 2 } satisfies node coverage on D . What is another test set which satisfies node coverage on D ? Here is a more verbose definition of node coverage. Definition 1 Test set T satisfies node coverage on graph G if and only if for every syntactically reachable node n N , there is some path p in path ( T ) such that p visits n . A second standard criterion is that of edge coverage. Criterion 1 Edge Coverage (EC). TR contains each reachable path of length up to 1, inclusive, in G .

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