Winrunner Questions and Answers

Winrunner is Automation Test Tool for Software Testing. This is small help to the people who are looking for Interview Questions and their answers on Winrunner. There would be more than 100 questions and answers in this blog.

Latest questions on Winrunner! *Scroll down for the Index of Questions*

Monday, May 22, 2006

Earn Money from Website or blog -
and show your sites on Google search

Winrunner Question 73: How do you create parameterize SQL commands?

How do you create parameterize SQL commands?
  • A parameterized query is a query in which at least one of the fields of the WHERE clause is parameterized, i.e., the value of the field is specified by a question mark symbol ( ? ). For example, the following SQL statement is based on a query on the database in the sample Flight Reservation application:

SELECT Flights.Departure, Flights.Flight_Number, Flights.Day_Of_Week FROM Flights Flights WHERE (Flights.Departure=?) AND (Flights.Day_Of_Week=?)

     SELECT defines the columns to include in the query.
     FROM specifies the path of the database.
WHERE (optional) specifies the conditions, or filters to use in the query.
Departure is the parameter that represents the departure point of a flight.
Day_Of_Week is the parameter that represents the day of the week of a flight.

  • When creating a database checkpoint, you insert a db_check statement into your test script. When you parameterize the SQL statement in your checkpoint, the db_check function has a fourth, optional, argument: the parameter_array argument. A statement similar to the following is inserted into your test script:

db_check("list1.cdl", "dbvf1", NO_LIMIT, dbvf1_params);

The parameter_array argument will contain the values to substitute for the parameters in the parameterized checkpoint.

Earn Money from Website or blog -
and show your sites on Google search

Winrunner Question 72: How do you parameterize database check points?

How do you parameterize database check points?
When you create a standard database checkpoint using ODBC (Microsoft Query), you can add parameters to an SQL statement to parameterize the checkpoint. This is useful if you want to create a database checkpoint with a query in which the SQL statement defining your query changes

Earn Money from Website or blog -
and show your sites on Google search

Winrunner Question 71: How do you convert a database file to a text file?

How do you convert a database file to a text file?
You can use Data Junction to create a conversion file which converts a database to a target text file.

Wednesday, May 17, 2006

Earn Money from Website or blog -
and show your sites on Google search

Winrunner Question 70: How do you record a data driven test?

How do you record a data driven test?
We can create a data-driven testing using data from a flat file, data table or a database.

  • Using Flat File: we actually store the data to be used in a required format in the file. We access the file using the File manipulation commands, reads data from the file and assign the variables with data.

  • Data Table: It is an excel file. We can store test data in these files and manipulate them. We use the ‘ddt_*’ functions to manipulate data in the data table.

  • Database: we store test data in the database and access these data using ‘db_*’ functions.

Earn Money from Website or blog -
and show your sites on Google search

Winrunner Question 69: How do you create ODBC query?

How do you create ODBC query?
We can create ODBC query using the database checkpoint wizard. It provides with option to create an SQL file that uses an ODBC DSN to connect to the database. The SQL File will contain the connection string and the SQL statement.

Earn Money from Website or blog -
and show your sites on Google search

Winrunner Question 68: How do you handle ActiveX and Visual basic objects?

How do you handle ActiveX and Visual basic objects?
WinRunner provides with add-ins for ActiveX and Visual basic objects. When loading WinRunner, select those add-ins and these add-ins provide with a set of functions to work on ActiveX and VB objects.

Earn Money from Website or blog -
and show your sites on Google search

Winrunner Question 67: How do you modify the expected results of a GUI checkpoint?

How do you modify the expected results of a GUI checkpoint?
We can modify the expected results of a GUI checkpoint be running the script containing the checkpoint in the update mode.

Earn Money from Website or blog -
and show your sites on Google search

Winrunner Question 66: How do you edit the expected value of an object?

How do you edit the expected value of an object?
We can modify the expected value of the object by executing the script in the Update mode. We can also manually edit the gui*.chk file which contains the expected values which come under the exp folder to change the values.

Tuesday, May 02, 2006

Earn Money from Website or blog -
and show your sites on Google search

Winrunner Question 65: How do you edit checklist file and when do you need to edit the checklist file?

