PDFBox setup with TestExecute
Hi guys - new here, so go easy on me!
I'm running TestComplete 12 (12.10.602.7 to be exact) and I have some tests where I have to validate content in downloaded PDF's from our site.
I have integrated PDFBox into TestComplete successfully and the tests are running happily on my machine.
The problem comes when I try to get these tests running on our Jenkins slaves which are using TestExecute to run the tests.
In my project properties I have specified where my pdfbox-app jar file is, however I can't seem to see anywhere in TestExecute where I can add this - only have the generic Java Bridge JVM location so of course my tests are failing because on test run I'm referencing something that isn't available on TestExecute. Loading the project directly doesn't seem to help either as I only have the run option, no additional project properties section where I can specify this (unless I've missed it).
I have had a look around the support pages as a lurker, and on google but I can only see the guide to get PDFBox running in TestComplete and nothing to do with TestExecute.
Is this possible, or will I have to just continue running these locally (not ideal).
Cheers,
Ben
Thanks for the reply Robert.
I have figured out how to get around this, and I changed the path to the pdfbox-app jar file to just rest on the main drive and on each jenkins slave I have the same file in the same location.
This seems to do the trick now, and my tests are now running happily on the jenkins slaves.
Just a recap in case someone comes here from Google...!
1. On each TestExecute box, set the java path in the options within TestExecute (Options > Java Bridge)
2. Copy the pdfbox-app.jar file into a location on the slave (I put mine simply in C:\pdfbox-app.jar).
3. In TestComplete I changed the class path to reference the .jar file in it's new location in Tools > Current Project Properties > Java Bridge
4. Saved and committed the changed project properties so that the slaves will pick up the recent changes.
Cheers,
Ben