cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
Community Leader

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

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

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

View solution in original post

6 REPLIES 6
Highlighted
Community Hero

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

Highlighted
Community Leader

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

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

Highlighted
Community Hero

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

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.  

 

 

Highlighted
Community Leader

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

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. 

 

Highlighted
Community Hero

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

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

View solution in original post

Highlighted
Community Manager

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

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 Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Top Kudoed Authors