QTP VBScript new series + Interview Question Bank on QTP for enrichment of Knowledge in QTP

This Site has been brought to you by HP Certified Expert of QTP.

Exciting new articles for October:

1) QTP Tip:Deselect all Radio Buttons

2) HP QTP Crypt Object

3)Adding Hyperlinks in Excel Spreadsheet

Best of Luck Friends ! ! !

Expert QTP

All Articles are Copyright Protected. These are Free for Reading & Personal Use. Reproduction in Any Form without the Permission is Illegal & Strictly Prohibited.

Copyright © 2009 ExpertQTP

Google Search

Saturday, June 7, 2008

Basics of Debugging Run Errors in QTP

First of all let us understand the meaning of “General run error” as you are seeing above.

“General run error” occurs in a situation when some source while being accessed by QTP propels an error.

This is the inherent nature of QTP that in such a situation it displays a "General run error" message instead of showing a simple “Error” .

Following line of a simple code will illustrate as to how the "General run error" shall be generated.

Set oGeneralRunError = GetObject("A.B.C")

On running the above code, you will get an error message "Invalid Syntax"

Here we can see that the actual error is in-fact an “Invalid Syntax Error” and not a "General run error". However to view the actual error in this case, click on the “Debug” button and open the Watch Window.

It is simple to fix the “General run error”

- Incase we get this type of error while working on a QTP test object; we can place a Msgbox to check the existence of the object being handled.

- However if we get this type of error while working under the Web environment, the issue can be resolved by using DOM object method.

Keywords: QTP, quicktest professional, HP QTP, debug general run error

No comments:

Copyright © 2009 ExpertQTP