Desktop Java SWING implementation problem

Wednesday, September 16, 2020
Avatar

Hi, 

I'm trying to create a test in a simple java desktop application, but it seems the clicks are not registered. Rapise just finds the main frame (SunAwtFrame) and clicks by coordinates, but it doesn't see the Buttons and TextBoxes.

I installed the Java Bridge and tried it on the provided AUTJAVA app.

It captures AWT (upper) elements okay, as seen on the screenshot in green,

but for all SWING (lower) elements marked with red, it records just clicks on the frame with coordinates on the same frame element.

 

JAVA

 

I also tried testing on few different applications like JMeter, SoapUI, OWASP ZAP that I know are made with Java, but on all I get just the canvas/Frame element and not the inner elements...

I tried implementing Java SWT too (Eclipse IDE), that works great.

2 Replies
Wednesday, September 16, 2020
Avatar
re: Hristovski Wednesday, September 16, 2020

If the image is not displayed, this is the link:

https://imgur.com/pVNgf5t

 

& I also forgot to mention - I tried running the applications with different versions of Java: jre1.8.0_261(x32 and x64), jdk1.8.0_261 and jdk-15 (x64)

Regards

Wednesday, September 16, 2020
Avatar
re: Hristovski Wednesday, September 16, 2020

Please could you log a help desk ticket, it is most likely a configuration issue with the Java Bridge.

Here's some other things you can try: https://www.inflectra.com/Support/KnowledgeBase/KB223.aspx

Regards

David

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Wednesday, September 16, 2020
  • Last Reply: Monday, April 18, 2022
  • Replies: 2
  • Views: 11500