Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

51.

What Are The Contents Of Framework?

Answer»

Framework MEANS COLLECTION of RULES, LIBRARIES is following on dependent on organization.

Framework means collection of rules, libraries is following on dependent on organization.

52.

What Is Use Of Gui Files In Winrunner?

Answer»

guimap:

  • winrunner reads the logical name in the test script and refers to the guimap
  • winrunner matches the logical name with the physical description
  • winrunner uses the physical description to FIND an object with the application

here 2 guimap files we are USING

  1. guimapfile for testmode: winrunner automatically creates guimap FILE for each test
  2. GLOBAL guimap file: a single guimap for the entire application

guimap:

here 2 guimap files we are using

53.

What Is The Use Of Get_lang() Function In Winrunner?

Answer»

Specifically, you can use the get_lang() function to OBTAIN the CURRENT language SETTING.

Specifically, you can use the get_lang() function to obtain the current language setting.

54.

What Is The Purpose Of Obligatory And Optional Properties Of The Objects?

Answer»

For each class, WinRunner learns a set of default properties. Each default property is classified “obligatory” or “optional”.

  1.  An obligatory property is always learned (if it EXISTS).
  2.  An optional property is used only if the obligatory properties do not provide unique identification of an object. These optional properties are stored in a list. WinRunner selects the minimum NUMBER of properties from this list that are NECESSARY to identify the object. It BEGINS with the first property in the list, and CONTINUES, if necessary, to add properties to the description until it obtains unique identification for the object.

For each class, WinRunner learns a set of default properties. Each default property is classified “obligatory” or “optional”.

55.

How Many Scripts Can We Generate For One Project?

Answer»

DEPENDING on PROJECT and APPLICATION many test scripts can be generated. The NUMBER of test scripts is not FIXED.

Depending on project and application many test scripts can be generated. The number of test scripts is not fixed.

56.

What Is A Gui Spy?

Answer»

GUI Spy ENABLES you to view the PROPERTIES of GUI objects in your application. Using the GUI Spy you can see how the MERGE tool identifies a particular object, such as a custom object. You can also USE the GUI Spy to view properties and methods of ActiveX controls.

GUI Spy enables you to view the properties of GUI objects in your application. Using the GUI Spy you can see how the merge tool identifies a particular object, such as a custom object. You can also use the GUI Spy to view properties and methods of ActiveX controls.

57.

What Is The Scripting Process In Winrunner?

Answer»

The testing process in WINRUNNER or In any typical automation tools is

  1.  Learning of objects/Creating Object Repository
  2.  Record the NAVIGATION Flow/Record The USER Action
  3.  Edit Scripts/Placing user CHECK Points
  4.  Debug Scripts/For Syntax Check5. Run Scripts/Executed Scripts6. Analyze Results/Compare EXPECTED, Actual/Analyze Reports

The testing process in winrunner or In any typical automation tools is

58.

What Are The Virtual Objects And How Do You Learn Them?

Answer»
  • You can teach WinRunner to recognize any bitmap in a window as a GUI OBJECT by defining the bitmap as a virtual object.
  • You can create virtual push buttons, RADIO buttons, check buttons, lists, or tables, ACCORDING to the bitmaps behavior in your APPLICATION. If none of these is suitable, you can MAP a virtual object to the general object class.

59.

How Many Types Of Exceptions Are There In Wr?

Answer»

There are 3 TYPES of EXCEPTIONS

There are 3 types of exceptions

60.

Is It Possible To Use Winrunner For Unit Testing?

Answer»
  • Mainly when we want to check the functionality of the product then we go for WINRUNNER.
  • In unit testing mainly we will FOCUS on the structure of the PROGRAM not the functionality. So if we want to check the OUTPUT of SMALL unit then it is ok.
  • Normally unit testing developers only do.

61.

How Many Recording Methods In Winrunner 8.0?

Answer»

There are FOUR recording METHODS in winrunner:

  • Record
  • Passup
  • As OBJECT
  • Ignore

