I have already had Jubula set up and run on Jenkins by installing a standalone version of Jubula on the Jenkins agent(slave). I am wondering if there is a way to automate the process using maven so that I don't need to install anything (in this case, it's the standalone Jubula application) to run the test. Looks like there is a maven-Jubula-plugin? I am wondering if there's anyone has ever got it work and would like to share the knowledge?
Alejo Abdala Messages: 22 Registered: September 2012 Location: Argentina
Hi Jiajian, I didn't find any facilities for running Jubula from Maven. What we did here at my company was to develop a maven plugin (https://github.com/mulesoft/jubula-maven-plugin) for this task. The code is open but the project is not at a mature enough state for anyone outside the company to use it happily. It is not well documented and there are some things that you need to do that are tricky.
The main tricky thing is creating a bootstrapped jubula artifact. As you say, the main need would be to be able to run some Jubula tests without any prerequisite in the machine it is running. We achieve this by deploying an artifact that has the files that a jubula installation has and retrieving it (through a maven-dependency-plugin execution) at the moment of running the test. I say this is tricky because this artifact has to meet certain requirements* (for the code of our plugin to work correctly).
*(particularly the structure, for example we deleted the plugins folder in the jubula folder, so that the package weights almost half of its original size, since those plugins there were almost the same (included in) as in /server/plugins.)
If you are interested in using the plugin let me know and I can give you a hand / provide some support. We have it in place and working (except for the test conversion to junit/surefire format, it is not working 100%)
PS: surely if we collaborate with the Jubula team we can create a much smarter way of obtaining just the necessary stuff to run the tests