1 / 4

Testing Programs with Branches

Testing Programs with Branches. CSIS 1595: Fundamentals of Programming and P roblem Solving 1. Example Program. Test Cases. Need at least one test case for each possible outcome Each possible branch of each condition Example: At least one A  95 At least one B  85

yepa
Download Presentation

Testing Programs with Branches

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. Testing Programs with Branches CSIS 1595: Fundamentals of Programming and Problem Solving 1

  2. Example Program

  3. Test Cases • Need at least one test case for each possible outcome • Each possible branch of each condition • Example: • At least one A 95 • At least one B 85 • At least one C 75

  4. Boundary Testing • Need test cases at boundaries between possible outcomes • Good for catching errors in choice of relational operators • Example: • Boundary between Aand B 90 • Boundary between Band C 80

More Related