Testing: Example 1 - Email Address Validation
Testing: Example 1 - Email Address Validation
Testing
Testing
When you complete the testing section of your project you need to make sure your testing table is specific and
attempts to test all possible inputs.
Below are a series of programs and completed testing tables so you can see how you should complete the testing
tables.
Program code:
Testing Table:
computing.outwood.com/NEA/vb/testing-vb.html 1/23
5/27/2021 Testing
Testing Evidence:
Test 1
Test 2
Test 3
computing.outwood.com/NEA/vb/testing-vb.html 2/23
5/27/2021 Testing
Test 1
Test 4
Test 5
A = 70+
B = 60+
C = 50+
D = 40+
U = <40
Program code:
computing.outwood.com/NEA/vb/testing-vb.html 3/23
5/27/2021 Testing
Testing Table:
Testing Evidence:
computing.outwood.com/NEA/vb/testing-vb.html 4/23
5/27/2021 Testing
Test
1
Test
2
Test
3
Test
4
computing.outwood.com/NEA/vb/testing-vb.html 5/23
5/27/2021 Testing
Test
1
Test
5
Testing Table:
Testing Evidence:
computing.outwood.com/NEA/vb/testing-vb.html 6/23
5/27/2021 Testing
Test 6
Test 7
Test 8
Test 9
computing.outwood.com/NEA/vb/testing-vb.html 7/23
5/27/2021 Testing
Test
10
computing.outwood.com/NEA/vb/testing-vb.html 8/23
5/27/2021 Testing
| |—|—|
Program code:
lstOutput.Items.Clear()
Dim carsdata As New StreamReader("D:\cars.csv")
Dim details As Array
Dim found As Boolean = False
Dim carspeed As Integer = cmbSpeedLimit.Text
While carsdata.EndOfStream = False
details = carsdata.ReadLine.Split(",")
If details(1) > carspeed Then
lstOutput.Items.Add(details(0) & "," & details(1))
found = True
End If
End While
If found = False Then
MessageBox.Show("There were no cars that broke the speed limit of " & cmbSpeedLimit.Text)
End If
Testing Table:
computing.outwood.com/NEA/vb/testing-vb.html 9/23
5/27/2021 Testing
Testing Evidence:
Test 1 Test 2
computing.outwood.com/NEA/vb/testing-vb.html 10/23
5/27/2021 Testing
Test 3
computing.outwood.com/NEA/vb/testing-vb.html 11/23
5/27/2021 Testing
| |:-:|:-:|
Program code:
computing.outwood.com/NEA/vb/testing-vb.html 12/23
5/27/2021 Testing
Testing Table:
computing.outwood.com/NEA/vb/testing-vb.html 13/23
5/27/2021 Testing
Testing Evidence:
Test 1
computing.outwood.com/NEA/vb/testing-vb.html 14/23
5/27/2021 Testing
Test 2
Test 3
computing.outwood.com/NEA/vb/testing-vb.html 15/23
5/27/2021 Testing
Test 4
Program code:
computing.outwood.com/NEA/vb/testing-vb.html 16/23
5/27/2021 Testing
Testing Table:
Testing Evidence:
computing.outwood.com/NEA/vb/testing-vb.html 17/23
5/27/2021 Testing
Test
1
Test
2
Test
3
This program updates the number of years a member of staff has been working at the school. When the program
runs the user enters their email address, when it finds the person it asks them to enter their number of years
teaching. It will then update the file if the person exists in the file.
Program code:
computing.outwood.com/NEA/vb/testing-vb.html 19/23
5/27/2021 Testing
Testing Table:
computing.outwood.com/NEA/vb/testing-vb.html 20/23
5/27/2021 Testing
Testing Evidence:
Test
1
computing.outwood.com/NEA/vb/testing-vb.html 21/23
5/27/2021 Testing
Test
2
Test
3
computing.outwood.com/NEA/vb/testing-vb.html 22/23
5/27/2021 Testing
computing.outwood.com/NEA/vb/testing-vb.html 23/23