Aim:- To understand the concept of software testing for bug free Software.
As this webpage was created on 09/01/2012 and this experiment has already been corrected so I am not posting the answers online now, you can copy them from most of the people present in the lab...:-P
We dont have to do any program in this experiment...:-)
Aim:- To study the system specification to report bugs.
Q1. What is System Specification?
Ans. It is a written document using words and pictures prepared by software development team to describe the intended system. System specifications are prepared with the help of usability studies, focus groups, marketing input.
Q2. Explain Static Black Box Testing.
Ans. Black-box testing is a method of testing software without knowledge of internal working of the system. Static Testing refers to testing something that's not running. Static Black-Box Testing is testing the specification.
Q4. What is the difference between verification and validation?
|i) It is the process confirming that software meets its specification||i) It is the process confirming that software meets the user's requirements|
|ii) Verification is done during static testing.||ii) Validation is done during dynamic testing.|
|iii)Verification takes place before validation.||iii)Validation takes place after verification.|
/*=============================================== * Program for Expt2 * Name: Paawan Chaudhary * Roll No: 12 * Class: TYCO - Ist Shift * Important:- Use the form given below this program and then use this code on that form's code. But this program is incomplete...:-( =================================================*/ Dim chr Private Sub Command1_Click() If Text1.Text = "Munni" And Text2.Text = "Munni" Then MsgBox ("Correct") Else MsgBox "Wrong" End If End Sub Private Sub Command2_Click() Text1.Text = "" Text2.Text = "" Command1.Enabled = False End Sub Private Sub Form_Load() Text2.PasswordChar = "*" Command1.Enabled = False Text2.Enabled = False End Sub Private Sub Text1_Change() If (chr = 77) And (chr = 117) And (chr = 110) And (chr = 110) And (chr = 105) Then Text2.Enabled = True End If End Sub Private Sub Text1_KeyPress(KeyAscii As Integer) chr = KeyAscii Text2.Enabled = True End Sub Private Sub Text2_Change() If (chr = 77) And (chr = 117) And (chr = 110) And (chr = 110) And (chr = 105) Then Command1.Enabled = True End If End Sub Private Sub Text2_KeyPress(KeyAscii As Integer) Command1.Enabled = True End SubOutput:-
Aim:- To understand how to write Test Cases for any application such as Login form.
Q1. What is Dynamic Black Box Testing?
Ans. Testing software without having an insight into the details of underlying code is dynamic black-box testing. It's dynamic because the program is running and it's black-box because tester is testing it without knowing exactly how it works.
Q3. What do you mean by Test Case?
Ans. These are the specific inputs that are to be tried and the procedures that are to be followed while testing the software.
Q4. What is Equivalence Partitioning and why it is necessary?
Ans. It is the process of methodically reducing the huge set of possible test cases into a much smaller, but still equally effective set.
Q8. Give the advantages of manual testing for software re-testing.
i) Faults and drawbacks can be removed.
ii) It puts a check on all documents.
iii) An overview of all tests is possible.
Same as last program. Use the following table to fill details of the test conducted on the program created in Expt no. 2. But this will be there in the manual so you can directly fill the values in the Manual!!!:-)
Aim:- To understand the concept of Static White Box Testing.
Laboratory Practices:- (pg.23)
1. Write the script in AutoIt v3 to add two numbers and display the sum.
dim $a, $b, $c $a = InputBox("Addition","Enter the 1st no.") $b = InputBox("Addition","Enter the 2nd no.") $c = $a + $b MsgBox(0, "Addition","Addition of two nos is" & $c)
dim $a, $b $a = InputBox("Leap Year", Enter The Year") $b = Mod($a, 4) if $b<1 Then MsgBox(0,"Leap Year","The entered year is a Leap Year") Else MsgBox(0,"Leap Year","The entered year is not a Leap Year") EndIf