Skip to main content



      Home
Home » Archived » Jubula » Problem to run command file
Problem to run command file [message #1018285] Wed, 13 March 2013 11:02 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Thu Jul 17 09:14:00 EDT 2025

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

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

Back to the top