Debugging The Test: Break Point
Debugging The Test: Break Point
. If a>b Then
Msgbox "A is Big" Else Msgbox "B is Big" End If Break Point : When Ever a Break Point is Encountered During Test Execution , Execution Stop There For Debugging. Step Into : It Executes The Remaining Portion Of Script Step By Step. Step Out : It Will Execute All Remaining Lines From The Current Step While Debugging. Step Over : It Will Execute The Current Step and Execution Stops at Next Line. If The Current Step is a Call To a Procedure All
Statements in That Procedure will Be Executed and Execution Stops at Next Line. Ex : Sub p() print "It is Procedure" print "abc" End Sub Function f1() print "It is 1 st Function " print "pqr" End Function Function f2() print "It is 2 ndt Function " print "xyz" End Function print "hai" Call f1() print "hyd" print "byee" Call f2() Call p()
Debug Viewer : It is The Component Provided By QTP To Handle The Variable while Debugging 3 Sections. 1) Watch 2) Variables 3) Command
Watch : It is Useful To Watch a Value For a Specific Variable. Variable : It Will List Out All Variables And Corresponding Values. Command : It is Useful To Reset a Value For A Variable While Debugging .