Test Script Language Part-1


TSL stands for “Test Scripting Language”.TSL is procedural language-similar to C programming language.TSL is having different catagory to perform different tasks.It has constructs,like statements,comments,variables,mathematical operators,control statements,and functions.

Feature list and description:

Allows users to enter human readable information in the test script that will be ignored by the
Naming Rules
Rules for identifiers within TSL.
Data Types
The different types of data values that are supported by the language.
Data Storage
Constructs that can be used to store information.
Different type of computational operations.
Avoids executing certain portions of the code unless a condition is met.
Repeats execution of a certain section of code.
Group of statements used to perform some useful functionality.

Basically this language is created by Mercury Interactive to support their own products.All the recorded scripts that WinRunner/Loadrunner/X-runner creates when you perform an operation is in TSL code syntax. Keep in mind that while mastery of TSL is not required for creating automated
tests, knowledge of the language helps to enhance the recorded tests and to create highly sophisticated tests. Skillful usage of TSL can limit the need for manual intervention when running your test. It can also make your test less errorprone.The TSL language is very compact containing only a small number of operators and keywords.A very interesting thing about TSL is that it is really easy to understand if you have little amount of knowledge in programming language.