How do you edit checklist file and when do you need to edit the checklist file?
WinRunner has an edit checklist file option under the create menu. Select the “Edit GUI Checklist” to modify GUI checklist file and “Edit Database Checklist” to edit database checklist file. This brings up a dialog box that gives you option to select the checklist file to modify. There is also an option to select the scope of the checklist file, whether it is Test specific or a shared one. Select the checklist file, click OK which opens up the window to edit the properties of the objects.

Earn Money from Website or blog -
and show your sites on Google search

Winrunner Question 64: What do you verify with the sync point for screen area and what command it generates, explain syntax?

What do you verify with the sync point for screen area and what command it generates, explain syntax?

  • For screen area verification we actually capture the screen area into a bitmap and verify the application screen area with the bitmap file during execution
Syntax: obj_wait_bitmap(object, image, time, x, y, width, height);

Earn Money from Website or blog -
and show your sites on Google search

Winrunner Question 63: What do you verify with the sync point for object/window bitmap and what command it generates, explain syntax?

What do you verify with the sync point for object/window bitmap and what command it generates, explain syntax?

  • You can create a bitmap synchronization point that waits for the bitmap of an object or a window to appear in the application being tested.

  • During a test run, WinRunner suspends test execution until the specified bitmap is redrawn, and then compares the current bitmap with the expected one captured earlier. If the bitmaps match, then WinRunner continues the test.
Syntax:
obj_wait_bitmap ( object, image, time );
win_wait_bitmap ( window, image, time );

Earn Money from Website or blog -
and show your sites on Google search

Winrunner Question 62: What do you verify with the sync point for object/window property and what command it generates, explain syntax?

What do you verify with the sync point for object/window property and what command it generates, explain syntax?
  • Synchronization compensates for inconsistencies in the performance of your application during a test run. By inserting a synchronization point in your test script, you can instruct WinRunner to suspend the test run and wait for a cue before continuing the test.

  • You can a synchronization point that instructs WinRunner to wait for a specified object or window to appear. For example, you can tell WinRunner to wait for a window to open before performing an operation within that window, or you may want WinRunner to wait for an object to appear in order to perform an operation on that object.

  • You use the obj_exists function to create an object synchronization point, and you use the win_exists function to create a window synchronization point. These functions have the following syntax:
Syntax:
obj_exists ( object [, time ] );
win_exists ( window [, time ] );


