Thursday, March 15, 2007

Text Checkpoint Tips

• Before you create a script that reads text, determine where the text is located. If
the text is part of a standard GUI object, use a GUI checkpoint or TSL function
such as edit_get_text or button_get_info. If the text is part of a non-standard
GUI object, use the Create > Get Text > From Object/Window command. If the
text is part of a bitmap, use the Create > Get Text > From Screen Area
command.
• When WinRunner reads text from the application, the text appears in the script
as a comment (a comment is preceded by #). If the comment #no text was
found appears in the script, WinRunner does not recognize your application font.
Use the Font Expert to teach WinRunner this font.
• TSL includes additional functions that enable you to work with text such as
win_find_text, obj_find_text, and compare_text. For more information, refer
to the "Checking Text" chapter in your WinRunner User’s Guide.