-
Explain the following TSL functions:
Ddt_open i. Creates or opens a datatable file so that WinRunner can access it. Syntax: ddt_open ( data_table_name, mode );data_table_name The name of the data table. The name may be the table variable name, the Microsoft Excel file or a tabbed text file name, or the full path and file name of the table. The first row in the file contains the names of the parameters. This row is labeled row 0....
-
How do you write messages to the report?
To write message to a report we use the report_msg statement Syntax: report_msg (message);
-
Where do you set up the search path for a called test.
The search path determines the directories that WinRunner will search for a called test. b. To set the search path, choose Settings > General Options. The General Options dialog box opens. Click the Folders tab and choose a search path in the Search Path for Called Tests box. WinRunner searches the directories in the order in which they are listed in the box. Note that the search paths you...
-
How you create user-defined functions and explain the syntax?
A user-defined function has the following structure: [class] function name ([mode] parameter...) { declarations; statements; }b. The class of a function can be either static or public. A static function is available only to the test or module within which the function was defined. c. d. Parameters need not be explicitly declared. They can be of mode in, out, or inout. For all non-array...
-
What does static and public class of a function means?
The class of a function can be either static or public. b. A static function is available only to the test or module within which the function was defined. c. Once you execute a public function, it is available to all tests, for as long as the test containing the function remains open. This is convenient when you want the function to be accessible from called tests. However, if you want to ...
-
What does in, out and input parameters means?
in: A parameter that is assigned a value from outside the function. b. out: A parameter that is assigned a value from inside the function. c. inout: A parameter that can be assigned a value from outside or inside the function.
-
What is the purpose of return statement?
This statement passes control back to the calling function or test. It also returns the value of the evaluated expression to the calling function or test. If no expression is assigned to the return statement, an empty string is returned. Syntax: return [( expression )];
-
What does auto, static, public and extern variables means?
auto: An auto variable can be declared only within a function and is local to that function. It exists only for as long as the function is running. A new copy of the variable is created each time the function is called. b. static: A static variable is local to the function, test, or compiled module in which it is declared. The variable retains its value until the test is terminated by an...
-
How do you declare constants?
The const specifier indicates that the declared value cannot be modified. The class of a constant may be either public or static. If no class is explicitly declared, the constant is assigned the default class public. Once a constant is defined, it remains in existence until you exit WinRunner. b. The syntax of this declaration is: [class] const name [= expression];
-
How do you load and unload a compile module?
In order to access the functions in a compiled module you need to load the module. You can load it from within any test script using the load command; all tests will then be able to access the function until you quit WinRunner or unload the compiled module. b. You can load a module either as a system module or as a user module. A system module is generally a closed module that is “invisible”...
-
-
Winrunner Interview Questions
Ans