Integrate Jubula with Jenkins [message #892540] |
Thu, 28 June 2012 14:54 |
|
Hi,
Now I need to integrate Jubula with Jenkins and execute a test for an Eclipse plugin. I have followed the step as the example "Automating Eclipse Jubula Tests with Jenkins" in the Internet.
I created a new job and added three script shells:
(1) rm -rf $WORKSPACE/testresults/*; mkdir -p $WORKSPACE/testdata; mkdir -p $WORKSPACE/testresults
(2) D:/jubula/server/autagent -p 60000 -v
(3) D:/jubula/jubula/testexec -project My Third Project -testsuite test2 -server localhost -port 60000 -autconfig Eclipse3 datadir $WORKSPACE/testdata -data /home/jenkins/.jubula/workspace -resultdir $WORKSPACE/testresults -version 1.0 -language en_US -dbscheme "Default Embedded (H2)" -dbuser sa -dbpw ""
But I lance the job and there is a mistake:
Building in workspace D:\Utilisateurs\A534346\.jenkins\jobs\Plugin Test\workspace
[workspace] $ sh -xe C:\Windows\TEMP\hudson9006745285536089314.sh
The system cannot find the file specified
FATAL: L'exécution de la commande a échoué.
java.io.IOException: Cannot run program "sh" (in directory "D:\Utilisateurs\A534346\.jenkins\jobs\Plugin Test\workspace"): CreateProcess error=2, Le fichier spécifié est introuvable
I have installed Jubula in the disk D and my system is Windows 7. For "/home/jenkins/.jubula/workspace", I don't know how to change the configuration. And for the mistake of the test, is it because I just missed some steps? Thank you for your response.
Jubula, SWTBot
[Updated on: Thu, 28 June 2012 14:55] Report message to a moderator
|
|
|
Re: Integrate Jubula with Jenkins [message #892625 is a reply to message #892540] |
Thu, 28 June 2012 19:12 |
|
I think something is mixed up in your Jenkins setup. The job tries to execute a Unix shell script (using sh -xe) on a MS Windows system. This is unlikely to work.
Even if it would work your path names for the autagent and testexec contain / characters which will probably yield syntax error in cmd files.
- Achim
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03471 seconds