Posts: 54
Threads: 30
Joined: Jul 2008
Reputation:
0
11-23-2009, 03:01 PM
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 ?
Posts: 52
Threads: 8
Joined: Dec 2008
Reputation:
0
11-26-2009, 12:18 AM
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.
Posts: 54
Threads: 30
Joined: Jul 2008
Reputation:
0
11-26-2009, 06:00 PM
what is the syntax for those wait statements ?, google was not much help here
Posts: 52
Threads: 8
Joined: Dec 2008
Reputation:
0
12-03-2009, 11:27 PM
wait then the number of seconds to wait:
wait 1 or even wait(1)
Posts: 49
Threads: 0
Joined: Nov 2009
Reputation:
0
12-04-2009, 05:44 PM
This is not due to QTP. Login as Administrator and then try to test it.
Posts: 19
Threads: 8
Joined: Oct 2009
Reputation:
0
12-07-2009, 09:28 PM
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.
Posts: 54
Threads: 30
Joined: Jul 2008
Reputation:
0
12-10-2009, 01:55 PM
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