Interview questions on WinRunner

  1. How you used WinRunner in your project? - Yes, I have been using WinRunner for creating automated scripts for GUI, functional and regression testing of the AUT.
  2. 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.
  3. 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. 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.
  4. 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.
  5. 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.
  6. How does WinRunner evaluate 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.
  7. 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.
  8. 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.
  9. 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.
  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.
  11. Have 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.
  12. What are the different modes of recording? - There are two type of recording in WinRunner.  Context Sensitive recording records the operations you perform on your application by identifying Graphical User Interface (GUI) objects. Analog recording records keyboard input, mouse clicks, and the precise x- and y-coordinates traveled by the mouse pointer across the screen.
  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.
  14. 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.
  15. What is meant 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.
  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.
  17. What is the different between GUI map and GUI map files? - 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.
  18. 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.

  19. 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.
  20. 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.
This entry was posted in Testing, Windows. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

76 Comments on Interview questions on WinRunner

  1. Ashwini
    Posted 5/25/2006 at 12:24 am | Permalink

    Hi,

    In the first question, what does AUT mean?

  2. Shiva kumar bandaru
    Posted 5/29/2006 at 3:31 pm | Permalink

    how you handle the object(button) name varies continusly

    This can be handle by using regular expessions in winrunner.

  3. vaasu
    Posted 6/8/2006 at 10:01 pm | Permalink

    SCOPE
    The scope of this assignment is to see if the WinRunner Automation Engineer can
    · Develop a function that will calculate the date of a business day ‘x’ number of days from a start date.

    PROCESS
    In the mortgage business certain activity must take place within a specific number of business days from the loan origination date. The purpose of this assignment is to develop a function that will calculate the business date ‘x’ number of days from a specific start date.

    For example: 10 Business days from August 25th, 2003 is September 8th, 2003.

    This function is to have a two input parameters, consisting of the start date in the format mm/dd/yyyy and the number of days to advance. The return value of the function is to be the calculated business date in the format mm/dd/yyyy. Non-business days for 2003 & 2004 must also be taken into consideration.

    ABC non-business days
    · Saturdays & Sundays
    · New Year’s Day
    · Memorial Day
    · July 4
    · Labor Day
    · Thanksgiving
    · Christmas

  4. anitha
    Posted 6/8/2006 at 10:12 pm | Permalink

    Help,

    I have been put up to the following challenge but my installation of Winrunner is failing. I’d like to submit an answer to the following scenario and I need it done as soon as possible. How would I proceed to do the following??? Any assistance will be appreciated.

    SCENARIO

    Frequently data for an application-under-test must be created before testing can actually begin. In our environment this data is typically saved in Excel spreadsheets.

    For this exercise we have an application that will be seeding data for a stress test. Unfortunately, the stress testing tool does not have built in functions to read an Excel spreadsheet so the test data will need to be converted from Excel to a comma delimitated file.

    Using WinRunner, create an Excel spreadsheet with 12 columns.

    The column headers are to consist of the months of the year.
    The first row of data is to contain a random integer between 0 and 500 in each of the 12 cells.
    The third row of data is to contain a random integer between 0 and 500 in each of the 12 cells.
    The second data row of the spreadsheet is to contain the sum of data rows 1 & 3. (see example below).
    All cells in data rows 1 & 3 are to have unique values.
    Save the spreadsheet as C:\TEMP\ASSIGN3.XLS.
    From ASSIGN3.XLS save the spreadsheet as a comma-delimited file named C:\TEMP\ASSIGN3.DAT.
    Example:

    January | February | March |

    rand1 | rand2 | rand3 |

    rand1 + rand4 | rand2 + rand5 | rand3 + rand6 |

    rand4 | rand5 | rand6 |

    where randX is a value returned by the random number generator.

    ===============================================================

    The completed assignment must be submitted as a zipped file that when extracted, provides all components for a successful execution of the assignment.
    All external functions or GUI maps, if any, must be provided and subsequently loaded within the script

  5. anitha
    Posted 6/8/2006 at 10:13 pm | Permalink

    Hi guys, i want this assigement to be done tonight is my dead line so plese complete this and e-mail me as soon as possible.
    Thanks
    SCOPE
    The scope of this assignment is to see if the WinRunner Automation Engineer can
    · Develop a function that will calculate the date of a business day ‘x’ number of days from a start date.

    PROCESS
    In the mortgage business certain activity must take place within a specific number of business days from the loan origination date. The purpose of this assignment is to develop a function that will calculate the business date ‘x’ number of days from a specific start date.

    For example: 10 Business days from August 25th, 2003 is September 8th, 2003.

    This function is to have a two input parameters, consisting of the start date in the format mm/dd/yyyy and the number of days to advance. The return value of the function is to be the calculated business date in the format mm/dd/yyyy. Non-business days for 2003 & 2004 must also be taken into consideration.

    non-business days
    · Saturdays & Sundays
    · New Year’s Day
    · Memorial Day
    · July 4
    · Labor Day
    · Thanksgiving
    · Christmas

    ===============================================================
    Ø The completed assignment must be submitted as a zipped file that when extracted, provides all components for a successful execution of the assignment.
    Ø All external functions or GUI maps, if any, must be provided and subsequently loaded within the script

  6. Deepa
    Posted 6/29/2006 at 10:48 am | Permalink

    Really this a great site. It gives us a lot of information.

    I want to know more about manual testing and QTP. Could give us information about manual and QTP FAQS. That will be of great help.
    Thanks

  7. Tirtha Bagchi
    Posted 6/30/2006 at 7:12 am | Permalink

    Excellect web site on Testing tools. keep it up. Best wishes.

    Tirtha

  8. Manasa
    Posted 7/6/2006 at 5:39 pm | Permalink

    Hi
    I need some Faq’s on QTP and more on automation…

  9. Ashwini
    Posted 7/13/2006 at 1:43 pm | Permalink

    Hi,

    can anybody pls tell me what is AUT?

  10. sam
    Posted 7/13/2006 at 2:17 pm | Permalink

    did anyone get the assignment problems from WF solved yet - can i get a copy?

  11. Ashwini
    Posted 7/13/2006 at 4:56 pm | Permalink

    AUT means application under test…

  12. amar
    Posted 7/27/2006 at 4:53 am | Permalink

    would you write a tsl program for finding the largest number in given two numbers in winrunner?

  13. chandra shekhar
    Posted 8/21/2006 at 8:17 am | Permalink

    What is there any difference between the testcase for automation purpose and testcase for manual testing purpose,
    Can u pls give me some example testcaes

    Thanks in advance,

    and.. this site is verymuch useful.. thanks to the author…
    thanks to all for participating.. and giving valulable solutions

  14. Ch.Nagendra Prasad
    Posted 8/23/2006 at 12:40 am | Permalink

    62)would you write a tsl program for finding the largest number in given two numbers in winrunner?

    Ans)

    a=create_input_dialog(”Enter First Number”);
    b=create_input_dialog(”Enter Second Number”);
    if (a>b)
    printf(”The Biggest of ” &a ” and” &b ” is “&a);
    else
    printf(”The Biggest of ” &a ” and” &b ” is “&b);

  15. Jyoti
    Posted 10/5/2006 at 6:37 pm | Permalink

    Can Anyone help me with this question…..
    You notice the ERP application you are testing can have both the order
    window and the part window open at the same time. The label of the order
    window contains only the five digit order number (i.e. 12345). The label
    of the part window contains only the five digit part number (i.e.
    45678).

    Assume that the order number and the part number will never be the same
    and that both the order number and part number are known prior to opening
    the windows (i.e. they can be stored in a script variable).

    Which answer describes the most efficient way to allow the scripts to
    access the windows regardless of the order number or part number that is
    used?
    A Create an entry in the GUI map for each possible value that the window labels may have.
    B Use WinRunner variables that contain the order and part numbers as part of the window description in the GUI map.
    C Use a regular expression in the label attribute of each window’s physical description in the GUI map.
    D WinRunner does not support the scenario where window labels have identical formats.
    E Refer to the windows by their physical descriptions in the test scripts.

  16. amar
    Posted 10/6/2006 at 12:15 am | Permalink

    hi,
    really it is a greate website and learned a lot from this site and i want to know

    1.how we test the dinamic objects using winrunner?
    2.what is the difference between Virtuval object wizard and GUI Map configuration?

  17. Nishant
    Posted 10/10/2006 at 7:11 am | Permalink

    Its very helpful for the people who attend interviews in automation.But in interviews they may ask Manual testing first since we cant write the TSL directly.So be prepared with manual concepts also

  18. venkat.M
    Posted 10/13/2006 at 1:48 am | Permalink

    hi any body can help me in knowing about the automation framework for winrunner and qtp?

  19. Manish Bhagwat
    Posted 12/29/2006 at 2:53 am | Permalink

    Hi All,

    I am working on WinRunner and beyond doubt this side helped me a lot to amplify my knowledge in Win Runner.

    Reply for Amar :
    1.How we test the dinamic objects using winrunner?
    Ans: We can use descriptive programming for dynamic objects. First identify the object with some unique property which will remain same. then use descriptive programming e.g. if the window caption is changing with every run then we can use
    win_get_info(“WindowName”,”label”,sText)
    if (sText = = “Scheme 12345”) Then
    {
    # statements
    }

    2.what is the difference between Virtuval object wizard and GUI Map configuration?
    Ans:- If the object is recognized by WR properly then we need not to use virtual object wizard (VOW) or GUI map Configuration (GMC) but unfortunately in most of the application the objects are not standard so we need to use VOW & GMC.

    If the object is not recognized then we have to use VOW and if there are some objects developed as some non-standard class (say uiCoreDrawn or thunderbox etc) and the objects looks like some standard object (say button) then we can GMC so that whenever that type of object will appear the WR will recognize it as Standard object

    In Short : VOW is used to forcefully recognize the objects whereas GMC is used to convert object class from non-standard to standard

    If you have any query then please contact me at manish_pavan@yahoo.co.in

  20. sania
    Posted 2/2/2007 at 4:38 am | Permalink

    what is frame work? and how many types of automation frameworks in WinRunner and QTP?
    frame work architechture? urgent

    where we have receive the input data for writing test cases?

    where u save the script, test results in WinRunner, QTP?

  21. pankaj
    Posted 2/21/2007 at 7:31 am | Permalink

    Is there any way to increase the tool_tip_text variable size?

  22. Prakash Srivatsan
    Posted 3/8/2007 at 3:31 am | Permalink

    For all those folks out there who are bugging with Winrunner for creating an automation suite for a Web based .Net application, please give up.

    I am an automation engineer and I have worked with almost 23 tools including Winrunner, QTP, Rational(IBM) Robot etc. Among these I found one tool to be outstandingly compatible and effective to automate .Net application (both Web based and Win32). It is “TestComplete” from Automated QA (www.automatedqa.com). This tool, unlike others doesn’t give you a powerful record-playback mechanism, instead gives you a wide variety of coding platforms like VBScript, C#, MS JScript, VC++ .Net, C++, Delphi, Delphi Script.

    Virtually any complex operation can be coded using any of the above platforms with the help of one of the best and most comprehensive Help file similar to MSDN Library.

    By providing such a wide range of coding languages, the target users are also exponentially increased compared to other tools. It’s absolutely cost effective compared to other tools. I suggest you all to try out this one, if you have not heard of it.

  23. Rijin
    Posted 3/30/2007 at 10:12 am | Permalink

    What is compailed module and bach module in winrunner?
    how we can use these in our projects?

  24. Aruna
    Posted 6/19/2007 at 3:35 am | Permalink

    hai,

    how can skip the middle line of loop of the data driven test program in Win runner
    example: i have two fields user_id, password , if i take invalid password then it is disaplaye popup message or server side message , i want skip the line in the table of ddt which one indalid, continue next line . how can i skip the line .

    Anybody can tell Program or procecure for above Question.

  25. amjath khan
    Posted 7/23/2007 at 10:48 pm | Permalink

    1.what is the difference between regression testing and sanity testing
    2.Once u r test script has been completed, how u will know its covered all the scenario (do u have any methodology)

  26. Durai.Pu
    Posted 9/12/2007 at 12:43 am | Permalink

    Hi amjath khan,

    what is the difference between regression testing and sanity testing.

    Sanity Testing is same as Smoke Testing.
    Smoke testing is done when the development process is to complete. that is before going for further testing.

    Sanity testing is done before the regression testing. Regression testing is the process of testing the system after the defects is fixed by the developer to check the change as produced the defects.

    With Rds,
    Durai.Pu

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*