I am testing this application on ie7, wherein i need to click on several links one after the other. Each link opens up its pop up window and i check for its content and then close it. Thereafter i proceed similarly for the next link. It all seemed very simple to me in the beginning.
The problem : it so happens that during the test run, one of the pop up window does not open up in time( it is totally random.) and due to which the rest of the links and in-turn the entire script starts failing. The only possible solution that i can think of is increasing the object sync timeout. But where do I draw a line between increasing the time and failing the script? If i increase it to more than 35-40 seconds then probably it will work but then i dont think thats the optimal solution - in the sense it does not guarantee the window will open up within 40 seconds too.
Sounds like a bug. If the window takes that long to open and there is no good way to determine when it completes, I would push back to development as untestable and see if they can't give you something to determine completion or at least a hook to determine when it is done.
If >40s is acceptable for this application, you may get a better answer from someone else on this forum with more QTP experience.
Well when i click those links manually, the windows always open up instantly - so i dont think there is any problem with the development. Ive been trying to resolve this problem from last 3 hours. Once a window opening operation fails then it hangs the browser as soon as it tries to open another link. Initially I thought it was opening the window but somehow was unable to bring it up on the screen, so i put a Browser("Home").FullScreen . But that did not work either. Also if i try to click the browser while this problem occurs, the entire thing gets stuck and as i write this, the browser is still trying to open those windows.
I have abosultely no clue as to what is happening, probably I am not thinking in the right direction. But Ill still try to get a way out.