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.

1.

User-defined Function That Would Write To The Print-log As Well As Write To A File?

Answer»

ANSWER : FUNCTION writeLog(in strMessage) { file_open("C:FILEPATH..."); file_printf(strMessage); PRINTF(strMessage); }

2.

What Is The Verification Bitmap Or Gui Checkpoints Are Used For?

Answer»

DO NOT use BitMap or GUI Checkpoints for DYNAMIC VERIFICATION. These checkpoints are PURELY for static VERIFICATIONS. There are of course, work-around, but mostly not worth the EFFORT.

DO NOT use BitMap or GUI Checkpoints for dynamic verification. These checkpoints are purely for static verifications. There are of course, work-around, but mostly not worth the effort.

3.

Why You Use Reload Function?

Answer»

The reload function removes a compiled module from memory, and then loads it again. In effect, reload COMBINES the functions of unload and LOAD.
When you reload a module you can define the module TYPE. The compiled module types are SYSTEM and user.

The reload function removes a compiled module from memory, and then loads it again. In effect, reload combines the functions of unload and load.
When you reload a module you can define the module type. The compiled module types are system and user.

4.

How Do Run The Test Scripts?

Answer»

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.

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.

5.

When Will You Go To Automation?

Answer»

These are the POINTS for choosing automation

  • The PROJECT should be LONG term
  • The Application should be Stable
  • If the Project face more regression TEST, then automation will be helpful, by ramping down the RESOURCES.

These are the Points for choosing automation

6.

How Do You Handle Object Exceptions?

Answer»

During TESTING, unexpected changes can occur to GUI objects in the application you are testing. These changes are often SUBTLE but they can disrupt the test RUN and distort results.
You could use exception HANDLING to detect a change in property of the GUI object during the test run, and to recover test execution by calling a handler FUNCTION and continue with the test execution

During testing, unexpected changes can occur to GUI objects in the application you are testing. These changes are often subtle but they can disrupt the test run and distort results.
You could use exception handling to detect a change in property of the GUI object during the test run, and to recover test execution by calling a handler function and continue with the test execution

7.

How Do You Comment Your Script?

Answer»

We COMMENT a SCRIPT or LINE of script by INSERTING a ‘#’ at the BEGINNING of the line.

We comment a script or line of script by inserting a ‘#’ at the beginning of the line.

8.

What Is Recovery Scenario?

Answer»

Recovery SCENARIO GIVES you an option to TAKE some action for recovering from a fatal error in the test.

Recovery scenario gives you an option to take some action for recovering from a fatal error in the test.

9.

How Can We Get The Day Of The Week For Specific Date In Winrunner? Is It Possible?

Answer»

Time_str([EXPRESSION]) FUNCTION will give the day of the WEEK for specific date in WINRUNNER.

Time_str([expression]) function will give the day of the week for specific date in winrunner.

10.

How Do You Maintain The Document Information Of The Test Scripts?

Answer»

Before creating a test, you can document information about the test in the General and DESCRIPTION tabs of the Test Properties dialog box. You can enter the name of the test author, the type of functionality tested, a DETAILED description of the test, and a REFERENCE to the relevant functional SPECIFICATIONS document.

Before creating a test, you can document information about the test in the General and Description tabs of the Test Properties dialog box. You can enter the name of the test author, the type of functionality tested, a detailed description of the test, and a reference to the relevant functional specifications document.

11.

Where Do You Set Up The Search Path For A Called Test?

Answer»

The SEARCH path determines the DIRECTORIES that WinRunner will search for a CALLED TEST.

The search path determines the directories that WinRunner will search for a called test.

12.

What Is The Exact Difference Between Global And Gui Map File Per Test?

Answer»

Global GUImap file lode in winrunner at the TIME of winrunner invoked. global GUI contains FILES which will be use overall application TESTING. GUI map files use as per your requirement. per SCRIPT or you can ALSO use two different gui files in same split.

Global GUImap file lode in winrunner at the time of winrunner invoked. global GUI contains files which will be use overall application testing. GUI map files use as per your requirement. per script or you can also use two different gui files in same split.

13.

How Do You Edit Checklist File And When Do You Need To Edit The Checklist File?

Answer»

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.

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.

14.

Can We Check Spell Check Using Winrunner If Yes? How?

Answer»

We can CHECK the spellings in winrunner using GUIcheckpoints.
CREATE->GUI CHECKPOINT

