Содержание
- 2. Agenda Introduction Technique Examples Applicability and Limitations Summary Practice References
- 4. Introduction Equivalence class testing is the most basic test design technique. It helps testers choose a
- 5. Introduction What is boundary value testing? Why do we need it? Boundary value testing focuses on
- 6. Introduction: Situation 1 We are writing a module for a human resources system that decides how
- 7. Introduction: Edge Notice the problem at the boundaries – the "edges" of each class. The age
- 8. Introduction: Solution 1 If (applicantAge >= 0 && applicantAge hireStatus="NO"; If (applicantAge >= 16 && applicantAge
- 9. Introduction: Inspection The most efficient way of finding such defects, either in the requirements or the
- 10. Introduction: Situation 2 Perhaps this is what our organization meant: 0-15 – Don't hire 16-17 –
- 11. Introduction: Solution 2 The code that implements the corrected rules is: If (applicantAge >= 0 &&
- 12. Technique
- 13. Technique: Steps Identify the equivalence classes. Identify the boundaries of each equivalence class. Create test cases
- 14. Technique: Examples "Below" and "above" are relative terms and depend on the data value's units. If
- 15. Technique: Examples If the boundary is $5.00 and the unit is "US dollars and cents" then
- 16. Technique: Examples Which boundary values will we use if we test casino, coffee machine or Fibonacci
- 17. Technique: Examples Why do we need to test one value above and one value below the
- 18. Technique: Tips Note that a point just above one boundary may be in another equivalence class.
- 19. Technique: Continuous Boundary values for a continuous range of inputs. Test data input of {$999, $1,000,
- 20. Technique: Discrete Boundary values for a discrete range of inputs. Test data input of {0, 1,
- 21. Technique: Fractional What are boundary values here if we may have fractional numbers? Do we have
- 22. Technique: Fractional We need to have here several solutions what to do in such cases: Use
- 23. Technique: Array What are boundary values here? No boundaries.
- 24. Technique: Combination Rarely we will have the time to create individual tests for every boundary value
- 25. Technique: Combination
- 26. Technique: Usage Why do we need values above and below edge? Higher test coverage ECP replacement
- 27. Examples
- 28. Examples: 1 Input to this field can be between one and four numeric characters (0, 1,
- 29. Examples: 2 34,4; 34,5; 42; 42,1 A thermometer can have values between 34,5 and 42. 34,4(9);
- 30. Applicability and Limitations
- 31. Applicability and Limitations Boundary value testing can significantly reduce the number of test cases that must
- 32. Summary
- 33. Summary While equivalence class testing is useful, its greatest contribution is to lead us to boundary
- 34. Practice
- 35. Practice ZIP Code – five numeric digits. Legitimate ZIP Codes in the United States. Last Name
- 36. Practice: Answers 1 ZIP Code – five numeric digits. Legitimate ZIP Codes in the United States.
- 37. Practice: Answers 2 Last Name – one through fifteen characters (including alphabetic characters, periods, hyphens, apostrophes,
- 38. Practice: Answers 3 User ID – eight characters at least two of which are not alphabetic
- 39. Practice: Answers 4 Course ID – three alpha characters representing the department followed by a six-digit
- 40. Practice: Answers 5
- 41. References
- 44. Скачать презентацию