The AUT has buttons (recognized by WR as objects) which consists of a text, bitmap illustrating the use of the button and an alarm bitmap (which becomes red on major alarm, yellow on minor alarm and green when it is normal). GUI spy is not able to recognize these bitmaps individually. It just sees the button as whole ........ I need to run exception handling routines when there is a red or yellow alarm. This does not come under the 3 types of
exceptions available in winrunner namely
1. Pop Up window
2. TSL function - I can write a TSL function to check for red alarm using obj_check_bitmap and return error code and thus trigger this exception. The problem is I do not know when to call this function. I want it to be running sort of back ground process while the winrunner session is ON.
3. Object property change :- No change for any of the objects properties since the alarm bitmap is just a part of the whole button object.
Any ideas or suggestions to implement this ?
Re: exception handling
Is there any way you could get the developers to give you something to "grab on to" in this object? For instance, if you could get them to append the current color or condition to the object label, then you could use define_object_exception to watch for "[label]-yellow" and "[label]-red". That's the best I can think of right now.
my @email = qw(charles reace verizon net);
printf("%s.%s@%s.%s\n", $email, $email, $email, $email);
[i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.</i] (The Song of Roland)