Automation error - VB6 application - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Automation error - VB6 application (/Thread-Automation-error-VB6-application) |
Automation error - VB6 application - janriis - 11-23-2009 Hi all I am testing a VB6 app using QTP 9.5. I often get this error "Automation error - The object invoked has disconnected from its clients. The error appears randomly and not on the same place ever time. The error does not occur when testing the app manually. Any suggestions ? RE: Automation error - VB6 application - Jackomcnabb - 11-26-2009 Without looking at the app it's hard to know what going wrong but I have had similar issues and it is sometimes down to timing issues, that QTP is too fast for the App. A good thing to try would be put some wait statements in the code... i've had a lot of issues with reading and writing to DBs and add a wait after you do that sort of thing may help. RE: Automation error - VB6 application - janriis - 11-26-2009 what is the syntax for those wait statements ?, google was not much help here RE: Automation error - VB6 application - Jackomcnabb - 12-03-2009 wait then the number of seconds to wait: wait 1 or even wait(1) RE: Automation error - VB6 application - v_selvam - 12-04-2009 This is not due to QTP. Login as Administrator and then try to test it. RE: Automation error - VB6 application - Ganta - 12-07-2009 Even i too faced this problem while executing the tests.I think you can solve this problem by disabling pictures in Internet Options to save time for loading of the page.If this doesn't work then use Services.ThinkTime(2) for wait. RE: Automation error - VB6 application - janriis - 12-10-2009 Hi Ganta. My app is a "Thick client" and not a thin web client. I am not testing on explorer or any other browser. I will try Services.thinkTime(2) to see if that works |