narendrabtechcse / robotframework-javatools

Automatically exported from code.google.com/p/robotframework-javatools
1 stars 0 forks source link

Spaces in `Start Application` keyword's command are not working in RemoteApplications library #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In case the program part of the command contains spaces, the process is not
started i.e. "C:\Program Files\Java\jre1.6.0\bin\java.exe" -jar
"my application.jar" or "C:\Program Files\MyApplication\application.exe"
does not work.

Easiest way to avoid the problem is to avoid spaces in the command. Other
option is to add the directory containing the command to PATH environment
variable. Environment variable can be set also in Robot Framework's test
data to avoid unneccessary dependencies in the test execution environment.
In case spaces cannot be avoided, startup script can be used to hide the
command with spaces. On Windows this issue can be avoided also by using DOS
format file names e.g. C:\PROGRA~1\Java\jre1.6.0\bin\java.exe -jar "my
application.jar".

As there are multiple workarounds and fixing the problem with Jython 2.2 is
not easy, this issue won't be fixed before Robot 
Framework is supported only with Jython 2.5 and subprocess module can be
used for the implementation.

Original issue reported on code.google.com by jpran...@gmail.com on 12 Feb 2010 at 8:08

GoogleCodeExporter commented 9 years ago

Original comment by jpran...@gmail.com on 12 Feb 2010 at 8:15

GoogleCodeExporter commented 9 years ago

Original comment by jpran...@gmail.com on 16 Feb 2010 at 11:38

GoogleCodeExporter commented 9 years ago
RemoteAppications has now its own project, and I made the corresponding issue 
there:

http://code.google.com/p/robotframework-remoteapplications/issues/detail?id=2

Closing this one.

Original comment by janne.t....@gmail.com on 30 Aug 2011 at 11:01