We can check the spellings in winrunner using GUIcheckpoints.
create->GUI checkpoint

15.

What Are The Filters In Winrunner?

Answer»

GUI map EDITOR has a Filter Option. This PROVIDES for filtering with 3 different types of options.

  1. Filter by LOGICAL Name: GUI Map editor displays only objects with the specified Logical name
  2. Filter by physical DESCRIPTION: GUI Map editor displays only objects that match the physical description Use any substring belonging to the physical description.
  3. Filter by Class:GUI Map editor displays objects of the specified class.

GUI map editor has a Filter Option. This provides for filtering with 3 different types of options.

16.

What Is Class Mapping In Winrunner ?

Answer»

CLASS mapping is nothing but, mapping CUSTOM objects with STANDARD objects.

Class mapping is nothing but, mapping custom objects with standard objects.

17.

What Is Database Checkpoint?

Answer»

Database check Points are used to check the data base if you are updating(adding/deleting/editing) the data from the frontend and in this case you NEED to check all these operations you have done from front end they are updating in the BACK end database or not for this purpose exactly we USE database check points in winrunner there are 3 types of database check points are there:

  1.  Default check : It selects the Entire data table as database.
  2.  Custom Check : It will Counts total No. of rows and COLUMNS.
  3.  runtime : it will check in the run time.

 

Database check Points are used to check the data base if you are updating(adding/deleting/editing) the data from the frontend and in this case you need to check all these operations you have done from front end they are updating in the back end database or not for this purpose exactly we use database check points in winrunner there are 3 types of database check points are there:

 

18.

How Do You Create Odbc Query?

Answer»

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.

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.

19.

What Is The Difference Between Main Test And Compile Module?

Answer»

MAIN TEST: This is EXECUTABLE
COMPILE MODULE: This is not executable

Main Test: This is executable
Compile Module: This is not executable

20.

How The Tools Script Execution Speed Is Made To Match With That Of Aut?

Answer»

This is where the SYNCHRONIZATION checkpoints come handy.
You could SYNCHRONIZE the application with tool in two ways:

  1.  By WAITING for a certain time PERIOD
  2.  By waiting for certain things to happens like waiting for appropriate status message to appear etc.

This is where the synchronization checkpoints come handy.
You could synchronize the application with tool in two ways:

21.

What Type Of Variables Can Be Used With In The Tsl Function?

Answer»

auto and static variables.

auto: An auto VARIABLE can be declared only within a function and is local to that function. It exists only for as long as the function is running. A new COPY of the variable is created each TIME the function is called.

static: A static variable is local to the function, test, or compiled MODULE in which it is declared. The variable retains its value until the test is terminated by an Abort command. This variable is initialized each time the definition of the function is executed.

auto and static variables.

auto: An auto variable can be declared only within a function and is local to that function. It exists only for as long as the function is running. A new copy of the variable is created each time the function is called.

static: A static variable is local to the function, test, or compiled module in which it is declared. The variable retains its value until the test is terminated by an Abort command. This variable is initialized each time the definition of the function is executed.

22.

How To Execute The Tsl Script Written In Notepad(flat File)?

Answer»

Yes, There is no command in Winrunner for executing the script in notepad but we can call the data from notepad USING FILE functions. One more THING is there is a command for invoking the notepad APPLICATION but there is no command to run the TSL statements in that notepad from winrunner.

Yes, There is no command in Winrunner for executing the script in notepad but we can call the data from notepad using file functions. One more thing is there is a command for invoking the notepad application but there is no command to run the TSL statements in that notepad from winrunner.

23.

What Is Addwatch Option? How To Use It? Where ?

Answer»

Addwatch is used for the purpose of MONITORING the VARIABLE. You can ADD variables, expressions and ARRAYS to the watch list using the add watch dialog box.

Addwatch is used for the purpose of monitoring the variable. You can add variables, expressions and arrays to the watch list using the add watch dialog box.

24.

What Does In, Out And Inout Parameters Means?

Answer»
  • in: A parameter that is assigned a VALUE from outside the function.
  • out: A parameter that is assigned a value from INSIDE the function.
  • INOUT: A parameter that can be assigned a value from outside or inside the function.

25.

What Are The Data Types Can Be Used In Winrunner7.5?

Answer»

WINRUNNER does not SUPPORT data types INSTEAD it has class specifies Auto, Static, Public, EXTERN.

