1 / 4

BASIS PATH TESTING EXAMPLE :VIDEO SALES

BASIS PATH TESTING EXAMPLE :VIDEO SALES. For the video sales and rental shop example, consider the following procedure for reserving a copy of a movie video. Procedure: reserveVideoCopy return(result) 1. If (status = “available”) OR ((status = “rented”) AND (returnDate ≤

maryamoore
Download Presentation

BASIS PATH TESTING EXAMPLE :VIDEO SALES

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. BASIS PATH TESTING EXAMPLE:VIDEO SALES For the video sales and rental shop example, consider the following procedure for reserving a copy of a movie video. Procedure: reserveVideoCopy return(result) 1. If (status = “available”) OR ((status = “rented”) AND (returnDate ≤ requestDate)) 2. status = “reserved” 3. link video copy instance to member instance 4. result = “success” 5. Else 6. result = “failure” 7. Endif End Draw the flow graph for the reserveVideoCopy procedure. Show the flow graph node to program statement mapping and clearly label the regions of the flow graph.

  2. BASIS PATH TESTING EXAMPLE: ACTIVITY DIAGRAM

  3. BASIS PATH TESTING EXAMPLE:FLOW GRAPH

  4. BASIS PATH TESTING EXAMPLE: COMMON ERRORS • Missing the outside region • Missing including a node for the last statement • Having a condition with only one out-going branch • Drawing an activity diagram • Drawing a state machine diagram • Not understanding what is a flow graph

More Related