Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Run a DOS command from Jubula
Run a DOS command from Jubula [message #1444169] Mon, 13 October 2014 18:45 Go to next message
Tony Hedoux is currently offline Tony HedouxFriend
Messages: 16
Registered: March 2014
Junior Member
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 #1444793 is a reply to message #1444169] Tue, 14 October 2014 15:02 Go to previous messageGo to next message
David Hickernell is currently offline David HickernellFriend
Messages: 85
Registered: October 2012
Member
Would it be feasible to make a script or batch file containing your command, and use that as the command parameter for your test case instead? That is usually what I end up having to do to make external commands work the way I want them to.
Re: Run a DOS command from Jubula [message #1451161 is a reply to message #1444793] Thu, 23 October 2014 12:22 Go to previous messageGo to next message
Plinio Froener is currently offline Plinio FroenerFriend
Messages: 13
Registered: May 2014
Junior Member
Hi Tony,

Try

command String: "cd 'C:\toto\ta ta' & del titi.docx"

let us know if it works!
Regards,

Plínio
Re: Run a DOS command from Jubula [message #1467929 is a reply to message #1451161] Mon, 10 November 2014 12:27 Go to previous message
Tony Hedoux is currently offline Tony HedouxFriend
Messages: 16
Registered: March 2014
Junior Member
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
Previous Topic:Problem recording HTML test steps
Next Topic:How to customize the results filename?
Goto Forum:
  


Current Time: Fri Apr 19 15:59:38 GMT 2024

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

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

Back to the top