Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Problem to run command file
Problem to run command file [message #1018285] Wed, 13 March 2013 15:02 Go to next message
Richard Skoog is currently offline Richard SkoogFriend
Messages: 62
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 17:05 Go to previous messageGo to next message
Achim Loerke is currently offline Achim LoerkeFriend
Messages: 376
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 08:56 Go to previous messageGo to next message
Richard Skoog is currently offline Richard SkoogFriend
Messages: 62
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 10:11 Go to previous message
Miroslav Jankovic is currently offline Miroslav JankovicFriend
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: Tue Apr 23 06:02:02 GMT 2024

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

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

Back to the top