Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic UI testing of JPlanner (Read 4052 times)
jfk
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Feb 15th, 2017
UI testing of JPlanner
Feb 15th, 2017 at 11:55am
Print Post  
Hello, we are evaluating JPlanner for possible use in our product. Our developers are mostly happy with what it offers, but as a test specialist, I have some requirements the devs don't have: automated testing of the User Interface.

We have a commercial test automation tool, Ranorex, for UI testing of our product (a Java Swing client). Ranorex works based on recognition of java UI objects (like buttons, tables, cells, text, etc).

However, for some reason it does not recognise very much objects within JPlanner. See the two attached screenshots: only the Jplanner as a whole (top level item), the scrollbar and up/down button and the left/right (to change date) button are recognised components.

Anything else is not recognised. Not an empty time frame, not a reserved time frame. Obviously, I do need access to these items if I want to do serious UI testing.

Do you know of this limitation and is there anything that can be done about it? It is strange, Ranorex works very good with all Swing we have in our products, and I'm assuming JPlanner is also Swing.

It will be hard to move forward with JPlanner if we cannot perform UI tests on this part, so any help or advice is appreciated!
  

JPlanner_view.png ( 11 KB | 156 Downloads )
JPlanner_view.png
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: UI testing of JPlanner
Reply #1 - Feb 15th, 2017 at 1:10pm
Print Post  
Hi,

JPlanner does not create Swing components for each appointment or cell in the timetable, but draws them using lower-level Graphics2D API.

I could not find any technical documentation on the Ranorex website, and from http://www.ranorex.com/automate-testing-of-desktop-web-mobile-software.html it sounds they add special provisions for 3rd party libraries, but I guess ours is not popular enough Smiley

If you know of some Java interface you could implement to expose custom objects to the Ranorex runtime, it should still be easy enough to integrate the calendar there using our public API. E.g. you can find items at mouse location by calling getItemAt method, and you could listen to calendar events such as itemModified to record some kind of move-appointment action.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
jfk
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Feb 15th, 2017
Re: UI testing of JPlanner
Reply #2 - Feb 15th, 2017 at 2:19pm
Print Post  
Hello,

thanks for your quick response! Graphics2D API instead of Swing, at least that explains why Ranorex has trouble finding items.

So, an option is to ask Ranorex to provide provision for JPlanner, we just have to convince them that JPlanner is very popular Smiley .

Slavcho wrote on Feb 15th, 2017 at 1:10pm:
If you know of some Java interface you could implement to expose custom objects to the Ranorex runtime, it should still be easy enough to integrate the calendar there using our public API. E.g. you can find items at mouse location by calling getItemAt method, and you could listen to calendar events such as itemModified to record some kind of move-appointment action.


I'll discuss this part with the developers on my team, see what we can do with that.

Again, thanks for the quick reply.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint