Java Swing Documentation

Ask general questions here.
Dmitrii Cetvericov
Posts: 3
Joined: Tue Oct 01, 2019 2:38 pm

Java Swing Documentation

Post by Dmitrii Cetvericov » Tue Oct 01, 2019 2:43 pm

Hello,

I want to use Ranorex for the testing of Java Swing applications. However, I can't find any documentation regarding Java Swing. Could you please give me some information where I can find a tutorial for getting started with test automation for Swing applications?

Thank you!

User avatar
Support Team
Site Admin
Site Admin
Posts: 12091
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Java Swing Documentation

Post by Support Team » Tue Oct 01, 2019 4:40 pm

Hello Dmitrii,

We do not have a tutorial on Java Swing specifically but we do have information regarding Java testing which you can find in the link below:

https://www.ranorex.com/java-test-automation/

You can also visit our user guide which will help you get started creating automated tests!

https://www.ranorex.com/help/latest/

Regards,
Sean
.
Image

Dmitrii Cetvericov
Posts: 3
Joined: Tue Oct 01, 2019 2:38 pm

Re: Java Swing Documentation

Post by Dmitrii Cetvericov » Wed Oct 02, 2019 7:01 am

Hello Sean,

thank you! However, the first link (https://www.ranorex.com/java-test-automation/) is not very helpful for me, as it mainly lists the supported Java technologies.

Do you have anything more "technical" for me regarding Ranorex and Java? For example, how to use Ranorex to test a (runnable) JAR file? Something like a step-by-step tutorial for Ranorex for Java applications? :-)

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6037
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Java Swing Documentation

Post by odklizec » Wed Oct 02, 2019 7:20 am

Hi,

I'm afraid, there is no any step-by-step guide, how to test Java-based apps. Generally speaking, it should be possible to run and test Java apps as any other application, hence there is not required an extra Java-specific documentation. You should be able to execute jar file, with Run Application command, either by directly calling jar file or via Java.exe and jar file as a parameter.

Are you experiencing any problem, regarding testing your Java-based app with Ranorex?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Dmitrii Cetvericov
Posts: 3
Joined: Tue Oct 01, 2019 2:38 pm

Re: Java Swing Documentation

Post by Dmitrii Cetvericov » Wed Oct 02, 2019 9:23 am

Dear Pavel,

thank you for your tips! I'll try it that way.

No, so far I'm not experiencing any problems. I was just wondering whether there are any best-practices regarding the testing of Java applications with Ranorex before starting to develop tests and realizing that I've done everything wrong/inefficiently all the time :-)