Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Project Scope:
The telephone directory application is developed for users who wish to access,
edit, search or modify the telephonic details of the user by knowing only single
thing out of first name, middle name or last name and address of the user about
whom the information is to be accessed.
Scope:
The scope of this application cannot be considered too wide or too narrow the
factor defining its scope is its volume of data storage and as the way to use this
application is very easy and understandable therefore anyone can use it without
any problem.
Purpose/objective
The purpose of this telephone directory application is to add, modify, delete, search
telephonic details of the various users and to provide them anytime just by taking
any single detail key out of address, phone no., first middle or last name of the
telephone user.
Limitations:
The only limitation of this application is the feature of taking or say requirement of
any single detail key without which no further function can be done in the
application.
System testing
System testing of software or hardware is testing conducted on a
complete, integrated system to evaluate the system's compliance with its
specified requirements. System testing falls within the scope of black
box testing, and as such, should require no knowledge of the inner
design of the code or logic.
Testing the whole system
System testing is performed on the entire system in the context of a
Functional Requirement Specification(s) (FRS) and/or a System
Requirement Specification (SRS). System testing is an investigatory
testing phase, where the focus is to have almost a destructive
attitude[citation needed] and tests not only the design, but also the behavior and
even the believed expectations of the customer. It is also intended to test
up to and beyond the bounds defined in the software/hardware
requirements specification(s)
Types of system testing
The development process involves various types of testing. Each test
type addresses a specific testing requirement. The most common types
of testing involved in the development process are:
• Unit Test.
• Functional Test
• Performance Test
• System Test
• Integration Test
• Beta Test
• Acceptance Test.
Unit Test
The first test in the development process is the unit test. The source
code is normally divided into modules, which in turn are divided into
smaller units called units. These units have specific behavior. The test
done on these units of code is called unit test. Unit test depends upon the
language on which the project is developed. Unit tests ensure that each
unique path of the project performs accurately to the documented
specifications and contains clearly defined inputs and expected results.
System Test
Functional Test
Acceptance Testing
Testing the system with the intent of confirming readiness of the product
and customer acceptance.
1. Systems Development Life Cycle
Some agile and iterative proponents confuse the term SDLC with
sequential or "more traditional" processes; however, SDLC is an
umbrella term for all methodologies for the design, implementation, and
release of software.
1.1 Glossary:
Term Definition
M.I Middle name of the telephone user in data.
Search Engine Engine used to search telephonic information.
Personal information Data including all details of the telephone user.
References:
Black Book of Visual Basic
Software Engineering (Galgotia publications)
Microsoft Developer’s Network forum
www.a1vbcode.com
2. General Description
Telephone directory is fast software that can be used to access any information
recorded in the records of telephone users by any key known it may be user’s first
name, last name, middle name or address. Telephone directory creates vast data
storage software. You can keep as many as telephone numbers with its user’s
details that can be accessed any time. You can store as many telephone numbers
with regarding details as you want. Different users can be identified easily with
their different middle name or last name as well. Any user can access the
application.
3. The Overall Description
Anybody can easily find or access the telephonic details recorded in the directory
using any known detail of the telephone user. This application provides a vast
recording capacity to store telephonic details with address and other details. When
a user wants to use the system he is asked for any of the recorded detail and then
they can search full details very comfortably. This application helps the user a lot
to draw any information about the telephone user. The interface, which includes
simple telephonic details for no reason other than to provide them to you whenever
you want, would be better served by a more standard layout that makes options
readily and easily available. In our tests, the program demonstrated good speed,
even when accessing. If you require these information and need to edit, remove,
add or search them, you should definitely give telephone directory a try.
Hardware configuration
CORE2DUO
Ram 1GB
Hard disk
DATA FLOW DIAGRAMS
0 LEVEL DFD
Option Explicit
Dim vID As String, vLastName As String, vFirstName As String, vMI As String, vHomeAddress
As String, vTelNum As String
End Sub
Dim vI As Integer
If MsgBox("Are you sure you want to delete this entry?", vbQuestion + vbYesNo, "Confirm
Delete") = vbYes Then
With dtaDB
.RecordSource = "SELECT * FROM DirectoryList WHERE ID='" & vID & "'"
.Refresh
With .Recordset
If .BOF = False Then
.Delete
Call Default_Obj
Call Show_Existing("SELECT * FROM DirectoryList")
Else: MsgBox "The record you want to delete doesn't exist.", vbExclamation, "Not
Found"
Exit Sub
End If
End With
End With
Else
Exit Sub
End If
End Sub
EditUpdate_Record:
With dtaDB
.RecordSource = "SELECT * FROM DirectoryList WHERE ID='" & vID & "'"
.Refresh
With .Recordset
If .BOF = True Then
MsgBox "The record you want to edit/update doesn't exist.", vbExclamation, "Not
Found"
Exit Sub
Else
.Edit
!LastName = txtLastName
!FirstName = txtFirstName
!Mi = txtMI
!TelNum = txtTelNum
!Address = txtHomeAddress
.Update
Call Default_Obj
Call Show_Existing("SELECT * FROM DirectoryList")
End If
End With
End With
End Sub
End Sub
End Sub
With Me
.txtLastName = ""
.txtFirstName = ""
.txtMI = ""
.txtHomeAddress = ""
.txtSearchKey = ""
.txtTelNum = ""
.cboSearchBy.Text = .cboSearchBy.List(0)
.cmdCloseCancel.Caption = "&Close"
.cmdDelete.Enabled = False
.cmdEditUpdate.Caption = "&Edit"
.cmdEditUpdate.Enabled = False
.cmdNewSave.Caption = "&New"
.fraInfo.Enabled = False
.fraSearch.Enabled = True
End With
End Sub
lstExisting.ListItems.Clear
With dtaDB
.RecordSource = vSQL
.Refresh
With .Recordset
If .BOF = True Then Exit Sub
.MoveFirst
While Not .EOF
Set vLst = lstExisting.ListItems.Add(, , !ID)
vLst.SubItems(1) = !LastName
vLst.SubItems(2) = !FirstName
vLst.SubItems(3) = !Mi
vLst.SubItems(4) = !Address
vLst.SubItems(5) = !TelNum
.MoveNext
Wend
End With
End With
End Sub
Dim vI As Integer
Call Default_Obj
cmdEditUpdate.Enabled = True
cmdDelete.Enabled = True
vI = lstExisting.SelectedItem.Index
vID = lstExisting.SelectedItem
txtLastName = lstExisting.ListItems(vI).ListSubItems(1)
txtFirstName = lstExisting.ListItems(vI).ListSubItems(2)
txtMI = lstExisting.ListItems(vI).ListSubItems(3)
txtHomeAddress = lstExisting.ListItems(vI).ListSubItems(4)
txtTelNum = lstExisting.ListItems(vI).ListSubItems(5)
End Sub
Call Show_Existing(vSQL)
End Sub
FORM 2 CODING
Option Explicit
Dim vID As String, vLastName As String, vFirstName As String, vMI As String, vHomeAddress
As String, vTelNum As String
End Sub
Dim vI As Integer
If MsgBox("Are you sure you want to delete this entry?", vbQuestion + vbYesNo, "Confirm
Delete") = vbYes Then
With dtaDB
.RecordSource = "SELECT * FROM DirectoryList WHERE ID='" & vID & "'"
.Refresh
With .Recordset
If .BOF = False Then
.Delete
Call Default_Obj
Call Show_Existing("SELECT * FROM DirectoryList")
Else
MsgBox "The record you want to delete doesn't exist.", vbExclamation, "Not
Found"
Exit Sub
End If
End With
End With
Else
Exit Sub
End If
End Sub
EditUpdate_Record:
With dtaDB
.RecordSource = "SELECT * FROM DirectoryList WHERE ID='" & vID & "'"
.Refresh
With .Recordset
If .BOF = True Then
MsgBox "The record you want to edit/update doesn't exist.", vbExclamation, "Not
Found"
Exit Sub
Else
.Edit
!LastName = txtLastName
!FirstName = txtFirstName
!Mi = txtMI
!TelNum = txtTelNum
!Address = txtHomeAddress
.Update
Call Default_Obj
Call Show_Existing("SELECT * FROM DirectoryList")
End If
End With
End With
End Sub
End Sub
End Sub
With Me
.txtLastName = ""
.txtFirstName = ""
.txtMI = ""
.txtHomeAddress = ""
.txtSearchKey = ""
.txtTelNum = ""
.cboSearchBy.Text = .cboSearchBy.List(0)
.cmdCloseCancel.Caption = "&Close"
.cmdDelete.Enabled = False
.cmdEditUpdate.Caption = "&Edit"
.cmdEditUpdate.Enabled = False
.cmdNewSave.Caption = "&New"
.fraInfo.Enabled = False
.fraSearch.Enabled = True
End With
End Sub
lstExisting.ListItems.Clear
With dtaDB
.RecordSource = vSQL
.Refresh
With .Recordset
If .BOF = True Then Exit Sub
.MoveFirst
While Not .EOF
Set vLst = lstExisting.ListItems.Add(, , !ID)
vLst.SubItems(1) = !LastName
vLst.SubItems(2) = !FirstName
vLst.SubItems(3) = !Mi
vLst.SubItems(4) = !Address
vLst.SubItems(5) = !TelNum
.MoveNext
Wend
End With
End With
End Sub
Dim vI As Integer
Call Default_Obj
cmdEditUpdate.Enabled = True
cmdDelete.Enabled = True
vI = lstExisting.SelectedItem.Index
vID = lstExisting.SelectedItem
txtLastName = lstExisting.ListItems(vI).ListSubItems(1)
txtFirstName = lstExisting.ListItems(vI).ListSubItems(2)
txtMI = lstExisting.ListItems(vI).ListSubItems(3)
txtHomeAddress = lstExisting.ListItems(vI).ListSubItems(4)
txtTelNum = lstExisting.ListItems(vI).ListSubItems(5)
End Sub
Call Show_Existing(vSQL)
End Sub
THE DATABASE