1 / 14

Forms of Equivalence Class Testing

Forms of Equivalence Class Testing. Normal. • only equivalence classes are valid and invalid input values. • emphasis is on "single failures". • works well when variables have a valid range. • test cases: check valid case, then check invalid combinations by using.

Download Presentation

Forms of Equivalence Class Testing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Forms of Equivalence Class Testing Normal • only equivalence classes are valid and invalid input values • emphasis is on "single failures" • works well when variables have a valid range • test cases: check valid case, then check invalid combinations by using one invalid value with remaining valid values. Weak • more complex equivalence classes of valid input values • variables may have several ranges of valid values • test cases "cover" valid combinations Strong • equivalence classes as in weak form • cross product of equivalence classes of valid input values • presumes variables are independent We compare these for a function of three variables, F(x , x , x ) 1 2 3

  2. Normal: classes of valid values of inputs Robust: classes of valid and invalid values of inputs Weak: (single fault assumption) one from each class Strong: (multiple fault assumption) one from each class in Cartesian Product We compare these for a function of three variables, F(x1, x2, x3) Forms of Equivalence Class Testing

  3. x 2 d c x 1 b a Weak Robust Equivalence Class Test Cases Equivalence Classes: Valid(x ) : a Š x Š b; Invalid(x ) : x Š a , x  b 1 1 1 1 1 Valid(x ) : c Š x Š d; Invalid(x ) : x Š c , x  d 2 2 2 2 2

  4. Weak Robust Equivalence Class Testing Variable Valid input set e e x a1 V1X1, a2 V2X1 1 e e e e x b1 V1X2, b2 V2X2, b3 V3X2, b4 V4X2 2 e e e x c1 V1X3, c2 V2X3, c3 V3X3 3 Test cases F(a1, b1, c1) F(a2, b2, c2) F(a1, b3, c3) F(a2, b4, c1)

  5. Weak Normal Equivalence Class Test Cases x 2 g f e x d b c a 1 Equivalence Classes: x : a Š x Š b, b < x Š c, c < x Š d 1 1 1 1 x : e Š x Š f, f < x Š g 2 2 2

  6. Strong Normal Equivalence Class Testing Variable Valid input set e e x a1 V1X1, a2 V2X1 1 e e e e x b1 V1X2, b2 V2X2, b3 V3X2, b4 V4X2 2 e e e x c1 V1X3, c2 V2X3, c3 V3X3 3 Test cases F(a1, b1, c1), F(a1, b1, c2), F(a1, b1, c3) F(a1, b2, c1), F(a1, b2, c2), F(a1, b2, c3) F(a1, b3, c1), F(a1, b3, c2), F(a1, b3, c3) F(a1, b4, c1), F(a1, b4, c2), F(a1, b4, c3) F(a2, b1, c1), F(a2, b1, c2), F(a2, b1, c3) F(a2, b2, c1), F(a2, b2, c2), F(a2, b2, c3) F(a2, b3, c1), F(a2, b3, c2), F(a2, b3, c3) F(a2, b4, c1), F(a2, b4, c2), F(a2, b4, c3

  7. Strong Normal Equivalence Class Test Cases x 2 g f e x d b c a 1 Equivalence Classes: x : a Š x Š b, b < x Š c, c < x Š d 1 1 1 1 x : e Š x Š f, f < x Š g 2 2 2

More Related