Run a DOS command from Jubula [message #1444169] |
Mon, 13 October 2014 18:45 |
|
Hello,
I'm trying to run a single DOS command from JUBULA 7.1.
The command line is the following : del /Q "C:\toto\ta ta\titi.docx" .
The folder toto exists, and the file too. If I open a DOS command line,
this command succeed.
In Jubula, I try to reproduce it with the ub_app_executeExternalCommand
component.
There is four parameters for this components. In my case, the values are :
LOCAL : true
EXPECTED_EXIT_CODE : 0
TIME-OUT : 1000
COMMAND : Well, it is the problem.
For the last parameter, I have tried a lot of different combinations.
I have ended with this two ones:
del /Q '"C:\toto\ta ta\titi.docx"'
'del /Q "C:\toto\ta ta\titi.docx"'
Each time the result is the same : Error on component with a 1 Exit
Code. If I remove the space between in ta ta, the two commands work.
Anyone have a clue about the correct syntax I should use or what is my
mistake?
Thx for help!
--
*Tony HEDOUX*
/Test Manager
/
ALL4TEC
|
|
|
|
|
Re: Run a DOS command from Jubula [message #1467929 is a reply to message #1451161] |
Mon, 10 November 2014 12:27 |
|
Le 23/10/2014 14:22, Plinio Froener a écrit :
> Hi Tony,
>
> Try
>
> command String: "cd 'C:\toto\ta ta' & del titi.docx"
> let us know if it works!
> Regards,
> Plínio
>
Hi Plinio,
With this syntax, it works.
Thanks for the hint!
--
*Tony HEDOUX*
/Test Manager
/
ALL4TEC
|
|
|
Powered by
FUDForum. Page generated in 0.02495 seconds