Ask a Question

We are considering upgrading to JDK 11 for our desktop application.

BTscott
Contributor

We are considering upgrading to JDK 11 for our desktop application.

Greetings,

 

I am looking to see if there is a way to successfully test our desktop application with TestComplete if we upgrade to JDK 11. Right now, I am unable to specify the JDK jvm as a replacement for the JRE.

 

Any input would be much appreciated.

 

Thank you,


Scott

6 REPLIES 6
tristaanogre
Community Hero

Re: We are considering upgrading to JDK 11 for our desktop application.

Right now, TestComplete only builds a JavaBridge based upon the JRE.  The JDK includes the JRE so all you need to do is indicate the directory where the JVM files are.

 

Note that the JRE option in TestComplete is ONLY necessary if you want to utilize Java classes as part of your test cases (such as I do with the PDFBox application).  If your application is built in Java, there's no need to specify the JRE.

HOWEVER... that said, currently TestComplete only supports testing Desktop applications built with certain Java technologies (https://support.smartbear.com/testcomplete/docs/app-testing/desktop/java/about.html#supported-java-t... If your application is built with a different technology, it doesn't necessarily mean you can't use TestComplete, just that some of the Open application feature set is not supported.

If you need JRE/JDK 11 support, I'd suggest you contact your Customer Success Manager at SmartBear and inquire as to when support will be made available in TestComplete.


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
BTscott
Contributor

Re: We are considering upgrading to JDK 11 for our desktop application.

Thank you for your response.

 

I have updated the Hava Bridge to point to our open JDK 11.0.1 jvm.dll file, but TC still attempts to use my JRE 8 VM. Is there another location for me to specify the JDK directory? 

 

tristaanogre
Community Hero

Re: We are considering upgrading to JDK 11 for our desktop application.

Keep in mind, that setting is stored per machine per user.  So, if you are running something using a different user or on a different machine, you need to make that setting change there as well.

That is the ONLY place to indicate the JVM to use by TestComplete for JavaBridge work.


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
BTscott
Contributor

Re: We are considering upgrading to JDK 11 for our desktop application.

Even though I have set up the JavaBridge to point to the jdk 11's jvm, the tested application still only shows jre1.8.0 as the only VM to choose.

 

 

tristaanogre
Community Hero

Re: We are considering upgrading to JDK 11 for our desktop application.

OF course.. because you're selecting the JavaW.exe from the 1.8 folder.  You need to change the actual tested application to point to the new JavaW.exe for the JDK 11.   JavaBridge has nothing to do with that..

REad up on JavaBridge (https://support.smartbear.com/testcomplete/docs/testing-with/advanced/using-external-functions/calli... The JavaBridge is for calling Java classes within your script code.


Again, I reference to something I mentioned above.  TestComplete 12.60 only supports Java applications up through version 10.  So, the possible problem you're dealing with is that it's not recognizing the JVM for the JDK 11.  


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
BTscott
Contributor

Re: We are considering upgrading to JDK 11 for our desktop application.

Thank you for your responses. I created a support ticket regarding this issue and I've been informed that there currently is no support for JDK 11 at this time, but they will be looking into it in January.

 

RE: Case Number: 00325973

"Java 11 is not supported in TestComplete 12.60 - but you can test your Java application with Java 10:

https://support.smartbear.com/testcomplete/docs/app-testing/desktop/java/about.html#supported-java-t...

 

We're going to add the support for Java 11 in one of the future versions but, currently, we don't have any ETA for this."

 

Thank you again.

 

-Scott

cancel
Showing results for 
Search instead for 
Did you mean: