Monday, March 12, 2007

How Do You Program Tests with TSL?

How Do You Program Tests with TSL?
When you record a test, WinRunner generates TSL statements in a test script
each time you click a GUI object or type on the keyboard. In addition to the
recorded TSL functions, TSL includes many other built-in functions which can
increase the power and flexibility of your tests. You can quickly add these
functions to a test script using WinRunner’s visual programming tool, the Function
Generator. All functions located in the Function Generator are explained in the
TSL Online Reference and the TSL Reference Guide.
The Function Generator enables you to add TSL functions in two ways:
• You can point to a GUI object and let WinRunner "suggest" an appropriate
function. You can then insert this function into the test script.
• You can select a function from a list. Functions appear by category and
alphabetically.
You can further enhance your test scripts by adding logic. Simply type
programming elements such as conditional statements, loops, and arithmetic
operators directly into the test window.