They both represent different currencies Test plan Test number Component(s) tested Input Expected result Actual result (Output) Did it run As expected Yes/No 1 Splashscreen_Load None Splash screen displays and then after a certain time switches to form 1 Splash screen did Not disappear No 2 Splashscreen_Load None Splash screen displays and then after a certain time switches to form 1 Splash screen now transitions to form 1 (got error page to see solution ) Yes 3 Form1_Load None Form1 to display without errors Yes 4 Form2_Load None Form2 to display with specific text to inform the user Label was to small display all the text No 5 Form2_Load none Form2 to display with specific text to inform the user now displays all the text (got error page to see solution ) Yes 6 btnProcess_Click (txtFrom) btnProcess_Click No Error message to display and indicate the problem Yes 7 btnProcess_Click (txtRate) btnProcess_Click (txtAmount) No Error message to pop up and display message Message box displayed with the wrong message No 8 btnProcess_Click (txtRate) btnProcess_Click (txtAmount) No message to pop up and display message Message box now displays the right message(got error page to see solution ) Yes 9 btnProcess_Click (txtFrom) btnProcess_Click (txtTo) btnProcess_Click Yes Answer to display at the bottom of the form when Yes
(txtRate) btnProcess_Click (txtAmount) are filled in correctly 10 btnProcess Yes Display the answer and old and new currencies Yes 11 btnReset No the form of all inputs and outputs Yes 12 HelpToolStrip No Display the help form Yes 13 ReturnToolStrip No Close the help form It closed and returned me to Yes 14 QuitToolStrip No Close form1 and display the yes or No option to close Yes pseudo code/list of any pre-defined functions/subroutines flow chart showing the processing Test data Test Num splash screen Why 1 Display To check if the splash screen displayed before form 1
'Resets the program 'When the reset button is pressed: 'Change label text to “Answer will display here “” 'Change “txtFrom” to nothing “” 'Change “txtAmount” to nothing “” 'Change “txtTo” to nothing “” 'Change “txtRate” to nothing “” 'Put cursor to the field of the form or “txtFrom” lblAnwser.Text = "Answer will display here" txtFrom.Text = "" txtAmount.Text = "" txtTo.Text = "" txtRate.Text = " " txtFrom.Focus() End Sub Private Sub btnProcess_Click(sender As Object, e As EventArgs) Handles btnProcess.Click 'Validate the data ' When the process button is clicked then perform the following statements. 'If the length of the text in “txtFrom” is equal to zero then display a message box ‘stating error “Make sure you type the name of your currency” 'Reset text in “txtFrom” to nothing or ““ 'Put cursor in the “txtFrom” box
If IsNumeric(txtFrom.Text) Then MsgBox("Make sure you type a name and not a number for your currency", MsgBoxStyle.Critical, txtFrom.Text = "" txtFrom.Focus() Exit Sub End If 'Check that it has an input 'If the length of the text in “txtTo” is equal to zero then display a message box stating ‘error “Make sure you type the name of your currency” 'Reset text in “txtTo” to nothing or ““ 'Put cursor in the “txtTo” box If txtTo.Text.Length = 0 Then MsgBox("Make sure you type the name of your currency ", MsgBoxStyle.Critical, "ERROR!") = "" txtTo.Focus() Exit Sub End If 'Check it’s not the same 'If the “txtFrom” is equal to “txtTo” then display a message box stating error “You ‘cannot have the same currency” text in “txtFrom” to nothing or ““ 'Reset text in “txtTo” to nothing or ““ 'Put cursor in the “txtFrom” box
Exit Sub End If 'Check that it has an input 'If the length of the text in “txtAmount” is equal to zero then display a message box ‘stating error “Make sure you enter a number for the amount",” 'Reset text in “txtAmount” to nothing or ““ 'Put cursor in the “txtAmount” box If txtAmount.Text.Length = 0 Then MsgBox("Make sure you a number for the amount", MsgBoxStyle.Critical, "ERROR!") txtAmount.Text = "" txtAmount.Focus() Exit Sub End If 'Check it’s not over 30 characters 'If the length of the text in “txtAmount” is more than 6 then display a message box ‘stating error “This amount is too much upto 6 characters allowed",” 'Reset text in “txtAmount” to nothing or ““ 'Put cursor in the “txtAmount” box If txtAmount.Text.Length > 6 Then MsgBox("The amount is too much", MsgBoxStyle.Critical, "ERROR!") txtFrom.Text = "" txtFrom.Focus() Exit Sub End If it’s a name and not a number