This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Silk4NET Takes long time to move to the next statement for UI click events

Hi All,

We are using SilkTest 21.0.  we are facing issues like Click(), Select() and Close() event takes too much of time ( 10 to 15 minutes ) to go to next statement. The actions performed first, but it is taking too much of time to go to next line. but some time 

below exceptions happens sometime and after this issue automation not working.

Error Msg : Error executing 'Click'. Communication timeout between agent and application.

Exception: Error executing 'Select'. Communication timeout between agent and application.

Exception: Could not find object '/FormsWindow[@caption='Alarm Notification']'. Source: SilkTest.Ntf Target: SilkTest.Ntf.Message SendMessage(SilkTest.Ntf.Message, Int32)

We are not sure why it waits for this long in line number 5 for Select() and also there is no Sleep statement. It is not going to next line

_desktop.FormsWindow("SLATE (ENGINEER)").FormsWindow("formsW_PgmDUTBlock").SetActive()
Threading.Thread.Sleep(500)
Dim unloadButtonLoc = _desktop.FormsWindow("SLATE (ENGINEER)").PushToolItem("pushTI_PDB_unloadAllToolStripButton")

If (tstProgramUnload = True And unloadButtonLoc.GetProperty("Enabled") = True) Then
_desktop.FormsWindow("SLATE (ENGINEER)").PushToolItem("pushTI_PDB_unloadAllToolStripButton").Select()
End If

Dim confirmSavePrg As Boolean = _desktop.Exists("/FormsWindow[@caption='Confirmation']")
If confirmSavePrg Then
With _desktop.FormsWindow("Confirmation")
.PushButton("@automationId='m_btnNo'").Select()
Threading.Thread.Sleep(200)
End With
End If

Can someone help me to solve this exception?


Note:

SilkTestServer is another system, we connecting the server by using cisco vpn for license validation. 

we have not faced this kind of issues, when the silktest server system and automation tester system connected in same network without using cisco.

These exception occurs when server and tester system in different network. I'm not sure whether this cisco connection is related to the above exception. 

  • Verified Answer

    +1  

    Hi ,

    The behavior sounds like a sync problem.

    Can you try reducing the Synchronization Timeout to 100 and verify if this helps?

    • Silk4NET > Settings > Edit Options
    • Select the Synchronization tab
    • Set the Synchronization Timeout to 100
    • Replay the test
    • Do you observe the same delays?

    regards
    Robert

  • 0 in reply to   

    Hi  .

    After changing the Synchronization Timeout scripts were executed without click event delays.

    Thanks for the prompt reply!!!

    Regards,

    Ambika