I'm trying to log in to the database server with applications run there. I can login without any problems, however when I try to log the working directory on the server it shows me the default directory after logging in and not the one i changed.
Whole testcase looks like this:
*** Settings ***
Library SSHLibrary
*** Variables ***
${IP} IP
${user} user
${password} password
*** Test Cases ***
CMD
Open connection ${IP}
login ${user} ${password}
execute command cd gtms/bin
${pwd} execute commanrd pwd
log ${pwd}
And I am expecting to get info about the directory I am in when I use pwd, but it is not working. I get this in LOG:
KEYWORD BuiltIn . Log ${pwd}
Documentation:
Logs the given message with the given level.
Start / End / Elapsed: 20170807 16:07:14.266 / 20170807 16:07:14.267 /
00:00:00.001
16:07:14.267 INFO /home/ollie
Can anyone tell me what I'm doing wrong?
Thanks in advance.