There are four recording methods in winrunner:

62.

Every Time You Run The Winrunner Application It Gives You Different Title Of The Window How Can You Handle This?

Answer»

This can be HANDLE by REGULAR EXPRESSIONS.

This can be handle by regular expressions.

63.

How Do You Handle Activex And Visual Basic Objects?

Answer»

WinRunner PROVIDES with add-ins for ActiveX and VISUAL basic objects. When LOADING WinRunner, select that add-ins and this add-ins PROVIDE with a set of functions to WORK on ActiveX and VB objects.

WinRunner provides with add-ins for ActiveX and Visual basic objects. When loading WinRunner, select that add-ins and this add-ins provide with a set of functions to work on ActiveX and VB objects.

64.

When We Are Testing An Application Through Winrunner How Can We Handle The Exception Manually?

Answer»

EXCEPTION can be of following 5 types:

  1. Crash
  2. Pop Up
  3. TSL
  4. Object
  5. WEB

Exception can be of following 5 types:

65.

How To Recognize The Objects During Runtime In New Build Version (test Suite) Comparing With Old Guimap?

Answer»

If there are any CHANGES in the new BUILD, you can either manually change the expected RESULTS in the expected results FOLDER or you can run the tests in update mode (this will automatically change the expected results).

If there are any changes in the new build, you can either manually change the expected results in the expected results folder or you can run the tests in update mode (this will automatically change the expected results).

66.

What Is The Extension For Winrunner Script?

Answer»

WinRunner uses TSL script (C LIKE script but not C) and it will not have any EXTENSIONS.

WinRunner uses TSL script (C like script but not C) and it will not have any extensions.

67.

Write And Explain Switch Command?

Answer»

A SWITCH statement enables WinRunner to make a decision based on an expression that can have more than two values.
It has the following syntax:
switch (expression )
{
case case_1: statements
case case_2: statements
case case_n: statements
DEFAULT: statement(s)
}

The switch statement consecutively evaluates each case expression until one is found that equals the INITIAL expression. If no case is EQUAL to the expression, then the default statements are executed. The default statements are optional.

A switch statement enables WinRunner to make a decision based on an expression that can have more than two values.
It has the following syntax:
switch (expression )
{
case case_1: statements
case case_2: statements
case case_n: statements
default: statement(s)
}

The switch statement consecutively evaluates each case expression until one is found that equals the initial expression. If no case is equal to the expression, then the default statements are executed. The default statements are optional.

68.

How Do You Load Compiled Module Inside A Compiled Module?

Answer»

load("path of the compile module", 0/1,0/1)
0 - USER Defined Module;
1 - system defined module
0 - Appearance of the path in WinRunner Window menu
1 - HIDE the path

load("path of the compile module", 0/1,0/1)
0 - User Defined Module;
1 - system defined module
0 - Appearance of the path in WinRunner Window menu
1 - Hide the path

69.

What Are The Stages In Winrunner?

Answer»
  1. CREATE GUI map file
  2. Prepare the SCRIPT by recording or by TSL
  3. DEBUGGING the TEST
  4. Running the Script
  5. Examining

70.

How Do You Write Messages To The Report?

Answer»

To write message to a REPORT we USE the report_msg STATEMENT
Syntax: report_msg (message);

To write message to a report we use the report_msg statement
Syntax: report_msg (message);

71.

What Is A Build?

Answer»
  • Build is nothing but a Completed INTEGRATED System. Whole System.
  • We use to give the build numbers after completing the cycle 1 system testing.
  • Developer’s fixes for the bugs in the cycle one after fixing he will give the Build1 to the modified code.
  • Here we are using the build NUMBER for identifying the modified code from the PREVIOUS for testing cycle2.

72.

How Do We Invoke Winrunner From Command Prompt?

Answer»

Go to the command prompt and go through the following path(DEPENDS upon the winrunner INSTALLED path)
"C:Program FilesMercury InteractiveWinRunnerarch"
and TYPE "wrun.exe" the winrunner should OPENED.

