| || |
Unique Labels for CICS TE screens
I am developing a GUI map for a set of CICS screens. WinRunner automatically picks up the screen label as the first sixteen characters of row 1. The problem is all of the screens have the same label description. Furthermore, since the label contains a date, when the window is referenced on a different day WinRunner does not recognize the window.
label: "HBSW 05/16/03 --INTERPOS",
class: field, index: 6 contains the screen title. Is it possible to have WinRunner use the screen title as the value for the label property? This way each screen can be uniquely identified.
Re: Unique Labels for CICS TE screens
I played around with this and discovered the following.
Before defining the GUI map, run TE_get_screen_name_location(x,y,offset). X is the x coordinate for the screen title. Y is the y coordinate for the screen title. Offset is the number of characters to read from the y position.
After running the above fucntion, the label property of the window willcontain at least 30 characters of the screen title.
When running a script using the TE GUI map, you will need to run TE_get_screen_name_location before referencing any screens or objects.
In my case, I am working with IMS and CICS screens.
I noticed that when I want to define IMS screens, I have to run TE_get_screen_name_location with a different set of parameters because the screen title is in a different location.
To switch between the two environments I must rerun TE_get_screen_name_location to have my GUI map definitions recognized.