Comment #15 on issue 74 by piliszekm: New keywords for checking if a file or a directory (not) exists on the remote host
http://code.google.com/p/robotframework-sshlibrary/issues/detail?id=74

Issues with encoding - my favourite ones.

Test:
*** Settings ***
Library           SSHLibrary    WITH NAME    ssh

*** Test Cases ***
test
    ${IP}    Set Variable    ....
    ${USER}    Set Variable    ....
    ${PASS}    Set Variable    ...
    ${PROMPT}    Set Variable    ....
    ${ENCODING}    Set Variable    iso-8859-2
Open Connection ${IP} prompt=${PROMPT} encoding=${ENCODING} timeout=20
    Login    ${USER}    ${PASS}
    Write    export PS1="testprompt$"
    Set Client Configuration    prompt=testprompt$    encoding=${ENCODING}
    Read Until Prompt
    Sleep    1s
    Read
    Write    ls /tmp/test*
    Read Until Prompt
    File Should Exist    /tmp/test.txt
    File Should Exist    /tmp/testä.txt
    File Should Exist    /tmp/blablabla.txt


Console output:
...
20131120 12:05:45.428 :  INFO : 1: export PS1="testprompt$
20131120 12:05:46.430 :  INFO : Slept 1 second
20131120 12:05:46.432 :  INFO :
"
testprompt$
20131120 12:05:46.560 :  INFO : ls /tmp/test*
20131120 12:05:46.562 :  INFO :
/tmp/test.txt    /tmp/testä.txt
testprompt$
20131120 12:05:46.929 : INFO : [chan 2] Opened sftp connection (server version 3)
20131120 12:05:47.304 :  FAIL : File '/tmp/testä.txt' does not exist.


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to