I am using WinRunner 8.2 with Java add-in 7.6. I have the jre1.6 patch added to the java add-in. The Java application I am testing uses jre1.6. The tab select statements will not work. The tabs do not change when I select one of them. They all have a return value of 0 meaning they should have worked correctly.
Once again all tab_select_item calls return E_OK, and all these items can be highlighted or selected. I generated these tsl statements using context sensitive recording so I know they are correctly identified in the GUI map. There is no problem with the same gui map and tsl statements when testing previous version of application that uses jre 1.4.Please help!
I have a temporary solution where instead of using tab_select_item I call a script that uses an analog mouse click to select each tab. This will work for now but requires a lot of maintenance with each new iteration of the application. Does anyone know where I can find documentation on the Java Add-In 7.6? I can not find any docs on the HP website and there are no user guides that came with WinRunner.
I was going to suggest a work-around like you are already using. But you don't necessarily have to modify your x and y coordinates for each app change if you get the coordinates of the tab itself at run time, and click at - say - x+3,y+3 relative to those coordinates. Then if the tabs move, so does your click position.
After installing the Java-addin there is a Start>Programs>WinRunner>Java Add-in folder with 2 items "Java Add-In installation guide" and "Java Add-in online guide" (= user's guide).
Regarding your problem:
How did your application change?
Does the tab-object belong to the same Java class as in your previous application (jre 1.4)?
Of course it could also be a bug in the jre1.6-patch for the Java add-in - in this case I would raise a service request.