Win runner Interview Questions & Answers

Started by Kalyan, May 03, 2008, 04:54 PM

Previous topic - Next topic

Kalyan

Win runner Interview Questions & Answers

1) Explain WinRunner testing process?

    WinRunner testing process involves six main stages

        i.Create GUI Map File so that WinRunner can recognize the GUI objects in the application being tested
        ii.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.
        iii.Debug Test: run tests in Debug mode to make sure they run smoothly
        iv.Run Tests: run tests in Verify mode to test your application.
        v.View Results: determines the success or failure of the tests.
        vi.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.

2) What is 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.

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

3) 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.

4) 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.

5) 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.

6) 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.

7) 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.

8) 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.

9) What are the different modes of recording?

    There 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.

10) 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.

11) 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.

        i.The object is not a standard windows object.
        ii.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.

12) 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.

13) 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.

14) What is the different between GUI map and GUI map files?

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

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

    b)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.

15) 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.

16) 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.

17) 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.

18) How do you load GUI map?

    We can load a GUI Map by using the GUI_load command.

    Syntax: GUI_load();

19) What is the disadvantage of loading the GUI maps through start up scripts?

    * If we are using a single GUI Map file for the entire AUT then the memory used by the GUI Map may be much high.
    * If there is any change in the object being learned then WinRunner will not be able to recognize the object, as it is not in the GUI Map file loaded in the memory. So we will have to learn the object again and update the GUI File and reload it.

20) How do you unload the GUI map?

    We can use GUI_close to unload a specific GUI Map file or else we call use GUI_close_all command to unload all the GUI Map files loaded in the memory.

    Syntax: GUI_close(); or GUI_close_all;d