winrunner does not support data types instead it has class specifies Auto, Static, Public, Extern.

26.

How To Iterate Through Each Worksheet Of An Excel File In Win Runner Tsl?

Answer»
  1.  Write code using ONE set of DATA or one complete cycle
  2.  go for tools and SELECT data driven APPROACH.
  3.  Their you will get a WINDOW asking existing database or create new go for existing and select exel sheet
  4.  press next it will ask which field to be replaced with which do it and complete

27.

How Do Perform Debugging Of The Scripts?

Answer»

For debugging, execute the SCRIPT in the debug mode. We can also debug script USING the Step, Step Into, Step out functionalities PROVIDED by the WINRUNNER.

For debugging, execute the script in the debug mode. We can also debug script using the Step, Step Into, Step out functionalities provided by the WinRunner.

28.

How You Will Make Changes In Thousands Of Automated Scripts If Interface And Functionality Of Application Is Changing?

Answer»

If there are THOUSANDS of scripts and a CR forces all the scripts to MODIFY accordingly, it's always better to CREATE the GUI files again and record the scenarios, where the CRS affects.

If there are thousands of scripts and a CR forces all the scripts to modify accordingly, it's always better to create the GUI files again and record the scenarios, where the CRs affects.

29.

Is It Possible In Winrunner To Handle Result Dir Path Through Winrunner Script?

Answer»

yes it’s POSSIBLE to HANDLE a results directory in WINRUNNER.

yes it’s possible to handle a results directory in winrunner.

30.

In A Situation When Obligatory And Optional Both The Properties Cannot Uniquely Identify An Object What Method Winrunner Applies?

Answer»

In cases where the obligatory and optional properties do not uniquely identify an object, WinRunner USES a selector to DIFFERENTIATE between them. Two types of selectors are available:

  1.  A location selector uses the SPATIAL position of objects.
  2.  An INDEX selector uses a UNIQUE number to identify the object in a window.

In cases where the obligatory and optional properties do not uniquely identify an object, WinRunner uses a selector to differentiate between them. Two types of selectors are available:

31.

What Is The Use Of Function Generator?

Answer»
  • Function Generator: It is the library of TSL functions.Some testers USES this option to detect unknown TSL Statements.
  • The navigation is as follows: Go to create ----> Insert function ----> From Function Generator ----> Select Category ----> Select function NAME depending on Description ----> Fill Arguments ----> CLICK paste.
  • In this manner the unknown TSL Functions can be generated through this navigation.

32.

* Preceding L1 Of A Saved Gui Map File Indicates?

Answer»

* preceding INDICATES that the CURING GUI file in L1 needs to be SAVED means some changes have been done to the file and those changes have not been saved YET.

* preceding indicates that the curing GUI file in L1 needs to be saved means some changes have been done to the file and those changes have not been saved yet.

33.

What Is The Difference Between Simple Recovery And Compound Recovery Scenario?

Answer»

The DIFFERENCE between SIMPLE recovery and COMPOUND recovery is that in compound recovery we can give POST recovery operations.

The difference between Simple recovery and compound recovery is that in compound recovery we can give Post recovery operations.

34.

What Are The Different Types Of Frameworks Involved In Winrunner?

Answer»

There are three frameworks in WINRUNNER like

  1. DATA Driven FRAMEWORK
  2. KEYBOARD framework
  3. Hybid framework

There are three frameworks in WinRunner like

35.

What Do You Verify With The Sync Point For Screen Area And What Command It Generates, Explain Syntax?

Answer»

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

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

36.

What Are The Exceptions In Winrunner? Explain The Exceptions With An Example

Answer»

For Desktop APPLICATIONS WinRunner SUPPORTS 3 Types of Exceptions i.e.,

  1. TSL--> Record TIME Errors
  2. Object-->Expected And ACTUAL object is same
  3. Pop Up-->Unwanted Windows Errors

For Desktop Applications WinRunner Supports 3 Types of Exceptions i.e.,

37.

How To Compile A Module In Winrunner?

Answer»

Go to File-> Test PROPERTIES->GENERAL, SELECT Compiled Module from the Test type list box and click Apply then OK Button.

Go to File-> Test Properties->General, Select Compiled Module from the Test type list box and click Apply then OK Button.

38.

What Are Data Driven Tests?

Answer»

When you test your APPLICATION, you may WANT to check how it PERFORMS the same operations with MULTIPLE sets of data.

