Ask a Question

How to add java classes to read pdf for test execute?

SOLVED
Reshail
Contributor

How to add java classes to read pdf for test execute?

Hi,

I was able to add java classes and read the pdf files through test complete but now I want to run my scripts through jenkins using test execute. My question is how do we add tha same java classes for test execute? or is there a way to do it through code?

6 REPLIES 6

Sadly, no. Since without adding the java classes it fails. 

Marsha_R
Champion Level 2

Sadly, if you don't give us details about  what you've already tried and what happened as a result, you get to sit through us guessing what the problem might be.  It saves time all around if you explain everything first.  

 

 

If i only add the jvm path for test execute and not add the classes like I did for testcomplete I am unable to use the functions like 

JavaClasses.org_apache_pdfbox_pdmodel.PDDocument.load_3(fileName);

I also tried this solution Sys.Process("MyJavaApp").JavaRuntime.JavaClasses.

package.class.subclass.method(parametersBut was unable to use the functions like before. 

 

tristaanogre
Esteemed Contributor

The JVM is part of the environment configuration on TestExecute.  However, the link to the classes are stored in the project MDS file, assuming that the JAR files are in the same directory pathing on the TestExecute workstation.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
TanyaYatskovska
SmartBear Alumni (Retired)

Hi @Reshail,

 

Do the suggestion given here help you resolve the issue? Otherwise, please let us know what is happening when you start the project in TestExecute. If you get some errors, please post their text here.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



cancel
Showing results for 
Search instead for 
Did you mean: