This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
8 Replies Last post: Nov 10, 2009 12:32 AM by KrRanjan  
Click to view KrRanjan's profile   20 posts since
Aug 5, 2009

Oct 26, 2009 2:15 PM

Screen recognisation Criteria confusion


Does the screen recognition criteria matchs the whole Sentence? for example if the text to match is "AUTO REFRESH AT" will it get satisfied for "AUTO REFRESH" also?
Click to view barbieri's profile   18 posts since
Feb 19, 2009
1. Oct 26, 2009 4:27 PM in response to: KrRanjan
Re: Screen recognisation Criteria confusion

No, screen recognition will not get satisfied if only a part of the text appears on the screen.

  • Steve
Click to view lruffing's profile   1 posts since
Oct 27, 2009
4. Oct 27, 2009 4:39 PM in response to: KrRanjan
Re: Screen recognisation Criteria confusion

If the screen containing only "AUTO REFRESH" is being recognized when the screen recognition criteria is "AUTO REFRESH AT", then there might be a problem in the HATS code. I don't think there is a way to only recognize the screen if the screen recogition text is not in a hidden field. It seems there could be something special about the fact that it's in a hidden field. I did not see the problem when trying this out myself on regular fields. Can you attach the host screen capture files (.hsc) for your screen1 and screen 2? Also, in the screen recognition criteria, which String Position did you specify (choice in red below)?

scrreco.JPG

Click to view barbieri's profile   18 posts since
Feb 19, 2009
5. Oct 27, 2009 6:40 PM in response to: KrRanjan
Re: Screen recognisation Criteria confusion

Is it the case where screen1 has AUTO REFRESH AT and screen2 has AUTO REFRESH AT both in exactly the same location, the only difference being that the AT in screen2 is hidden? If the text is at different locations then you can use the "At a specific location" radio button to distinguish the two. If the text is at the exact same location, but the AT is hidden you can try adding a new criterion for color. For the color criterion for screen2, select the beginning of the hidden field (where the AT is) and set the foreground and background colors to black (or whatever your background color is). Now, this screen will be recognized if the text in the field is black on black (hidden). If the text in the field is not black on black, for example green on black, then it won't be recognized by the criteria. You will need to add a color criterion to screen1 as well. Here the color criterion would be foreground=green and background=black (or whatever colors your host uses). Now, the two screen have unique screen recognition criteria. This seemed to work for me in my limited test. Give it a try.

Steve

Click to view EmilyBollinger's profile   14 posts since
Nov 2, 2009
7. Nov 3, 2009 10:36 AM in response to: KrRanjan
Re: Screen recognisation Criteria confusion
For Screen 2: On the Screen Customization editor, click the Screen Recognition Criteria tab. Click the arrow button beside the Add button and select Color Criterion.

http://www-949.ibm.com/software/rational/cafe/servlet/JiveServlet/downloadImage/1789/image1.bmp

Click on the screen to place the cursor where the hidden text (Auto Refresh At) is and change the foreground color to be the same as the background color of your host.

http://www-949.ibm.com/software/rational/cafe/servlet/JiveServlet/downloadImage/1787/image2.bmp

Do the same thing for Screen 1 but specify the foreground color to be different than the background color (probably green on black).

Hope this helps!
-Emily
Bottom Banner