Index of Winrunner Questions

  • WinRunner Question 01 : Explain WinRunner testing process?
  • WinRunner Question 02 : What in contained in the GUI map?
  • WinRunner Question 03 : How does WinRunner recognize objects on the application?
  • WinRunner Question 04 : How does WinRunner evaluates test results?
  • WinRunner Question 05 : Have you created test scripts and what is contained in the test scripts?
  • WinRunner Question 06 : Have you performed debugging of the scripts?
  • WinRunner Question 07 : How do you run your test scripts?
  • WinRunner Question 08 : How do you analyze results and report the defects?
  • WinRunner Question 09 : How do you analyze results and report the defects?
  • WinRunner Question 10 : What is the use of Test Director software?
  • Winrunner Question 11 : How you integrated your automated scripts from TestDirector?
  • Winrunner Questions 12 : What are the different modes of recording?
  • Winrunner Question 13 : What is the purpose of loading WinRunner Add-Ins?
  • Winrunner Question 14 : What are the reasons that WinRunner fails to identify an object on the GUI?
  • Winrunner Question 15 : What do you mean by the logical name of the object?
  • Winrunner Question 16 : If the object does not have a name then what will be the logical name?
  • Winrunner Question 17 : What is the different between GUI map and GUI map files?
  • Winrunner Question 18 : How do you view the contents of the GUI map?
  • Winrunner Question 19 : When you create GUI map do you record all the objects of specific objects?
  • Winrunner Question 20: What is the purpose of set_window command?
  • Winrunner Question 21: How do you load GUI map? What is the disadvantage of loading the GUI maps through start up scripts?
  • Winrunner Question 22: How do you unload the GUI map? What actually happens when you load GUI map?
  • Winrunner Question 23: What is the purpose of the temp GUI map file? What is the extension of gui map file?
  • Winrunner Question 24: How do you find an object in an GUI map?
  • Winrunner Question 25: What different actions are performed by find and show button?
  • Winrunner Question 26: How do you identify which files are loaded in the GUI map?
  • Winrunner Question 27: How do you modify the logical name or the physical description of the objects in GUI map?
  • Winrunner Question 28: When do you feel you need to modify the logical name?
  • Winrunner Question 29: When it is appropriate to change physical description?
  • Winrunner Question 30: How WinRunner handles varying window labels?
  • Winrunner Question 31: What is the purpose of regexp_label property and regexp_MSW_class property?
  • Winrunner Question 31: How do you suppress a regular expression?
  • Winrunner Question 33: How do you copy and move objects between different GUI map files?
  • Winrunner Question 34: How do you select multiple objects during merging the files?
  • Winrunner Question 35: How do you clear a GUI map files? How do you filter the objects in the GUI map?
  • Winrunner Question 36: What is the purpose of GUI map configuration? How do you make the configuration and mappings permanent?
  • Winrunner Question 37: What is the purpose of GUI spy?
  • Winrunner Question 38: What is the purpose of obligatory and optional properties of the objects?
  • Winrunner Question 39: When the optional properties are learned?
  • Winrunner Question 40: What is the purpose of location indicator and index indicator in GUI map configuration?
  • Winrunner Question 41: How do you handle custom objects?
  • Winrunner Question 42: What is the name of custom class in WinRunner and what methods it applies on the custom objects?
  • Winrunner Question 43: In a situation when obligatory and optional both the properties cannot uniquely identify an object what method WinRunner applies?
  • Winrunner Question 44: What is the purpose of different record methods 1) Record 2) Pass up 3) As Object 4) Ignore.
  • Winrunner Question 45: How do you find out which is the start up file in WinRunner?
  • Winrunner Question 46: What are the virtual objects and how do you learn them?
  • Winrunner Question 47: What are the two modes of recording?
  • Winrunner Question 48: What is a checkpoint and what are different types of checkpoints?
  • Winrunner Question 49: What are data driven tests?
  • Winrunner Question 50: What are the synchronization points?
  • Winrunner Question 51: What is parameterizing?
  • Winrunner Question 52: How do you maintain the document information of the test scripts?
  • Winrunner Question 53: What do you verify with the GUI checkpoint for single property and what command it generates, explain syntax?
  • Winrunner Question 54: What do you verify with the GUI checkpoint for object/window and what command it generates, explain syntax?
  • Winrunner Question 55: What information is contained in the checklist file and in which file expected results are stored?
  • Winrunner Question 56: What do you verify with the GUI checkpoint for multiple objects and what command it generates, explain syntax?
  • Winrunner Question 57: What do you verify with the bitmap check point for object/window and what command it generates, explain syntax?
  • Winrunner Question 58: What do you verify with the bitmap checkpoint for screen area and what command it generates, explain syntax?
  • Winrunner Question 59: What do you verify with the database checkpoint default and what command it generates, explain syntax?
  • Winrunner Question 60: How do you handle dynamically changing area of the window in the bitmap checkpoints?
  • Winrunner Question 61: What do you verify with the database check point custom and what command it generates, explain syntax?
  • Winrunner Question 62: What do you verify with the sync point for object/window property and what command it generates, explain syntax?
  • Winrunner Question 63: What do you verify with the sync point for object/window bitmap and what command it generates, explain syntax?
  • Winrunner Question 64: What do you verify with the sync point for screen area and what command it generates, explain syntax?
  • Winrunner Question 65: How do you edit checklist file and when do you need to edit the checklist file?
  • Winrunner Question 66: How do you edit the expected value of an object?
  • Winrunner Question 67: How do you modify the expected results of a GUI checkpoint?
  • Winrunner Question 68: How do you handle ActiveX and Visual basic objects?
  • Winrunner Question 69: How do you create ODBC query?
  • Winrunner Question 70: How do you record a data driven test?
  • Winrunner Question 71: How do you convert a database file to a text file?
  • Winrunner Question 72: How do you parameterize database check points?
  • Winrunner Question 73: How do you create parameterize SQL commands?
  • Winrunner Question 74: Explain the following Winrunner Commands
  • Winrunner Question 75: What check points you will use to read and check text on the GUI and explain its syntax?
  • Winrunner Question 76: Explain Get Text checkpoint from object/window with syntax?
  • Winrunner Question 77: Explain Get Text checkpoint from screen area with syntax?
  • Winrunner Question 78: Explain Get Text checkpoint from selection (web only) with syntax?
  •