Interview Questions

I am facing a strange problem in which Agent hangs only while executing my script for the first time...

SilkTest Questions and Anwsers


(Continued from previous question...)

25. I am facing a strange problem in which Agent hangs only while executing my script for the first time...

I am facing a strange problem in which Agent hangs only while executing my script for the first time.
Scenario:
1. It launches the website and Clicks to download the product.
2. By the time product is downloaded in some temp. folder, Silk is waiting for installation clause is there for install window)
3. Now, as soon as this install window comes up Agent hangs(Waitforwindow clause gets stuck in Status window)
Now, I kill my application install window, stop silk. Reexecute steps 1,2,3 they all go fine.
Question:
Any ideas, what causes Agent to hang during first time execution?


Answer1:
This problem is coming because Silk agent is unable to recognise that window first time.
Try with window.exists(). If window exists then only perform remaining operations.

Answer2:
I dont think this solution(Window.Exists ()) will work out for you.
This is a bug in Silk 6.5 and resolved in Silk 7.1.0.3, If possible upgrade your Silk.

(Continued on next question...)

Other Interview Questions