Go to the command prompt and go through the following path(Depends upon the winrunner installed path)
"C:Program FilesMercury InteractiveWinRunnerarch"
and type "wrun.exe" the winrunner should opened.

73.

Which Type Of Gui File Is Preferable?

Answer»

If you are new to winrunner then GUI map FILE PER test is preferable and for advanced USERS Global GUI map file is preferred.

If you are new to winrunner then GUI map file per test is preferable and for advanced users Global GUI map file is preferred.

74.

How Do You Connect To Test Director From Wr?

Answer»

In tools menu Testdirector connection available ,First click connect in SERVER the it is connected to your server after click connect for your testdirector there first SELECT the project NAME after select user name& PASSWORD then press connect automatically it is connected to Test DIRECTOR.

In tools menu Testdirector connection available ,First click connect in server the it is connected to your server after click connect for your testdirector there first select the project name after select user name& password then press connect automatically it is connected to Test Director.

75.

What Is The Difference Between Writing A Function And Writing A Script?

Answer»
  • A function goes into a compiled MODULE, a script does not.
  • A function FOLLOWS strict c SYNTAX. For INSTANCE, you have to declare all variables created and used in the function. In a script you do not.

76.

How To Make Comments In Gui Map File?

Answer»

It’s not possible to MAKE comments in GUI MAP FILE, but its possible to make comments in your script, the one which you have put is for commenting in script(CTRL + T).

It’s not possible to make comments in GUI map file, but its possible to make comments in your script, the one which you have put is for commenting in script(ctrl + T).

77.

What Is Virtual Wizard In Winrunner?

Answer»

If WIN Runner is not able to identify a object as a specific object , we need to tell to WinRunner about that object whether it is a button or Text box. For that Virtual Wizard is USEFUL. From the next time on words winRunner will identify as a specific object as we selected in virtual object wizard.
Sometimes WR can’t identify the TYPE of object if the objects are in grunp mode which is CALLED nonstandard objects. Virtual Object Wizard can be USED to convert those nonstandard objects to standard objects to be identified by WR.

If Win Runner is not able to identify a object as a specific object , we need to tell to WinRunner about that object whether it is a button or Text box. For that Virtual Wizard is useful. From the next time on words winRunner will identify as a specific object as we selected in virtual object wizard.
Sometimes WR can’t identify the type of object if the objects are in grunp mode which is called nonstandard objects. Virtual Object Wizard can be used to convert those nonstandard objects to standard objects to be identified by WR.

78.

What Is A Watch List?

Answer»

watch list can be used in WR to be ABLE to view the actual values of variables while the test is running. for this we have to select Addwatch under DEBUG MENU. then declare all the variables for which you want to know the value while the script is executing. Automatically winrunner will show a watch list in the left side of script with all the declared variables. While we will execute the script it will show all the values assigned to each variables in the watchlist. This is type of output report but the advantage of using this is we can see it while we are running the script.

watch list can be used in WR to be able to view the actual values of variables while the test is running. for this we have to select Addwatch under debug menu. then declare all the variables for which you want to know the value while the script is executing. Automatically winrunner will show a watch list in the left side of script with all the declared variables. While we will execute the script it will show all the values assigned to each variables in the watchlist. This is type of output report but the advantage of using this is we can see it while we are running the script.

79.

How Do You Record A Data Driven Test?

Answer»

We can CREATE a data-driven testing using data from a FLAT file, data table or a database.

  1. 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.
  2. 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.
  3. Database: we store test data in the database and access these data using ‘db_*’ functions.

We can create a data-driven testing using data from a flat file, data table or a database.

80.

How Do You Parameterize Database Check Points?

Answer»

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.

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.

81.

What Is Tl Step? How Do You Use It In Winrunner?

Answer»

tl_step is a function with the help of which we can MENTION about the PASS or fail STATUS of a particular step or point in the test script.

