-
Expert Member
How do we know which error is generated?
I know that there are 3 kinds of errors...1. Generated by QTP 2. Generated by Script and 3. Genetated by AUT. How do we know which error is generated by QTP or Script or AUT?
NOTE : [This question was asked by Joelu]
-
Expert Member
Re: How do we know which error is generated?
'error handling for vbscript errors
on error resume next
if err.number <> 0 then
msgbox err.description, vbokonly, err.number
err.clear
end if
'error handling for qtp internal errors
if getlasterror <> 0 then
msgbox(describeresult(getlasterror))
end if
for application errors you have to use the api of your aut. But this is not everywhere available/possible
Regards,
Nawab
Last edited by NawabShaikh; 02-28-2008 at 07:09 AM.
Reason: Alignment and Signature
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules