0% found this document useful (0 votes)
23 views

Debugging The Test: Break Point

The document discusses debugging automation tests in QuickTest Professional (QTP). It explains how to set breakpoints to pause execution and use step-into, step-out, and step-over commands to debug line by line. It also describes the debug viewer which monitors variables, and includes sections for watch, variables, and command.

Uploaded by

harikaparimala06
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Debugging The Test: Break Point

The document discusses debugging automation tests in QuickTest Professional (QTP). It explains how to set breakpoints to pause execution and use step-into, step-out, and step-over commands to debug line by line. It also describes the debug viewer which monitors variables, and includes sections for watch, variables, and command.

Uploaded by

harikaparimala06
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Debugging The Test Once An Automation Test Is Prepared in Order To Confirm The Script We Have To Debug the Test.

Ex : Dim a,b,c a=100 b=50

. 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 .

You might also like