Comment 2 for bug 1885858

Revision history for this message
Glenn Tanner (glenntanner3) wrote : Re: Unable to connect VNC from sikuli after 39th iterations

Hi Raiman,
    I hope this helps, this is the basic flow. The vncStart never comes out if the unit exists but connect fails. Now I have seen the same type of behavior in KRDC (linux RDP/VNC client)

for n in rang(200):
    wait("reboot.png", 6).click()
    sleep(2)
    # function in our code, hence 2 sleeps
    sleep(5)
    vncStop()
    sleep(70) # reboot with 20 sec grace; sometimes reboot takes longer
    vncStart(ip=unit['ip'], port=5900, password=unit['passwd'], connectionTimeout=10, timeout=120000)
    sleep(2)