Types of TSL Functions

Types of TSL Functions

Four basic types of Functions exist in Test Scripting Language.
Analog functions
Context Sensitive functions
Customization functions
Standard functions
Analog Functions
This is usefull when you record in analog mode.Analog mode talks about the exact coordinates of the GUI map.Analog functions record and execute operations at specified screen coordinates. When you record in Analog mode, these functions are used to catch mouse clicks, keyboard input, and the exact coordinates where the mouse has gones(clicks). When you run a test, Analog functions retrace the mouse tracks and exactly resubmit the input you recorded.Analog functions also support different test operations such as synchronization, verification, and text manipulation.
The Products on which Analog functions are available:
WinRunner
LoadRunner GUI Vusers on PC Platforms
The analog functions can again be classified bases on their operation. The various analog functions available are:
Bitmap Checkpoint Functions:
check window - Compares a bitmap of an AUT window to an expected bitmap.
Input Device Functions:
Click, get, move, mtype, type are the various input device functions.
Synchronization functions:
wait window is an example of synchronization functions.
Table Functions:
Various table operations can be performed through these functions. Classic examples of table operations are clicking a table cell, double clicking a table cell, dragging a table.
Text Checkpoint Functions:
Example: Click on text, find, get, move locator to a specified text

Context-Sensitive Functions
Context Sensitive functions depict actions on the application under test in terms of GUI objects (such as windows, lists, and buttons), ignoring the physical location of an object on the screen. In Context Sensitive mode, each time you record an operation on the application under test (AUT), a TSL statement is generated in the test script which describes the object selected and the action performed.
Different context-sensitive functions can be summarized as follows:
Active Bar Functions
ActiveX/Visual Basic Functions.
Bitmap Checkpoint Functions
Button Object Functions
Calendar Functions
Database Functions
Data driven test Functions
GUI related Functions
Java Functions
List and Menu object Functions
Oracle Functions
WAP Functions
Web Functions, etc.
the syntax of button_press function is:
button_press ( button [, mouse_button ] );
The button parameter may be the logical name of the button봣or example:
button_press("OK");
But it can also be the physical description봣or instance:
button_press("{class:push_button, label:\"OK\"}");
Standard Function:
Standard functions include the general elements of a programming language, such as basic input and output, control-flow, mathematical, and array functions. By combining these elements with Analog and Context Sensitive functions, you can transform a simple test into an advanced testing program.
The various standard functions can be summarized as follows:
Arithmetic Functions
Array Functions
Call Statements
Compiled Module Functions
I/O Functions
Load Testing Functions
Operating System Functions, etc.
Customization Functions
Customization functions allow you to enhance your testing tool so that it better supports your specific needs. For example, you can add functions to the Function Generator, or create custom GUI checkpoints.
The various customization functions are:
Custom Record Functions
Custom User Interface Functions
Function Generator Functions
GUI Checkpoint Functions
Share
Related Documents
  1. Test Types (876)
  2. testing types (1209)
  3. Software Testing Types (1287)
  4. S/w types and Bugs info (1211)
  5. Agile Testing Types and Processes (1956)
  6. What Types of Database Questions are Asked in Interview for Testing Positions? Testing Q&A Series (2327)
  7. Explaination of different types of Bugs (1630)
  8. Types of Performance testing? (1801)
  9. Definition on Different Types of Testing (531)
  10. 105 Types of Testings (688)
  11. Types of Testing (732)
  12. Security TestCases for all the type of Security testing Types (2259)
  13. Different Types of Performance Testing (1254)
  14. Types of Testing Traceability Matrics (1316)
  15. Performance Testing types Comparison (1092)
  16. TSL and FAQ (785)
  17. How to Secure CXF Web Services with SSL/TLS and WS-Security (2430)
  18. SQL Functions -- STUFF() & REPLACE() (539)
  19. Functions in QTP (1330)
  20. Database Testing - Store Pocedure vs Triggers Vs Functions (1299)