Hello,
We're looking into using JPlanner (http://mindfusion.eu/jplanner.html) as a planner module inside our Java Swing client. Developers are happy, it brings us a lot of what we want, saves a lot of implementation. But the Test Specialist, me, I'm less enthousiastic.
The JPlanner component on high level is Java Swing, but on lower level, most of the items it displays are not Swing components, but UI painted using Graphics2D. Something Ranorex does not recognise.
Does anybody know of a way to deal with this (other than: look for another planner module or build it yourself)? I really want to be able to check for appointments within JPlanner. I can't think of a way to do this (not without reverting to image comparison), any thoughts appreciated.
As an example, see the two images below. Only the scrollbar + up/down button and the left/right button to switch to the previous/next day are recognised by Ranorex. The appointments that you can see in the view are not visible to Ranorex.
Ranorex and JPlanner (Graphics2D)
Ranorex and JPlanner (Graphics2D)
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Ranorex and JPlanner (Graphics2D)
Hi jdk,
Sincerely,
Robert
Well, I'm afraid that Ranorex (or any other tool/software) can't recognize painted parts of applications as accessible objects. Coordinate/image based object recognition would be the only way to automate those "objects".UI painted using Graphics2D
Sincerely,
Robert
Re: Ranorex and JPlanner (Graphics2D)
Hello Robert,Support Team wrote:Hi jdk,
Well, I'm afraid that Ranorex (or any other tool/software) can't recognize painted parts of applications as accessible objects. Coordinate/image based object recognition would be the only way to automate those "objects".UI painted using Graphics2D
Well, that was in fact the answer I expected. Moving to image based tests will make the tests more fragile; the strength of Ranorex is in object recognition. Thanks for the confirmation. We might need to reconsider our choice of using JPlanner.
Re: Ranorex and JPlanner (Graphics2D)
I know nothing of Java/Swing but I've had a similar issue with some ancient C++ grid controls I'm working with. Fortunately GDI Capture within Ranorex lets me detect RawText elements, and this has allowed me to find, read and edit cells on my grid.