Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1001 by jaana.j.kulmala: OperatingSystem library "run" and "get
environment variable" not working in Windows 7
http://code.google.com/p/robotframework/issues/detail?id=1001
Some Operating System keywords, like "run" and "get environment variable"
are not working in Windows 7.
It looks like it's expecting to be in Linux/UX. Here is an example from our
log:
KEYWORD: ${PCIP} = OperatingSystem.Run ping %computername% -4 -n 1
KEYWORD: BuiltIn.Log ${PCIP}
Documentation: Logs the given message with the given level.
Start / End / Elapsed: 20111117 14:56:26.826 / 20111117 14:56:26.828 /
00:00:00.002
14:56:26.828 INFO sh: ping: No such file or directory
I was executing this on windows, so the expected result was that the ping
result would be returned so that I could parse my computer IP from it.
Get environment variable is not working either, but I have Cygwin installed
and it's hiding the env variable problem in this log clippet. I tried
Cygwin as workaround after we noticed that robot tries to call sh to
execute commands.
We are using:
Robot Framework 2.1.3 (Jython 2.2.1 on java1.6.0_24)
But I was able to repeat this also with:
robotframework-2.6.3.jar