| || |
Help with recording java applets - any ideas?
I'm trying to record a selection from a menu in WinRunner, without much success. Hopefully someone can offer me some insight here.
The menu item is similar to the one that can be found at http://javaboutique.internet.com/NavDeluxe/
Essentially I move the mouse cursor over a menu item, the sub menu underneath this item unrolls without a mouse click, giving me sub items with which to choose from. So far no actions are recorded in the script. If I select the sub item, this action is recorded correctly. BUT if I attempt to reply this action, I get an "Object is not displayed" as the submenu item is not shown initially.
I've tried web_event with mouse over and obj_mouse_move TSL commands without much success, although I'm new to this, so may not have gotten this correct.
I have the Java and the Web Test plugin.
Any ideas, hints, or suggestions to enable this to work will be greatly appreciated.
Re: Help with recording java applets - any ideas?
Since this is a Java applet, I don't think 'web_event' is the approach most likely to succeed. This function emulates an event taking place in a Web page, whereas you are trying to work with an applet.
First step is probably to make sure your Java add-in is loaded and working correctly - try interacting with objects you know to be standard Java and check they are seen as standard WR classes.
After this move onto selecting a cascading Java menu - code like this should be recorded:
menu_select_item("mymenu", "mymenuitem1", "mymenuitem2");
This assumes the menus are standard Java menus - I believe the ones you are working with are not.
Take a look your GUI Map entry for these menu-type objects - they should be seen as being WR class 'menu_item' if they are standard and recognised by WR.
If not, you should try to map the class your menus are recorded as, to the standard WR 'menu_item' class and see how it works.
Beyond this point you get into lower level attempts - you may need to find the particular piece of text which appears in the req'd menu item, get x,y coords for it and then click on that precise area of the screen.
Methods like this are not ideal and can be very sensitive to minor change, but are sometimes necessary...
Hope this is of some help,
[This message has been edited by Automatrix (edited 03-29-2001).]