Debug Options in QTP
- Debug viewer- to see the debug details
- MSGBOX function to display value of variable
- Exist method to check control exist or not
- GetLastError & DescribeResult- to see the error code and description
- Run to Step and Run From Step – to run the test from particular step
- QTP breakpoints- using it user can stop the execution and see the status of application, change the code etc
- Step into, step out and Step over
Syntex error
QTP checks syntax when you switch from
expert view to keyword view.
Tools> check syntax (Ctrl + F7)
Syntax error shown in information pane
having detail, item, action and line number.
GetLastError & DescribeResult
GetLastError returns the error
code of the most recent error. You can use this statement together with
DescribeResult statement. DescribeResult returns text description of the
specified error code.
Window(“abc”).Activate
X=GetLastError
Msgbox (DescribeResult(x))
These are the available option in qtp.Its nice.
ReplyDeleteSelenium Training in Chennai | Software Testing Training in Chennai | Software Testing Training in Chennai |
Thanks you so much for sharing this information.
ReplyDeletePlease keep updating this blog as this information
is really useful to me.
Software Testing Training in Chennai | Software Testing Training in Anna Nagar | Software Testing Training in OMR | Software Testing Training in Porur | Software Testing Training in Tambaram | Software Testing Training in Velachery