Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Runner fails to execute the windows command(Fails to execute command )
icon5.gif  Runner fails to execute the windows command [message #1713287] Tue, 03 November 2015 06:28 Go to next message
Chetan Muthappa is currently offline Chetan MuthappaFriend
Messages: 1
Registered: July 2015
Junior Member
Hi,

Here is a scenario.

In between execution the test has to extract a file via windows command.

This usecase seems to work just fine with the RCPTT IDE.

But this usecase fails when the tests are executed in a runner cause it fails to execute the parallel windows command.

Is there a workaround for this?

Best Regards,
Chetan
Re: Runner fails to execute the windows command [message #1713649 is a reply to message #1713287] Thu, 05 November 2015 17:31 Go to previous message
Angelo Luciani is currently offline Angelo LucianiFriend
Messages: 129
Registered: September 2015
Location: Milan
Senior Member

Hi Chetan,
probably you can use exec-process
Example:
exec-process -command "\"C:\\Prog\\Java\\jdk1.7.0_75\\bin\\java\"" -args "-jar" -args "\"C:\\Users\\angelo.luciani\\workspace\\testhello\\bin\\testhello.jar\""| invoke getStdout | log
//

You can create a java program and after that you can run the jar using exec-process.
To create the jar I have created a batch file:
https://github.com/angeloluciani/msdos
You can execute the jar using exec-process.
Probably is more robust because with a java program you can also handle threads.
Let us know if it works.






"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova
Previous Topic:[SOLVED] How to skip/ignore a rcp tt test case in Jenkins ?
Next Topic:HTML Report blank screenshots on VM
Goto Forum:
  


Current Time: Fri Apr 26 16:13:23 GMT 2024

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

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

Back to the top