Skip to main content



      Home
Home » Archived » Jubula » How to specify file paths in external commands?
How to specify file paths in external commands? [message #1030454] Sun, 31 March 2013 02:39 Go to next message
Eclipse UserFriend
I use Jubula on Windows 7.

I created a test step with the following parameter values:

Component type: 'Application'
Action type: 'Execute External Command'
Command [String]: 'echo test > "C:\temp\ab\test.txt"'

The file test.txt was created in the folder C:\temp\ab

Then I renamed this folder to "C:\temp\a b" and changed the command value accordingly:
Command [String]: 'echo test > "C:\temp\a b\test.txt"'

The file wasn't created.
Don't I escape anything right? The command is surrounded with single quotas so that all special characters shouldn't cause any problems...
Re: How to specify file paths in external commands? [message #1036963 is a reply to message #1030454] Mon, 08 April 2013 22:46 Go to previous messageGo to next message
Eclipse UserFriend

Hi Denis,
When I test the external command,I create an .bat file, and the parameter Command is set to the absolute path of the .bat file.I wish this will be helpful for you.
Posia
Re: How to specify file paths in external commands? [message #1048943 is a reply to message #1036963] Thu, 25 April 2013 02:27 Go to previous message
Eclipse UserFriend
After I understood that I did nothing wrong I created a .bat file too. Just don't use paths which contain spaces.
Previous Topic:Test don't record an the test product
Next Topic:Databasedriver missing/not found
Goto Forum:
  


Current Time: Tue Jul 01 05:33:55 EDT 2025

Powered by FUDForum. Page generated in 0.10410 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top