For Programmers: Free Programming Magazines  


Home > Archive > Software Engineering > February 2006 > White Box Testing









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author White Box Testing
macky

2006-02-12, 8:53 am

Hi, This is my first time doing testing, therefore here to request someone will be kind enough to show how to do a simple Basis Path Testing and the computation of the Cyclomatic Complexity (CG).

Thank you in advance and here is code as an example.

code:
Select Case Text1.Text (1) Case "Available" (2) 'Text1.Text = "Available" msg = MsgBox("Car Available" & vbCrLf & "Proceed to make a rental?", vbYesNo, "Availability") (3) Select Case msg Case vbYes (4) Invoice.Show (5) Unload Me Exit Sub (6) Case vbNo (7) Unload Me (8) Exit Sub (9) End Select (10) Case "On Rent" (11) 'Text1.Text = "On Rent" msg = MsgBox("Car is not Available" & vbCrLf & "Do you want to Resserve?", vbYesNo, "Availability") (12) Select Case msg (13) Case vbYes (14) Reserve.Show (15) Unload Me Exit Sub (16) Case vbNo (17) Unload Me (18) Exit Sub (19) End Select (20) Case Else (21) MsgBox "Select Car" End Select (22) End Sub (23)
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com