Welcome, Guest. Please login or register.
Login with username, password and session length

 
Advanced search

18120 Posts in 4741 Topics- by 31743 Members - Latest Member: suuraj
 

Pages: [1]   Go Down
Print
0 Members and 1 Guest are viewing this topic.
Author Topic: "General run error" when run a vb function from library file    (Read 593 times)
qtptech
User
*
Offline Offline

Posts: 2


« on: October 16, 2008, 09:40:04 AM »

Hi All,

QTP 9.5: I got a "General run error" when run a vb function from library file. It's randomly occuring. I have to press the "retry" button. Anyone has the same issue or any suggestions? I debug and got the err#: "The server thrown exception".

Thanks,
Tech
Logged
Paul Grossman
Moderator
Full User
*****
Offline Offline

Posts: 220


Certified Instructor, Automation Project Lead, Quality Center Installation and Customize, HP Universe and Mercury World Conference Track Speaker.


« Reply #1 on: October 16, 2008, 11:20:16 AM »

90% of the time that error means QTP attempted to execute the method of an object that does not currently exist.

If this is the case try preceeding the line with an .exist method, before attempting to determine what property changed.

If oList.Exist then
   oList.Select "#4"
else
   msgbox "This oList object does not exist"
end if

Logged

Best Regards,
Paul M. Grossman
AdvancedQTP Forums Moderator
Meir Bar-Tal
Administrator
Advanced User
*****
Offline Offline

Posts: 1283



WWW
« Reply #2 on: October 16, 2008, 12:44:34 PM »

It also happens that the object exists but QTP loses the reference.
Try to use obj.Init before the actual manipulation to force QTP get the reference.
Logged

Best Regards,

Meir Bar-Tal
AdvancedQTP Chief Editor & Forums Administrator
Pages: [1]   Go Up
Print
Jump to: