Testing, Debugging, and Verification - Testing, Part II
Testing, Debugging, and Verification - Testing, Part II
Testing, Debugging, and Verification - Testing, Part II
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Test Cases, more precise<br />
Params,<br />
Input State<br />
Result,<br />
Final State<br />
I: (P, S )<br />
in Method<br />
(R, S )<br />
out<br />
m<br />
Oracle O<br />
More formally...<br />
A test case is a tuple 〈m, I, O〉 of method m, input I, <strong>and</strong> oracle O,<br />
where<br />
◮ m is the method under test<br />
◮ I is a tuple 〈P, Sin〉<br />
of call parameters P <strong>and</strong> initial state Sin<br />
◮ O(R, Sout) ↦→ {pass, fail}<br />
is a function on return value R <strong>and</strong> final state Sout, telling whether<br />
they comply with correct behaviour<br />
TDV: <strong>Testing</strong> /GU 121130 12 / 28<br />
Yes!<br />
No!