When you test your application, you may want to check how it performs the same operations with multiple sets of data.

39.

How Do You Make The Configuration And Mappings Permanent?

Answer»

The mapping and the configuration you set are valid only for the CURRENT WinRunner session. To MAKE the mapping and the configuration PERMANENT, you MUST add configuration statements to your startup test script.

The mapping and the configuration you set are valid only for the current WinRunner session. To make the mapping and the configuration permanent, you must add configuration statements to your startup test script.

40.

What Are The Additional Features Added In Winrunner 8.0?

Answer»

The additional features winrunner 8.0 supports

  1.  SUPPORT for Netscape 7.x
  2.  Support for POWER builder
  3.  Advance function VIEWER window
  4.  More PRINTING options
  5.  support for windows 2003

The additional features winrunner 8.0 supports

41.

What Tests Do The Testers Conduct After Receiving Of Requirements?

Answer»

First they will CONDUCT

First they will conduct

42.

Difference Between Set_window And Win_activate?

Answer»

SET _window is used to set a particular window, where if we want to work with the window that window has to be changed from RESET STATE to set state.

Win_active is used LIKE a window is already OPENED to activate the window which is on the status bar.

Set _window is used to set a particular window, where if we want to work with the window that window has to be changed from reset state to set state.

Win_active is used like a window is already opened to activate the window which is on the status bar.

43.

What Function You Use For Gui Map On Winrunner?

Answer»

GUI map is used to RECOGNIZE OBJECT's in our APPLICATION.

GUI map is used to recognize object's in our application.

44.

How Do You Edit The Expected Value Of An Object?

Answer»

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.

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.

45.

Is It Possible To Test An Pocket Pc Application Using Winrunner? Which Is Based On Visual Studio 2005 And Dot Net Compact Frame Work?

Answer»

The PROCESS to test the Pocket PC as follows:

  1.  Go through the specifications well and understand it.
  2.  As we are BLACKBOX testers and WinRunner helps US in doing Functional and Regression Testing.
  3.  Understand the FUNCTIONALITY of the application.
  4.  Start generating script for checking the BEHAVIOR of the application.

The process to test the Pocket PC as follows:

46.

What Is Contained In The Test Scripts?

Answer»

It CONTAINS the statement in Mercury INTERACTIVE 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 WinRunners VISUAL programming TOOL, the Function Generator.

It contains the statement in Mercury Interactive 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 WinRunners visual programming tool, the Function Generator.

47.

What Does Entry Criteria And Exit Criteria In The Test Plan Means?

Answer»

Entry CRITERIA: sign off proposal DOCUMENT by the client.
Exit criteria: sign off of TEST PLAN document by the client (test STRATEGY document).

Entry criteria: sign off proposal document by the client.
Exit criteria: sign off of test plan document by the client (test strategy document).

48.

How Do You Parse Xml? What Tool Do You Use?

Answer»

WINRUNNER is not support to XML. QTP is supported to XML. In QTP TWO TYPES of checkpoints are there one is web Xml checkpoint, DOCUMENT checkpoint.

Winrunner is not support to XML. QTP is supported to XML. In QTP two types of checkpoints are there one is web Xml checkpoint, document checkpoint.

49.

How We Have To Use Regular Expressions In Winrunner?

Answer»

In winrunner we can use REGULAR expression by doing UPDATION in the GUI MAP EDITOR by ADDING *, $, etc..

In winrunner we can use regular expression by doing updation in the GUI MAP EDITOR by adding *, $, etc..

50.

How Do You Handle Tsl Exceptions?

Answer»
  • A TSL exception enables you to detect and respond to a specific error code RETURNED during TEST execution.
  •  Suppose you are running a batch test on an unstable version of your application. If your application crashes, you want WinRunner to recover test execution. A TSL exception can instruct WinRunner to recover test execution by exiting the current test, restarting the application, and continuing with the next test in the batch.
  •  The handler FUNCTION is responsible for recovering test execution. When WinRunner detects a specific error code, it calls the handler function. You implement this function to respond to the unexpected error in the WAY that meets your specific testing needs.
  •  Once you have defined the exception, WinRunner activates handling and adds the exception to the list of default TSL exceptions in the Exceptions DIALOG box. Default TSL exceptions are defined by the XR_EXCP_TSL configuration parameter in the wrun.ini configuration file.