The syntax is tl_step(step_name,Description,0/1)

  • step_name: The name that we want to GET appeared in the Test Result.
  • Description: The description of the step name.
  • 0/1: It tells whether the step gets passed or failed. 0 is used when the test step gets passed and 1 is used when it fails.

tl_step is a function with the help of which we can mention about the pass or fail status of a particular step or point in the test script.

The syntax is tl_step(step_name,Description,0/1)

82.

How Do You Declare Arrays?

Answer»

To declare arrays there are two options. They are as follows:

  1. Array of primitive
  2. Array of reference.

Array of primitive: int[] test= new int[3]
Array of reference: threads[] thread=new threads[5]

we had mentioned the SIZE of array on either declarations because JVM cannot ALLOCATE memory for objects of arrays until we give the size of an array.

To declare arrays there are two options. They are as follows:

Array of primitive: int[] test= new int[3]
Array of reference: threads[] thread=new threads[5]

we had mentioned the size of array on either declarations because JVM cannot allocate memory for objects of arrays until we give the size of an array.

83.

Write And Explain Compile Module?

Answer»

Complied module is libraries of frequently-used FUNCTION. We can save the user-defined function in COMPILED module and then call them from our TEST SCRIPT.

Complied module is libraries of frequently-used function. We can save the user-defined function in compiled module and then call them from our test script.

84.

What Is Mainframe Testing And What Is Java Testing?

Answer»
  • TESTING mainframe applications is called mainframe testing and testing java applications is called java testing.
  • Testing can be PERFORMED on any TYPE of applications. It depends on the type of PROJECT you are working with.

85.

Can You Tell Me The Bug Life Cycle?

Answer»
  • New-when new bug has been found
  • Open-when DEVELOPERS are still working on the bug
  • fixed- when developer has fixed the bug he assigns this status
  • Closed-After retesting the bug and when there are no more issues QA assigns it as Closed status
  • Reopen- if the defect is not SATISFIED or defect is not fixed
  • Reject-developer may reject the defect with proper reasons ATTACHED if he THINKS that this is not a defect

86.

Difference Between Setwindow And Winactivate?

Answer»
  • set_window is used to MAKE the cursor focus to go to the WINDOW
  • win_activate is used to ACTIVATE the window.

first if you want to use some window you will activate it, so for that we use win_activate.but even then your cursor will not be on the window, so for making to MOVE your cursor to that window we use set_window("window NAME", time);

first if you want to use some window you will activate it, so for that we use win_activate.but even then your cursor will not be on the window, so for making to move your cursor to that window we use set_window("window name", time);

87.

What Is Object Repository?

Answer»
  • OBJECT Repository means not a collection of objects.
  • It's a common repository for all the people (TESTING, Developers) for seeing all the data in single Login.
  • For example QA wants to see 5 TESTERS works then he goes to each person login and see the data. It’s very difficult job. For this We can USE Object Repository.

88.

What Is The Purpose Of Gui Map Configuration?

Answer»

GUI MAP configuration is used to map a custom OBJECT to a standard object.
GUI Map config is used to make the winrunner recognize the NON standard objects...so by using this we can custom the non standard objects to standard objects...by GIVING them logical name, class, physical descriptions of that objects

GUI Map configuration is used to map a custom object to a standard object.
GUI Map config is used to make the winrunner recognize the non standard objects...so by using this we can custom the non standard objects to standard objects...by giving them logical name, class, physical descriptions of that objects

89.

Have You Used Winrunner In Your Project?

Answer»

Yes, I have been WinRunner for creating AUTOMATES scripts for GUI, functional and REGRESSION TESTING of the AUT.

Yes, I have been WinRunner for creating automates scripts for GUI, functional and regression testing of the AUT.

90.

What Is The Silence Mood In Winrunner?

Answer»

Both batch test and SILENT mode are completely different WHENEVER you select a option silent mode option in WIN Runner, While EXECUTING the test scripts it will not give any error (If it is problem in test script or a checkpoint failure whatever it may be) Finally in result WINDOW it will explain all the problems.

