trying to use timeout argument in 'Read Until' keyword from SSH Library but not working.

1,943 views
Skip to first unread message

dnl 31337

unread,
Aug 28, 2015, 3:34:11 PM8/28/15
to robotframework-users
Hi all,

i'm trying to use 'timeout' argument in 'Read Until' keyword from SSH Library but not working..

This is the code:

Write                          h=`date +"%Y/%m/%d"`;while true; do [ "$(ls -A /var/local/logparser/backup/parsed/$h/)" ] && break || continue; done; echo "FIM";
${output}=                   Read Until                     FIM    timeout=120 seconds
Should Contain            ${output}                       FIM

and still getting defauld error:

No match found for 'FIM' in 3 seconds

I try to pass only '120 seconds'  but no success.

On the documentation has none exemple of this argument, but is mentioned in this paragraph:

Default timeout

Argument timeout is used by Read Until variants. The default value is 3 seconds.

Value must be in Robot Framework's time format, e.g. 3, 4.5s, 1 minute and 2 min 3 s are all accepted. See section Time Format in the Robot Framework User Guide for details.






Dinesh Kumar

unread,
Feb 8, 2017, 9:24:26 AM2/8/17
to robotframework-users
Set Default Configuration timeout=20 seconds 

Use the above command before the line where you are getting problem. This will override default time out from 3 to what ever you mentioned

hongbo sun

unread,
Nov 1, 2018, 3:46:08 AM11/1/18
to robotframework-users
Per my case, this works:

set client configuration  timeout=20 seconds

put it before you "read until" command

在 2017年2月8日星期三 UTC+8下午10:24:26,Dinesh Kumar写道:
Reply all
Reply to author
Forward
0 new messages