Forum Discussion

Ashcutus's avatar
Ashcutus
Occasional Contributor
8 years ago

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 in...
  • Ashcutus's avatar
    Ashcutus
    8 years ago

    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