Jubula test from Jenkins fails [message #1755227] |
Wed, 01 March 2017 05:32  |
Eclipse User |
|
|
|
Hi all,
Following on from my last forum posting.. I now have a test suite (for my Eclipse Plugin) that runs fine in the ITE against Luna, Mars and Neon AUTs. I'm now trying to get that test suite to run correctly when I launch Jubula from a Jenkins build.
Here's what I have working so far.. (after a lot of Googling!)
- Jenkins
checks the project out from GitHub
builds the plugin using Maven
runs an ant script:
unpacks Eclipse, drops the rcp support plugin in
copies over my newly built plugin
starts the AUT agent if it's not already running
runs autrun with a batch file to start eclipse with parameters
runs testexec to perform the tests
So far everything works up to the testexec. Eclipse gets started, I can see it on my desktop, the test suite runs *but every single test fails*. Even the first test step, which doesn't touch Eclipse (it just stores the date and time as a variable for later) fails. I've attached the relevant console output from Jenkins, and the output report.
Can anyone tell me what I'm doing wrong here? Happy to share anything else that would help that I might have missed..
Cheers,
Kev.
|
|
|
|
Re: Jubula test from Jenkins fails [message #1755431 is a reply to message #1755295] |
Fri, 03 March 2017 05:43  |
Eclipse User |
|
|
|
Thanks, Marvin
The step I was missing was specifying the ID for AUT in the project under 'AUT IDs for AUTs started with the autrun option'
The reason I'm using autrun is that I want to be able to test on three different applications; Eclipse Luna, Eclipse Mars, and Eclipse Neon. I want Jenkins to create a brand new environment each time; unpack eclipse from a zip file, copy my plugin (and the Jubula plugin) over, modify config.ini then start it up. This way I can guarantee an untainted environment every time I run the test.
I'm not quite doing that right now, because even when I copy the Jubula plugin over and modify config.ini, Eclipse still needs to be start twice to get the Jubula plugin to work correctly (the documentation states this too, so it's not a surprise). But this is what I want to get to. I'll start up a new thread for this.
As I mentioned before, I'm very new to Jubula and Jenkins so apologies if these are all basic questions 
Cheers,
Kev.
|
|
|
Powered by
FUDForum. Page generated in 0.26498 seconds