Académique Documents
Professionnel Documents
Culture Documents
Example
Set_window ("Calculator", 100);
7. In case edit_set statement is throwing the error message while entering the value
thru WR.What is the other alternate way to do that?
obj_type("Logical Name of the object","String Value");
Example
obj_type("Logical Name","RTG");
Example:
db_check("list1.cdl", "dbvf1");
list1.cdl is the check list file which contains the actual data.
dbvf1 is the expected data.
12. How to execute the DOS command line function using WinRunner?
dos_system("DOS Command Line function");
Example:
dos_system("ipconfig > C:/ip1.txt");
The above example is to copy the IP information of the maching to the Text file.
Example : web_browser_invoke(IE,"www.readytestgo.com");
supported browser : IE and Netscape 6.
Example:
db_connect ("query1","DSN=Flight32",30);
connection string should be created manually.
17. How will you write the record set from the database to the text file?
Example:
db_write_records("query1","c:\\query1.txt",TRUE,5);
db_disconnect ( session_name );
session_name The logical name or description of the database session.
The db_disconnect function disconnects from the session_name database session.
Example :
val = db_get_field_value ("query1","#1","#1");
val = db_get_field_value ("query1","#1","Customer_Name");
1|0 1 indicates a system module. 0 indicates a user module. The default value
is 0.
1|0 1 indicates that a user module will not remain open after it is loaded.
0 indicates that the module remains open in the WinRunner window. The
default value is 0.
The coordinate pairs can designate any two diagonally opposite corners of a
rectangle. The interpreter searches
25. How will check whether all the menu item are present in the menu or not?
menu_get_info("Test Process","count",outVal);
for(i=1;i<=outVal;i++)
{
menu_get_item("Test Process",i,mnuName);
report_msg(mnuName);
if(...)
{
}
}
26. What is batch test? How will you create the batch test?
using batch test mode you can call your test one by one using call or call_close
statement.
The main purpose is to execute all the test scripts at one shot.
eg:
strTestName = path & "\\..\\yourtest";
result = eval("call_close \"" & strTestName & "\"();");
34. How t o check the values in the combobox are alphabetical order or not?
36. What are all the problems which you faced in your earlier winrunner project?
Handling the dynamic objects.
Handling the Excel Sheets.
37. What are all the possible ways of connecting to the database?
1. using DSN
39. How do you retrieve the values from and update to excel?
ddt_open
ddt_get_row_count
ddt_val
ddt_set_val
40. What are all the various checkpoints available in the WinRunner?
GUI Checkpoint (object,window, multiple objects)
Bitmap Checkpoint (screen area, bitma)
Database Checkpoint (custom check,default check,runtime check)
Syncronization checkpoint
42. What is the configuration management tool used for the project?
parameter, Time-related
Customization functions - configure the testing tool according to your
requirements
46. What are all the various DataTypes available in the winrunner and their scope?
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.
static - A static variable is local to the function, test, or compiled module in which
it is declared. The variable retains its value untilthe test is terminated by a Stop
command.
public - A public variable can only be declared within a test or module, and
is available for all functions, tests, and compiled modules.