Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 06:39 Go to next message
Denis Aristov is currently offline Denis AristovFriend
Messages: 15
Registered: March 2013
Location: Moscow
Junior Member
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] Tue, 09 April 2013 02:46 Go to previous messageGo to next message
posia han is currently offline posia hanFriend
Messages: 43
Registered: December 2012
Member

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 06:27 Go to previous message
Denis Aristov is currently offline Denis AristovFriend
Messages: 15
Registered: March 2013
Location: Moscow
Junior Member
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: Sat Dec 21 15:45:54 GMT 2024

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

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

Back to the top