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*

Friday, February 24, 2006

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

Winrunner Question 20: What is the purpose of set_window command?

Set_Window command sets the focus to the specified window. We use this command to set the focus to the required window before executing tests on a particular window.

Syntax: set_window(, time);
The logical name is the logical name of the window and time is the time the execution has to wait till it gets the given window into focus.

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

Winrunner Question 19 : When you create GUI map do you record all the objects of specific objects?

If we are learning a window then WinRunner automatically learns all the objects in the window else we will we identifying those object, which are to be learned in a window, since we will be working with only those objects while creating scripts.

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

Winrunner Question 18 : How do you view the contents of the GUI map?

GUI Map editor displays the content of a GUI Map. We can invoke GUI Map Editor from the Tools Menu in WinRunner. The GUI Map Editor displays the various GUI Map files created and the windows and objects learned in to them with their logical name and physical description.

Wednesday, February 22, 2006

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

Winrunner Question 17 : What is the different between GUI map and GUI map files?

1) The GUI map is actually the sum of one or more GUI map files. There are two modes for organizing GUI map files.

  • Global GUI Map file: a single GUI Map file for the entire application
  • GUI Map File per Test: WinRunner automatically creates a GUI Map file for each test created.

2) GUI Map file is a file which contains the windows and the objects learned by the WinRunner with its logical name and their physical description.

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

Winrunner Question 16 : If the object does not have a name then what will be the logical name?

If the object does not have a name then the logical name could be the attached text.

Monday, February 20, 2006

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

Winrunner Question 15 : What do you mean by the logical name of the object?

An object’s logical name is determined by its class. In most cases, the logical name is the label that appears on an object.

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

Winrunner Question 14 : What are the reasons that WinRunner fails to identify an object on the GUI?

What are the reasons that WinRunner fails to identify an object on the GUI?
WinRunner fails to identify an object in a GUI due to various reasons.
  • The object is not a standard windows object.

  • If the browser used is not compatible with the WinRunner version, GUI Map Editor will not be able to learn any of the objects displayed in the browser window.

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

Winrunner Question 13 : What is the purpose of loading WinRunner Add-Ins?

Add-Ins are used in WinRunner to load functions specific to the particular add-in to the memory. While creating a script only those functions in the add-in selected will be listed in the function generator and while executing the script only those functions in the loaded add-in will be executed else WinRunner will give an error message saying it does not recognize the function.

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

Winrunner Question 12 : What are the different modes of recording?

ckThere are two type of recording in WinRunner.
i. Context Sensitive recording records the operations you perform on your application by identifying Graphical User Interface (GUI) objects.
ii. Analog recording records keyboard input, mouse clicks, and the precise x- and y-coordinates traveled by the mouse pointer across the screen.

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

Winrunner Question 11 : How you integrated your automated scripts from TestDirector?

When you work with WinRunner, you can choose to save your tests directly to your TestDirector database or while creating a test case in the TestDirector we can specify whether the script in automated or manual. And if it is automated script then TestDirector will build a skeleton for the script that can be later modified into one which could be used to test the AUT.

Saturday, February 18, 2006

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

WinRunner Question 10 : What is the use of Test Director software?

TestDirector is Mercury Interactive’s software test management tool. It helps quality assurance personnel plan and organize the testing process. With TestDirector you can create a database of manual and automated tests, build test cycles, run tests, and report and track defects. You can also create reports and graphs to help review the progress of planning tests, running tests, and tracking defects before a software release.

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

WinRunner Question 09 : How do you analyze results and report the defects?

Following each test run, WinRunner displays the results in a report. The report details all the major events that occurred during the run, such as checkpoints, error messages, system messages, or user messages. If mismatches are detected at checkpoints during the test run, you can view the expected results and the actual results from the Test Results window. If a test run fails due to a defect in the application being tested, you can report information about the defect directly from the Test Results window. This information is sent via e-mail to the quality assurance manager, who tracks the defect until it is fixed.    

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

WinRunner Question 08 : How do you analyze results and report the defects?

Following each test run, WinRunner displays the results in a report. The report details all the major events that occurred during the run, such as checkpoints, error messages, system messages, or user messages. If mismatches are detected at checkpoints during the test run, you can view the expected results and the actual results from the Test Results window. If a test run fails due to a defect in the application being tested, you can report information about the defect directly from the Test Results window. This information is sent via e-mail to the quality assurance manager, who tracks the defect until it is fixed.

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

WinRunner Question 07 : How do you run your test scripts?

We run tests in Verify mode to test your application. Each time WinRunner encounters a checkpoint in the test script, it compares the current data of the application being tested to the expected data captured earlier. If any mismatches are found, WinRunner captures them as actual results.

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

WinRunner Question 06 : Have you performed debugging of the scripts?

Yes, I have performed debugging of scripts. We can debug the script by executing the script in the debug mode. We can also debug script using the Step, Step Into, Step out functionalities provided by the WinRunner.

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

WinRunner Question 05 : Have you created test scripts and what is contained in the test scripts?

Yes I have created test scripts. It contains the statement in Mercury Interactive’s Test Script Language (TSL). These statements appear as a test script in a test window. You can then enhance your recorded test script, either by typing in additional TSL functions and programming elements or by using WinRunner’s visual programming tool, the Function Generator.

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

WinRunner Question 04 : How does WinRunner evaluates test results?

Following each test run, WinRunner displays the results in a report. The report details all the major events that occurred during the run, such as checkpoints, error messages, system messages, or user messages. If mismatches are detected at checkpoints during the test run, you can view the expected results and the actual results from the Test Results window.    

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

WinRunner Question 03 : How does WinRunner recognize objects on the application?

WinRunner uses the GUI Map file to recognize objects on the application. When WinRunner runs a test, it uses the GUI map to locate objects. It reads an object’s description in the GUI map and then looks for an object with the same properties in the application being tested.

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

WinRunner Question 02 : What in contained in the GUI map?


WinRunner stores information it learns about a window or object in a GUI Map. When WinRunner runs a test, it uses the GUI map to locate objects. It reads an object’s description in the GUI map and then looks for an object with the same properties in the application being tested. Each of these objects in the GUI Map file will be having a logical name and a physical description.

There are 2 types of GUI Map files.
  • Global GUI Map file: a single GUI Map file for the entire application

  • GUI Map File per Test: WinRunner automatically creates a GUI Map file for each test created.

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

WinRunner Question 01 : Explain WinRunner testing process?

WinRunner testing process involves six main stages
  • Create GUI Map File so that WinRunner can recognize the GUI objects in the application being tested

  • Create test scripts by recording, programming, or a combination of both. While recording tests, insert checkpoints where you want to check the response of the application being tested.

  • Debug Test: run tests in Debug mode to make sure they run smoothly

  • Run Tests: run tests in Verify mode to test your application.

  • View Results: determines the success or failure of the tests.

  • Report Defects: If a test run fails due to a defect in the application being tested, you can report information about the defect directly from the Test Results window.    

Friday, February 17, 2006

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

This blog is under maintenance. Please bear with the delay... meanwhile you can check out this website

http://techiecorner.blogspot.com


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?
  •