Java applications and Visual Test -- Is there a connection?
Is it possible to identify Java objects (in an Windows Java application, not an applet) to act upon them and test them using Visual Test 6.5?
For example, it is well known that the available GUI interface properties available to control (or test) a Windows component are the Handle, ID, and Ordinal, Class name, etc. The Windows Information application available in Rational Visual Test 6.5 allows the user to discover the values for a Windows component (or control, or object, whichever you prefer). In addition, these values can be found for each component in a window (control) including; textboxes, buttons, tabs, menus, etc. Each has a unique Handle, ID, or Ordinal within the collection of objects.
Now, with that said, when testing a Java application the Handle, ID, and Ordinal do not change. That is the Handle, ID, and Ordinal values are the same for the Java Application and each object (or whatever java calls them) within the parent object including; buttons, textboxes, tabs, menus, etc. Again I discovered this using the Windows Information application. Microsoft Windows seems to see the whole collection, including sub-collection, as one object.
Is there a way (i.e. handle or some other method) to get an object’s identification and treat them as collection of individual objects within a parent group using Visual Test? Currently, I am resorting to using the “Click” command and pass the screen coordinate parameter. Maybe there is a better way. Has anyone else tried this and found a solution, even a pseudo-solution? If so, I would like to hear about what you are doing.
Re: Java applications and Visual Test -- Is there a connection?
VT can recognize only Java AWT package. I think, some people (email@example.com) in eskimo group has done some scripts to recognize other Java packages.