Both batch test and silent mode are completely different Whenever you select a option silent mode option in Win Runner, While executing the test scripts it will not give any error (If it is problem in test script or a checkpoint failure whatever it may be) Finally in result window it will explain all the problems.

91.

How Do You Load Default Comments Into Your New Script Like Ide's?

Answer»

By RECORDING the SCRIPT and by STARTING the script by #.

By recording the script and by starting the script by #.

92.

What Is A Command To Invoke Application?

Answer»

Invoke_application is the FUNCTION USED to INVOKE an application.
Syntax: invoke_application(file, command_option, working_dir, SHOW);

Invoke_application is the function used to invoke an application.
Syntax: invoke_application(file, command_option, working_dir, SHOW);

93.

What Is Contained In The Gui Map?

Answer»

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

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

94.

Can We Have Same Logical Name For More Than One Object In Gui Map File?

Answer»

yes SOMETIMES gui map file contains same logical name for more than ONE object(ex if there 2 ok buttons in the SCREEN) During recording the test it wouldn't CREATE any problems but at the time of running the test the first objects will be operated TWICE. so you need to configure the gui map file by adding mswid as a optional property in order to identify both the objects.

yes sometimes gui map file contains same logical name for more than one object(ex if there 2 ok buttons in the screen) During recording the test it wouldn't create any problems but at the time of running the test the first objects will be operated twice. so you need to configure the gui map file by adding mswid as a optional property in order to identify both the objects.

95.

What Is The Use Of Framework?

Answer»

The Template test provides a basic framework of an automated test that navigates through your application. It opens and closes each WINDOW, LEAVING SPACE for you to ADD code (through recording or PROGRAMMING) that checks the window.
WinRunner, Mercury Interactive and the Mercury Interactive logo are registered trademarks or trademarks of Mercury Interactive Corporation in the United States and/or other countries.

The Template test provides a basic framework of an automated test that navigates through your application. It opens and closes each window, leaving space for you to add code (through recording or programming) that checks the window.
WinRunner, Mercury Interactive and the Mercury Interactive logo are registered trademarks or trademarks of Mercury Interactive Corporation in the United States and/or other countries.

96.

How Do You Modify The Expected Results Of A Gui Checkpoint?

Answer»

We can MODIFY the expected results of a GUI checkpoint be RUNNING the script containing the checkpoint in the update MODE.

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

97.

What Is The Dynamic Checkpoint In Winrunner?

Answer»
  • WinRunner doesn't have dynamic CHECK POINT.
  • You can use regular expression to CAPTURE the dynamic value.

98.

How To Load A Function, If The Module Is Not In The Search Path?

Answer»

USE LOAD("PATH for the FUNCTION", 0,0)

Use Load("path for the function", 0,0)

99.

Can You Tell Me About The Functions That Are Not Supported By Virtual Objects?

Answer»

Win runner is a TOOL which is used to create automated test scripts. winrunner doesn’t support all the technologies for EG-: .Net ,Oracle APPS, so when some of the objects in the build are designed with the technologies that winrunner doesn’t support ,it doesn’t recognize those objects while recording .In order to FORCEFULLY recognize those objects we go for virtual RECOGNIZER in the tool. When the particular OBJECT is focused under this virtual option, then tool generates the script without any error.

Win runner is a tool which is used to create automated test scripts. winrunner doesn’t support all the technologies for EG-: .Net ,Oracle apps, so when some of the objects in the build are designed with the technologies that winrunner doesn’t support ,it doesn’t recognize those objects while recording .In order to forcefully recognize those objects we go for virtual recognizer in the tool. When the particular object is focused under this virtual option, then tool generates the script without any error.

100.

During Debugging How Do You Monitor The Value Of The Variables?

Answer»

During debug if you want to MONITOR the value of the VARIABLES you can USE debug-->ADD watch->declare all the variables you want to monitor.

During debug if you want to monitor the value of the variables you can use debug-->Add watch->declare all the variables you want to monitor.