Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Problem to run command file
Problem to run command file [message #1018285] Wed, 13 March 2013 11:02 Go to next message
Richard Skoog is currently offline Richard Skoog
Messages: 46
Registered: October 2011
Member
Hi,

I would like to run a command file (.cmd) from within Jubula. The command file starts a shell and runs a shell script:
sh ./compileCBR2BvFiles.sh ../Testdata/includes/CBR2_4.0_core_include ../Testdata/includes/CBR2_BV_L2_3.0_include output

Double-clicking the command file from the explorer gives a successful result!

The problem is to start it from within Jubula. I have tried to use <ub_app_executeExternalCommand>, but without any luck. See attachment for parameter value details. When using this command I get exit code 127 and I haven't got a clue what this means.

Any ideas how to run the command file from within Jubula?

Regards Richard
Re: Problem to run command file [message #1018356 is a reply to message #1018285] Wed, 13 March 2013 13:05 Go to previous messageGo to next message
Achim Loerke is currently offline Achim Loerke
Messages: 325
Registered: July 2009
Location: Braunschweig, Germany
Senior Member

Hi,

I don't have the time to try this right now but my guess would be that you have to use DOS/Windows syntax to specify the script file, i.e. use either

d:\\compile\\compile.cmd

or

'd:\compile\compile.cmd'

(Note the single quotes)

- Achim
Re: Problem to run command file [message #1018649 is a reply to message #1018356] Thu, 14 March 2013 04:56 Go to previous messageGo to next message
Richard Skoog is currently offline Richard Skoog
Messages: 46
Registered: October 2011
Member
Hi,

I have now tried both alternatives and neither of them works. Both give exit code 127.
Any other ideas?

Regards Richard
Re: Problem to run command file [message #1018687 is a reply to message #1018649] Thu, 14 March 2013 06:11 Go to previous message
Miroslav Jankovic is currently offline Miroslav Jankovic
Messages: 7
Registered: June 2012
Junior Member
You can try to put whole command like parameter value in Jubula external command:

sh ./compileCBR2BvFiles.sh ../Testdata/includes/CBR2_4.0_core_include ../Testdata/includes/CBR2_BV_L2_3.0_include output


I'm executing some Powershell commands like this way, and it's work.
If you don't bother to use this huge code as command, then it can be solution.
Previous Topic:Restart Application slower
Next Topic:object mapping, test execution and order of teststeps and components
Goto Forum:
  


Current Time: Fri Jul 25 05:11:19 EDT 2014

Powered by FUDForum. Page generated in 0.01499 seconds