In our client server application tests, sometimes the default state runs and decides that the main form doesn't exist. Then it invokes another one successfully and the system hangs.I tried increasing the Agent Window Time Out Option,but no use.i get this issue only when i execute all the testcases from the testplan.when i execute the testcase individually it gets passed.
I think, that the exists-method tries to get the main window too fast. The problem appears for the second and following testcases, isn't it? I encoutered the same problems and I solved it by adding a sleep(2) after every testcase. I'm very unhappy with this solution, but it works so far.
Hm, that seems to be a performance problem. Well, if the problem appears after the first testcase it may be the problem I had. But after a lot of testcases I think it is rather a performance problem than a problem with the recognition.
Run the testplan with the syslog in the backgroud. It might be, that your CPU-Load it too high or your free RAM isn't enough. So your AUT isn't loaded fast enough and SILK cannot find yout AUT.
So adding a sleep won't help you much. Can you split the testplan and call both plans from a main-function? Perhaps this will make a difference.
Good idea with the while-loop. But if there is a malfunction in this particular testcase e.g. the windows won't appear you're chaught in an endless loop. If you start a testplan over the weekend and the 4th testcase has this problem you will loose two days of testing...