Top 100+ Winrunner Interview Questions And Answers
Question 1. How You Used Winrunner In Your Project?
Answer :
Yes, I have been WinRunner for developing automates scripts for GUI, purposeful and regression checking out of the AUT.
Question 2. Explain Winrunner Testing Process?
Answer :
WinRunner testing process includes six principal ranges:
i. Create GUI Map File so that WinRunner can recognize the GUI items in the utility being tested
ii. Create check scripts with the aid of recording, programming, or a mixture of both. While recording tests, insert checkpoints wherein you want to check the response of the utility being tested.
Iii. Debug Test: run checks in Debug mode to ensure they run easily
iv. Run Tests: run assessments in Verify mode to check your software.
V. View Results: determines the success or failure of the tests.
Vi. Report Defects: If a test run fails because of a illness within the application being tested, you can record statistics approximately the disorder directly from the Test Results window.
SILK TEST Interview Questions
Question 3. What In Contained In The Gui Map?
Answer :
WinRunner shops information it learns about a window or item in a GUI Map. When WinRunner runs a take a look at, it uses the GUI map to find gadgets. It reads an item’s description within the GUI map after which appears for an object with the equal residences in the utility being examined. Each of those gadgets inside the GUI Map record can be having a logical call and a physical description. There are 2 styles of GUI Map files.
I. Global GUI Map record: a unmarried GUI Map file for the complete software
ii. GUI Map File according to Test: WinRunner mechanically creates a GUI Map file for each take a look at created.
Question four. How Does Winrunner Recognize Objects On The Application?
Answer :
WinRunner makes use of the GUI Map report to understand gadgets on the software. When WinRunner runs a test, it uses the GUI map to discover items. It reads an item’s description inside the GUI map after which looks for an object with the same residences inside the application being tested.
LoadRunner Tutorial
Question five. Have You Created Test Scripts And What Is Contained In The Test Scripts?
Answer :
Yes I even have created check scripts. It contains the announcement in Mercury Interactive’s Test Script Language (TSL). These statements appear as a take a look at script in a check window. You can then beautify your recorded test script, both by typing in extra TSL capabilities and programming factors or via the use of WinRunner’s visual programming device, the Function Generator.
LoadRunner Interview Questions
Question 6. How Does Winrunner Evaluates Test Results?
Answer :
Following every take a look at run, WinRunner shows the effects in a record. The file information all the predominant activities that happened throughout the run, inclusive of checkpoints, blunders messages, machine messages, or person messages. If mismatches are detected at checkpoints all through the check run, you can view the expected consequences and the actual effects from the Test Results window.
Question 7. Have You Performed Debugging Of The Scripts?
Answer :
Yes, I even have achieved debugging of scripts. We can debug the script by way of executing the script inside the debug mode. We can also debug script using the Step, Step Into, Step out functionalities supplied by using the WinRunner.
WinRunner Tutorial HTML Interview Questions
Question eight. How Do You Run Your Test Scripts?
Answer :
We run tests in Verify mode to test your application. Each time WinRunner encounters a checkpoint within the test script, it compares the current statistics of the software being examined to the anticipated statistics captured earlier. If any mismatches are observed, WinRunner captures them as actual effects.
Question 9. How Do You Analyze Results And Report The Defects?
Answer :
Following every check run, WinRunner presentations the outcomes in a file. The record info all the primary activities that came about all through the run, which includes checkpoints, errors messages, device messages, or user messages. If mismatches are detected at checkpoints throughout the take a look at run, you may view the anticipated consequences and the real effects from the Test Results window. If a test run fails because of a disorder in the software being tested, you can record information approximately the illness at once from the Test Results window. This data is sent thru e mail to the exceptional assurance manager, who tracks the illness until it's far constant.
QTP Interview Questions
Question 10. What Is The Use Of Test Director Software?
Answer :
TestDirector is Mercury Interactive’s software program take a look at management device. It helps exceptional warranty employees plan and arrange the checking out technique. With TestDirector you can create a database of guide and automatic tests, construct test cycles, run exams, and report and tune defects. You can also create reports and graphs to help overview the development of planning assessments, strolling exams, and monitoring defects before a software release.
HTML Tutorial
Question eleven. How You Integrated Your Automated Scripts From Testdirector?
Answer :
When you work with WinRunner, you can pick out to store your assessments directly in your TestDirector database or at the same time as growing a test case in the TestDirector we are able to specify whether the script in automatic or manual. And if it is automated script then TestDirector will build a skeleton for the script that can be later changed into one which can be used to test the AUT.
Manual Testing Interview Questions
Question 12. What Are The Different Modes Of Recording?
Answer :
There are sort of recording in WinRunner.
I. Context Sensitive recording records the operations you carry out on your application by using figuring out Graphical User Interface (GUI) gadgets.
Ii. Analog recording information keyboard input, mouse clicks, and the right x- and y-coordinates traveled by using the mouse pointer throughout the screen.
SILK TEST Interview Questions
Question thirteen. What Is The Purpose Of Loading Winrunner Add-ins?
Answer :
Add-Ins are utilized in WinRunner to load features unique to the particular add-in to the memory. While creating a script simplest those functions within the upload-in decided on will be indexed inside the function generator and while executing the script best the ones capabilities in the loaded add-in can be performed else WinRunner will provide an blunders message saying it does not apprehend the function.
QTP Tutorial
Question 14. What Are The Reasons That Winrunner Fails To Identify An Object On The Gui?
Answer :
WinRunner fails to identify an item in a GUI due to various motives.
I. The item is not a preferred home windows object.
Ii. If the browser used isn't always like minded with the WinRunner version, GUI Map Editor will no longer be capable of examine any of the items displayed within the browser window.
Question 15. What Do You Mean By The Logical Name Of The Object.
Answer :
An item’s logical name is decided through its class. In maximum instances, the logical call is the label that looks on an object.
OpenStack Interview Questions
Question sixteen. If The Object Does Not Have A Name Then What Will Be The Logical Name?
Answer :
If the item does now not have a name then the logical name may be the attached text.
Question 17. What Is The Different Between Gui Map And Gui Map Files?
Answer :
The GUI map is truely the sum of one or more GUI map documents. There are two modes for organizing GUI map documents.
I. Global GUI Map record: a unmarried GUI Map report for the entire utility
ii. GUI Map File in step with Test: WinRunner mechanically creates a GUI Map record for every take a look at created. GUI Map report is a file which contains the home windows and the gadgets learned through the WinRunner with its logical call and their bodily description.
Automation Testing Interview Questions
Question 18. How Do You View The Contents Of The Gui Map?
Answer :
GUI Map editor presentations the content material of a GUI Map. We can invoke GUI Map Editor from the Tools Menu in WinRunner. The GUI Map Editor shows the numerous GUI Map documents created and the home windows and items discovered in to them with their logical name and physical description.
LoadRunner Interview Questions
Question 19. When You Create Gui Map Do You Record All The Objects Of Specific Objects?
Answer :
If we are learning a window then WinRunner robotically learns all of the items within the window else we will we figuring out those object, which are to be discovered in a window, when you consider that we will be working with most effective the ones objects at the same time as growing scripts.
Question 20. What Is The Purpose Of Set_window Command?
Answer :
Set_Window command sets the point of interest to the specified window. We use this command to set the focus to the specified window earlier than executing exams on a selected window.
Syntax: set_window(, time); The logical name is the logical call of the window and time is the time the execution has to wait until it gets the given window into consciousness.
API checking out Interview Questions
Question 21. How Do You Load Gui Map?
Answer :
We can load a GUI Map by way of the usage of the GUI_load command.
Syntax: GUI_load();
Question 22. What Is The Disadvantage Of Loading The Gui Maps Through Start Up Scripts?
Answer :
1.If we're the usage of a single GUI Map document for the complete AUT then the reminiscence used by the GUI Map may be much high.
2.If there is any alternate inside the object being learned then WinRunner will now not be able to understand the item, as it is not inside the GUI Map record loaded within the memory. So we can should learn the object again and replace the GUI File and reload it.
Question 23. How Do You Unload The Gui Map?
Answer :
We can use GUI_close to sell off a particular GUI Map file in any other case we name use GUI_close_all command to sell off all of the GUI Map documents loaded inside the reminiscence.
Syntax: GUI_close(); or GUI_close_all;
Rational robotic Interview Questions
Question 24. What Actually Happens When You Load Gui Map?
Answer :
When we load a GUI Map report, the information approximately the home windows and the gadgets with their logical names and bodily description are loaded into reminiscence. So when the WinRunner executes a script on a specific window, it is able to pick out the items the use of this facts loaded within the memory.
HTML Interview Questions
Question 25. What Is The Purpose Of The Temp Gui Map File?
Answer :
While recording a script, WinRunner learns gadgets and home windows by itself. This is simply saved into the brief GUI Map report. We can specify whether we should load this transient GUI Map report have to be loaded each time inside the General Options.
Question 26. What Is The Extension Of Gui Map File?
Answer :
The extension for a GUI Map file is “.Gui”.
Selenium IDE Interview Questions
Question 27. How Do You Find An Object In An Gui Map.
Answer :
The GUI Map Editor is been furnished with a Find and Show Buttons.
I. To discover a selected object inside the GUI Map file within the software, pick the item and click on the Show window. This blinks the chosen object.
Ii. To locate a specific object in a GUI Map file click the Find button, which offers the choice to pick the item. When the item is selected, if the item has been found out to the GUI Map record it is going to be centered in the GUI Map document.
QTP Interview Questions
Question 28. What Different Actions Are Performed By Find And Show Button?
Answer :
1.To discover a particular object in the GUI Map document inside the software, pick out the item and click the Show window. This blinks the selected item.
2.To discover a specific item in a GUI Map file click on the Find button, which offers the option to select the item. When the item is selected, if the item has been found out to the GUI Map file it will be centered in the GUI Map document.
Question 29. How Do You Identify Which Files Are Loaded In The Gui Map?
Answer :
The GUI Map Editor has a drop down “GUI File” displaying all of the GUI Map documents loaded into the memory.
Performance Testing Interview Questions
Question 30. How Do You Modify The Logical Name Or The Physical Description Of The Objects In Gui Map?
Answer :
You can regulate the logical call or the physical description of an item in a GUI map record the use of the GUI Map Editor.
Question 31. When Do You Feel You Need To Modify The Logical Name?
Answer :
Changing the logical name of an item is beneficial whilst the assigned logical call isn't always sufficiently descriptive or is too long.
Question 32. When It Is Appropriate To Change Physical Description?
Answer :
Changing the bodily description is essential when the belongings cost of an item changes.
Test Director Interview Questions
Question 33. How Winrunner Handles Varying Window Labels?
Answer :
We can take care of various window labels the usage of regular expressions. WinRunner uses two “hidden” properties if you want to use regular expression in an object’s bodily description. These houses are regexp_label and regexp_MSW_class.
I. The regexp_label property is used for home windows simplest. It operates “behind the curtain” to insert a everyday expression right into a window’s label description.
Ii. The regexp_MSW_class assets inserts a regular expression into an item’s MSW_class. It is compulsory for all styles of windows and for the object elegance object.
Manual Testing Interview Questions
Question 34. What Is The Purpose Of Regexp_label Property And Regexp_msw_class Property?
Answer :
The regexp_label property is used for windows best. It operates “behind the curtain” to insert a ordinary expression right into a window’s label description.
The regexp_MSW_class belongings inserts a ordinary expression into an object’s MSW_class. It is compulsory for all varieties of home windows and for the item elegance item.
Question 35. How Do You Suppress A Regular Expression?
Answer :
We can suppress the regular expression of a window via changing the regexp_label property with label assets.
Question 36. How Do You Copy And Move Objects Between Different Gui Map Files?
Answer :
We can replica and circulate gadgets between extraordinary GUI files using the GUI Map Editor. The steps to be followed are: i. Choose Tools > GUI Map Editor to open the GUI Map Editor.
Ii. Choose View > GUI Files.
Iii. Click Expand inside the GUI Map Editor. The dialog field expands to show GUI map documents concurrently.
Iv. View a one-of-a-kind GUI map document on every side of the dialog box via clicking the report names within the GUI File lists.
V. In one report, pick out the items you need to copy or flow. Use the Shift key and/or Control key to pick out more than one gadgets. To pick all gadgets in a GUI map record, pick Edit > Select All.
Vi. Click Copy or Move.
Vii. To repair the GUI Map Editor to its original size, click on Collapse.
OpenStack Interview Questions
Question 37. How Do You Select Multiple Objects During Merging The Files?
Answer :
Use the Shift key and/or Control key to pick out a couple of objects. To choose all gadgets in a GUI map file, pick Edit > Select All.
Question 38. How Do You Clear A Gui Map Files?
Answer :
We can clean a GUI Map document the usage of the “Clear All” alternative in the GUI Map Editor.
Question 39. How Do You Filter The Objects In The Gui Map?
Answer :
GUI Map Editor has a Filter choice. This presents for filtering with three one-of-a-kind sorts of options.
I. Logical call shows only objects with the required logical call.
Ii. Physical description presentations handiest gadgets matching the desired bodily description. Use any substring belonging to the bodily description.
Iii. Class presentations handiest objects of the desired magnificence, which include all the push buttons.
Question 40. How Do You Configure Gui Map?
Answer :
a. When WinRunner learns the outline of a GUI item, it does not study all its homes. Instead, it learns the minimal number of homes to provide a unique identity of the item.
B. Many programs additionally contain custom GUI gadgets. A custom item is any item now not belonging to considered one of the usual classes used by WinRunner. These objects are consequently assigned to the commonplace “item” magnificence. When WinRunner data an operation on a custom item, it generates obj_mouse_ statements within the take a look at script.
C. If a custom item is much like a standard object, you could map it to one in all the standard . You also can configure the residences WinRunner makes use of to perceive a custom object throughout Context Sensitive trying out. The mapping and the configuration you set are legitimate only for the modern WinRunner consultation. To make the mapping and the configuration permanent, you ought to upload configuration statements on your startup test script.
Automation Testing Interview Questions
Question forty one. What's The Purpose Of The Wrun.Ini File?
Answer :
Configuration set up for WinRunner
Question forty two. Write A Short Compiled Module Which Selects Random Numbers; And What Function Is Used To Call Your Customized Compiled Module?
Answer :
Load or Reload function
API testing Interview Questions
Question forty three. Explain The Project Tree In Test Director.
Answer :
Used to coordinate and manipulate test instances.
Question forty four. Explain Data Parameterization In Winrunner.
Answer :
Data is written multiple instances, at the same time as WinRunner has a repeated loop to technique the facts.
Question forty five. What Databases Can Test Director Reside On?
Answer :
Oracle, Access, Sybase, MsSQL
Question 46. What Is Tsl? What 4gl Is It Similar Too?
Answer :
“Test Script Language, TSL C++”
Question forty seven. Difference Between Winrunner And Test Director?
Answer :
“WinRunner handles automation test scripts
TestDirector manages take a look at scripts, defects and take a look at plan”
Question 48. Why Don't We Normally Load The Gui Maps Through Start Up Scripts?
Answer :
a) If we are the use of a unmarried GUI Map record for the complete AUT then the memory utilized by the GUI Map can be a great deal excessive.
B) If there may be any alternate in the object being found out then WinRunner will not be capable of recognize the item, because it is not within the GUI Map document loaded inside the reminiscence. So we will should study the object once more and replace the GUI File and reload it.
Question forty nine. What Is The Purpose Of Different Record Methods 1) Record 2) Pass Up 3) As Object 4) Ignore.
Answer :
a) Record instructs WinRunner to report all operations accomplished on a GUI item. This is the default file technique for all instructions. (The most effective exception is the static class (static text), for which the default is Pass Up.)
b) Pass Up instructs WinRunner to document an operation completed in this class as an operation accomplished on the detail containing the object. Usually this detail is a window, and the operation is recorded as win_mouse_click.
C) As Object instructs WinRunner to report all operations executed on a GUI item as even though its magnificence have been “object” elegance.
D) Ignore instructs WinRunner to disregard all operations carried out at the elegance.
Question 50. What Are The Modes Of Script Recording In Winrunner ?
Answer :
There are 2 modes of recording in WinRunner
• Context Sensitive recording information the operations you perform on your software by figuring out Graphical User Interface (GUI) gadgets.
• Analog recording facts keyboard input, mouse clicks, and the best x- and y-coordinates traveled by way of the mouse pointer across the display.
Question fifty one. What Is A Checkpoint And What Are Different Types Of Checkpoints?
Answer :
Checkpoints let you compare the current behavior of the application being examined to its behavior in an in advance version.
You can add four styles of checkpoints in your test scripts:
GUI checkpoints affirm facts approximately GUI items. For example, you can check that a button is enabled or see which item is chosen in a list.
Bitmap checkpoints take a photo of a window or region of your utility and examine this to an photo captured in an in advance model.
Text checkpoints study textual content in GUI objects and in bitmaps and enable you to verify their contents.
Database checkpoints check the contents and the variety of rows and columns of a end result set, which is based totally on a question you create to your database.
Question fifty two. How Do You Analyze Test Results In Winrunner Tool And Report The Defects?
Answer :
When you end any take a look at in WinRunner, WinRunner presentations the outcomes in a file format. The report logs the general statistics approximately the check run I.E date, operator mode and total run time. Also the record information all the fundamental occasions that took place during the run, which includes checkpoints, blunders messages, device messages, or user messages. Mismatch can be found in the record panel by way of seeing the real result and the anticipated end result. If a take a look at run fails due to a disorder inside the application being tested, you could document data approximately the illness immediately from the Test Results window. This facts is sent via e-mail to the great guarantee supervisor, who tracks the defect until it's far fixed.
Question 53. What Is The Use Of Test Director Testing Tool?
Answer :
TestDirector is Mercury Interactive’s software take a look at management tool. It facilitates best guarantee personnel plan and arrange the trying out procedure. With TestDirector you could create a database of manual and automated tests, construct test cycles, run assessments, and record and music defects. You can also create reviews and graphs to help overview the development of making plans exams, walking tests, and tracking defects before a software program launch.
Question fifty four. How To Integrate Automated Scripts From Testdirector To Winrunner Scripts?
Answer :
When you work in WinRunner and create any take a look at script you have choice to save it directly to Test Director take a look at repository. Or whilst creating a test case in the TestDirector we can specify whether or not the script in automatic or manual. And if it is automated script then TestDirector will build a skeleton for the script like TSL(Test Script language) of winrunner that may be later modified into one that will be used to test the utility.
Question 55. What Are The Different Modes Of Recording In Winrunner?
Answer :
Two form of recording in WinRunner.
1. Context Sensitive recording data the operations you perform to your application with the aid of figuring out Graphical User Interface (GUI) gadgets. Winrunner identifies all the gadgets on your window you click like menus, home windows, lists, buttons and the kind of operation you perform consisting of permit, circulate, pick out and many others.
2. Analog recording facts keyboard enter, mouse clicks, and the proper x- and y-coordinates traveled by means of the mouse pointer throughout the display screen i.E Winrunner statistics genuine co-ordinates traveled by way of mouse.
Question fifty six. How Do You Handle Tsi. Exceptions?
Answer :
Suppose you are running a batch test on an volatile model of your utility. If your utility crashes, you want WinRunner to recover take a look at execution. A TSL exception can educate WinRunner to get better test execution by using exiting the modern-day take a look at, restarting the utility, and continuing with the next check within the batch.
The handler function is chargeable for recuperating test execution. When WinRunner detects a selected blunders code, it calls the handler function. You enforce this characteristic to reply to the unexpected error in the way that meets your precise testing wishes.
Question fifty seven. How Do You Handle Pop-up Exceptions?
Answer :
A pop-up exception Handler handles the pop-up messages that come up throughout the execution of the script inside the AUT. TO take care of this kind of exception we make WinRunner learn the window and additionally specify a handler to the exception. It will be Default actions; Win Runner clicks the OK or Cancel button inside the pop-up window, or presses Enter on the keyboard. To pick out a default handler, click the appropriate button inside the dialog container.
User-defined handler:If you prefer, specify the call of your personal handler. Click User Defined Function Name and type in a call in the User Defined Function Name box.
Question fifty eight. How Do You Handle Unexpected Events And Errors?
Answer :
WinRunner makes use of exception coping with to stumble on an unexpected event whilst it takes place and act to get better the take a look at run.
WinRunner allows you to deal with the subsequent sorts of exceptions:
Pop-up exceptions: Instruct WinRunner to locate and cope with the appearance of a particular window.
TSL exceptions: Instruct WinRunner to come across and manage TSL capabilities that go back a selected errors code.
Object exceptions: Instruct WinRunner to discover and cope with a change in a belongings for a specific GUI object.
Web exceptions: When the WebTest upload-in is loaded, you can instruct WinRunner to handle unexpected events and errors that arise in your web web site all through a check run.
Question 59. What Are The Three Modes Of Running The Scripts?
Answer :
WinRunner affords three modes in which to run exams: Verify, Debug, and Update. You use each mode at some stage in a exclusive phase of the testing manner.
Verify
Use the Verify mode to test your utility.
Debug
Use the Debug mode that will help you perceive bugs in a take a look at script.
Update
Use the Update mode to update the predicted outcomes of a take a look at or to create a brand new predicted consequences folder.
Question 60. Without The Gui Map, Use The Phy Desc Directly?
Answer :
It's clean, just take the outline directly out of the GUI map squigglies and all, put it into a variable (or bypass it as a string) and use that in region of the object call.
Button_press ( “btn_OK”);
will become
button_press (“class: push_button, label: OK");
Question sixty one. How To Get The Resolution Settings?
Answer :
Use get_screen_res(x,y) to get the screen decision in WR7.5.
Or
Use get_resolution (Vert_Pix_int, Horz_Pix_int, Frequency_int) in WR7.01
Question 62. How To Have Winrunner Insert Yesterdays Date Into A Field In The Application?
Answer :
Use get-time to get the PC machine time in seconds on the grounds that 01/01/1970
Subtract 86400 (no seconds in a day) from it.
Use time_str to transform the result into a date layout.
If format of again date isn't accurate use string manipulations to get the format you require.
Insert the date into your application.
Alternatively you could strive the following:
In an Excel datasheet create a column with the suitable name, and in the first cell of the column use the excel method 'today() - 1'.
Format the mobile to offer you the desired date layout.
Use the ddt- features to examine the date from the excel datasheet.
Insert the obtained date into your software.
Question sixty three. How Can With Winrunner To Make Single Scripts Which Supports Multiple Languages?
Answer :
Actually, you may have scripts that run for one of a kind locales.I actually have a hard and fast of scripts that run for Japanese as well as English locales. Idea is to have gadgets recorded in GUI Map with a locale independent physical description. This may be achieved in two ways.
After recording the object in the GUI Map, investigate the outline and make certain that no language precise residences are used. For ex: html_name property for an item of class: html textual content link may be based totally on the textual content. You can either take away those language established residences if it doesnt virtually have an effect on your object reputation. If it does have an effect on, you need to discover another assets for the object that is locale unbiased. This new belongings may be some thing thats already there or you want to create them, This results in the subsequent alternative.
Have builders assign a locale unbiased property like ‘objname’ or some thing to all items that you use to your computerized scripts. Now, modify your GUI Map description for the particular item to look for this property in place of the same old locale established residences recorded by means of WR (these default houses are in GUI Map Configuration).
Question 64. How To Force Wr To Learn The Sub-gadgets On A Menu?
Answer :
If WR isn't always studying sub-items then the smooth way id to feature manually the ones sub gadgets in to GUI map. Of direction you need to examine the menu description and usually add the PARENT menu call for that specific sub-menu.
Question sixty five. How To Check Property Of Specific Icon Is Highlighted Or Not?
Answer :
set_window(“Name of the window”);
obj_check_info("Name of the object“,“centered”,Out_value)
Check for out_value & proceed similarly.
Question 66. What Is Bitmap Or Gui Checkpoints?
Answer :
Do Not use BitMap or GUI Checkpoints for dynamic verification. These checkpoints are basically for static verifications. There are ofcourse, work-arounds, however basically no longer worth the attempt.
Question 67. How To Get The Information From The Status Bar Without Doing Any Activity/click On The Hyperlink?
Answer :
You can use the
“statusbar_get_text(”Status Bar”,O,text);”
feature “textual content” variable contains the status bar declaration.
Or
web_cursor_to_link (hyperlink, x, y);
hyperlink the call of the link.
X,y the x- and y-coordinates of the mouse pointer while moved to a hyperlink, relative to the upper left corner of the link.
Question sixty eight. What Are The Text Field Validations ?
Answer :
Need to validate text fields towards
Null
Not Null
whether it allows any Special Characters.
Whether it lets in numeric contents.
Maximum period of the sector and many others.
From the necessities find Out what the behaviour of the text subject in query must be. Things you want to know are: what must take place if discipline left blank what special characters are allowedvis it an alpha, numeric or alphanumeric subject and so on.
Write manual exams for doing what you need. This will create a structure to form the premise of your WR exams.
Now create your WR scripts. I endorse which you use facts driven checks and use Excel spreadsheets to your inputs alternatively of getting person enter. For example the following structure will test whether the textual content discipline will accept special characters
Question 69. How To Break Infinite Loop?
Answer :
set_window(” Browser Main Window”, 1);
textual content="",
begin = get_time();
even as(textual content!=”Done”)
statusbar_get_text("Status Bar”,O,textual content);
now = get_time();
if( (now-start) == 60)
# Specify no of seconds after which you need
ruin
smash;
Question 70. User-described Function That Would Write To The Print-log As Well As Write To A File
Answer :
feature writelog(in strMessage)
file_open(”C:FilePath...”);
file_printf(strMessage);
printf(strMessage);
Question 71. How To Do Text Matching?
Answer :
You may want to attempt embedding it in an if statement. If/when it fails use a t1_step declaration to signify rubdown after which do a go out to go away the take a look at. Another idea would be to use win_get text or web_frame_get_text to seize the textual content of the object and the do a contrast (the usage of the healthy characteristic) to decide it’s existance.
Question 72. The Msw_id Value Sometimes Changes, Rendering The Gui Map Useless
Answer :
MSW_Id’s will retain to alternate so long as your developers are editing your software. Having handled this, I determined that each MSW_Id shifted through the identical amount and I turned into capable of modify the entries within the gui map as an alternative without difficulty and retain trying out.
Instead of the use of the MSW_id use the “place”. If you use your GUI undercover agent it will provide you with each detail it can. Then upload or remove what you don’t want.
Question 73. What Is Boundary Test?
Answer :
Boundary tests are designed to check a program’s response to excessive input values. Extreme output values are generated by means of the enter values. It is vital to test that a application handles input values and output results successfully at the decrease and top barriers. Keep in mind that you could create excessive boundary outcomes from non-intense enter values. It is critical to investigate how to generate extremes of both types. In addition someday you already know that there may be an intermediate variable concerned in processing. If so, it's miles useful to determine a way to power that one via the extremes and special situations along with zero or overflow condition.
Question seventy four. How Do You Find An Object In An Gui Map?
Answer :
The GUI Map Editor is been furnished with a Find and Show Buttons.
To find a specific object inside the GUI Map document inside the software, choose the object and click on the Show window. This blinks the chosen item.
To locate a particular item in a GUI Map document click the Find button, which gives the option to choose the item When the item is selected, if the item has been discovered to the GUI Map document it'll be focused inside the GUI Map record.
Question 75. How Do You Handle Dynamically Changing Area Of The Window In The Bitmap Checkpoints?
Answer :
The distinction between bitmaps option inside the Run Tab of the overall options defines the minimum range of pixels that represent a bitmap mismatch.
Question 76. What Information Is Contained In The Checklist File And In Which File Expected Results Are Stored?
Answer :
The checklist document incorporates facts approximately the gadgets and the properties of the object we're verifying.
The gui*.Chk report includes the expected consequences that is saved inside the exp folder.
Question 77. How Do You Find Out Which Is The Start Up File In Win Runner?
Answer :
The test script call inside the Startup Test box within the Environment tab inside the General Options conversation container is the start up file in WinRunner.
Question 78. What Is The Purpose Of Return Statement?
Answer :
This statement passes manipulate lower back to the calling feature or take a look at. It additionally returns the cost of the evaluated expression to the calling characteristic or check. If no expression is assigned to the return announcement, an empty string is returned.
Syntax: go back [( expression )];
Question seventy nine. What Are The Disadvantages Of Compile Module In Winrunner?
Answer :
Disadvantages are :
can't use test points
can't use Sync Points
Non Executable
Question eighty. What Is The Purpose Of Gui Spy?
Answer :
Using the GUI Spy, you may view the residences of any GUI object to your desktop. You use the Spy pointer to factor to an item, and the GUI Spy displays the houses and their values in the GUI Spy conversation container. You can choose to view all of the residences of an object, or handiest the selected set of houses that WinRunner learns.
Question 81. What Is The Regular Expression In Winrunner?
Answer :
Regular Expression is commonly used for the handled the run time converting object in the software.
The Data Driver wizard reveals all constant values in selected checkpoints and recorded statements, but it does now not test for matters along with object labels that also may additionally range based totally on external input.
Question eighty two. Could We Test Windows Calculator Through Winrunner. For E.G If I Have To Test 2+3=five
Answer :
yes we are able to test home windows calculator via winrunner. Here beneath observe the navigation Steps:
Open WinRunner
open calculator, Make to WinRunner to see calculator.
Click on create menu and choose Record-Context Sensitive and do your operations on calculator.
Click on create menu and choose Stop Recording.
Click on Run Menu and pick Run from Top
Question eighty three. What Are The Advantages And Disadvantages Of Waterfall Model?
Answer :
Advantages
if our Requirements are constant manner there is no danger of converting of requirement means before going to Development we are able to freeze the requirements then it's far a nice model. And as it's far the best model so if we are able to use this version then it's miles fee saving additionally.
Disadvantages
If our Requirements are not constant method there's some threat of converting the necessities in among then it isn't the better practice to use this one.
Question 84. What Is The Use Of Virtual Object Wizard And How It Is Used?
Answer :
To outline a virtual object the use of the Virtual Object wizard:
Choose Tools > Virtual Object Wizard. The Virtual Object wizard opens. Click Next.
In the Class list, select a class for the brand new virtual item. If rows which can be displayed inside the window. For a desk elegance, pick out the variety of seen rows and columns. Click Next.
Click Mark Object. Use the crosshairs pointer to select the vicinity of the digital object. You can use the arrow keys to make precise modifications to the location you outline with the crosshairs. Press Enter or click the proper mouse button to display the digital items coordinates within the wizard. If the item marked is seen on the display screen, you could click the Highlight button to view it. Click Next.
Assign a logical name to the virtual item. This is the name that appears within the check script when you report at the digital object. If the object includes textual content that WinRunner can read, the wizard suggests the usage of this article for the logical call. Otherwise, WinRunner suggests virtual_object, virtual_push_button, virtual_list, etc.
You can take delivery of the wizards concept or kind in a specific name. WinRunner exams that there aren't any different gadgets within the GUI map with the equal name earlier than confirming your preference. Click Next.
Question 85. Explain Database Checkpoints In Winrunner?
Answer :
Database Checkpoints:
When you create database checkpoints, you define a question for your database, and your database checkpoint assessments the values contained in the result set. The result set is a fixed of values retrieved from the outcomes of the question.
There are numerous methods to define the question to be able to be used to your database checkpoints:
You can use Microsoft Query to create a query on a database. The results of a query on a database are known as a result set. You can set up Microsoft Query from the custom set up of Microsoft Office.
You can define an ODBC query manually, with the aid of creating its SQL assertion.
You can use Data Junction to create a conversion document that converts a database to a target text record. (For wellknown database checkpoints most effective). Note that Data Junction isn't routinely covered on your WinRunner package deal.
There are 4 DB checkpoints:
Runtime DB Checkpoint
Default Checkpoint
Custom Check
Standard Check
Question 86. What Is Batch Testing When We Are Using Batch Testing In Winrunner?
Answer :
The batch mode will use whilst we want non-stop execution of the scripts with out spoil if any errors within the script even though its retain the execution and at ultimate the errors will show inside the report.
Question 87. What Does Auto, Static, Public And Extern Variables Means?
Answer :
automobile: An vehicle variable may be declared best within a function and is nearby to that feature. It exists best for so long as the function is jogging. A new copy of the variable is created whenever the function is known as.
Static: A static variable is neighborhood to the function, take a look at, or compiled module wherein it is declared. The variable retains its value until the take a look at is terminated via an Abort command. This variable is initialized on every occasion the definition of the function is performed.
Public: A public variable may be declared simplest inside a check or module, and is available for all functions, tests, and compiled modules.
Extern: An extern statement suggests a reference to a public variable declared out of doors of the contemporary check or module.
Question 88. How To Check Data Base Connection Of Script In Winrunner?
Answer :
To connect to the database by using Winrunner script is, at the start we must find out the DSN name
db_connect ("session call","data source name");
db_execute_query("session call","question",depend);
generate for loop for(i=1;i<=count;i++)
db_get_row("session name",variable);
printf(variable);
db_disconnect("session name");
Through this script we can connect to the database and also we can fetch the records.
Question 89. What Is The Difference Between Object Repository And Object Spy?
Answer :
Object Repository:
It is a storage place which is used for storing the objects information and it also acts as an interface between the test script and application in order to identify the objects while execution or during execution.
Object Spy:
It is a handy feature Provided by QTP to display the complete object information like methods, properties, syntax for methods, description of methods of both text and runtime objects then and there immediately.
Question 90. Without Using The Data Driven Test, How Can We Test The Application With Different Set Of Inputs?
Answer :
The major purpose of the data driven test is to test the application with different types of inputs which helps us in avoiding hectic and repetitive work that one should do in manual, which is time consuming task.
If you want to know the alternative, in a for loop or any other loop that you are comfortable with, use create_input_dialog command and take the value every time from the user and then pass the value to the function.
Question 91. What We Can't Test Using Winrunner?
Answer :
win runner support .Net applications(QTP supports.Net)
Audio and video moving objects applications (Multimedia).
We need to install approiated add in to test the application. For example (we need to have web adding to test web application) java adding for testing java applications.
Question 92. Can We Call The Qtp Script Using Winrunner?
Answer :
QuickTest enables you to call WinRunner-based scripts, user-defined functions, and their parameters. You may access Call to WinRunner utility by selecting Insert > Call to WinRunner > and pick out either Call to WinRunner Test or Call to WinRunner Function from QTP device bar.You can also use Step Generator > Utility Objects and choose appropriate approach Alternatively, you may use QTP TSLTest item and its RunTestEx and RunFuncEx methods to call WinRunner scripts.
Question ninety three. What Is The Advantage Of Toggle Break Point?
Answer :
The benefit of toggle damage factor is to pick out the issues (faults) in the Winrunner script in the course of the debugging mode, the that means toggle means "preserve onto".
By putting the ruin points within the script you can actually forestall( suspend ) the check run at a special place within the take a look at script to look into the state of the application below take a look at.
Question 94. Which Functional Testing Tool Is Cheap And Best For Buying The Product?
Answer :
You can pass for Winrunner 7.Five because compare to other functional trying out equipment this is bit reasonably-priced.
Question ninety five. What Is Meant By Session In Db_connect?
Answer :
db_connect();
It is a database checkpoint feature, that is used to attach a designated database.
Syntax: db_connect(filename, DSN connection);
db_connect("msqr1","DSN=Flight32");
Here, msqr1 is the filename that has been created with the aid of you, for the duration of writing the square query and Flight32 is the database on which you are running.
Question 96. What Is The Use Of Gui Map And What Happens When Gui Map File Get Loaded?
Answer :
When we load a GUI Map document, the statistics about the windows and the objects with their logical names and bodily description are loaded into reminiscence. So while the WinRunner executes a script on a particular window, it is able to perceive the items the usage of this records loaded inside the reminiscence.
Question 97. What Is The Difference Between Wait And Synchronization?
Answer :
Wait : It is a fashionable statement used to attend till the time is elapsed(wait(x)) --> x is the quantity of time winrunner stops execution of the following assertion towards the default timeout of the winrunner between statement executions.
Synchronization: a complicated shape of wait that await the residences to be enabled or disabled and many others. Used in general so as to keep away from timing issues.
Question ninety eight. Can We Test A Mainframe Application Using Winrunner?
Answer :
Yes you can take a look at As400 programs the usage of Winrunner. I actually have used it for regression testing.
Question ninety nine. What Is The Command In Winrunner To Get Dos Prompt?
Answer :
The dos_system feature executes a DOS device command from inside a WinRunner test script.
Dos_system (expression);
Question a hundred. Record A Data Driven Test Script Using Data Driver Wizard?
Answer :
You can use the Data Driver Wizard to transform your complete script or part of your script into a records-driven take a look at. For instance, your test script can also include recorded operations, checkpoints, and different statements that do not need to be repeated for a couple of units of data.
Question a hundred and one. What Are The Limitations Of Winrunner In Testing?
Answer :
Limitations of winrunner in testing:
It have to now not aid Dot net packages.
It must not support XML.
It ought to no longer aid Multimedia.
Question 102. What Are The Steps Of Creating A Data Driven Test?
Answer :
The steps concerned in information driven checking out are:
Creating a test
Converting to a facts-driven check and getting ready a database
Running the check
Analyzing the test consequences.
Question 103. Is That Possible To Test A Mobile Application Using Winrunner?
Answer :
We don't take a look at the cellular software using WinRunner. Because it involves a few protocols for facts transmission. That is why we need some one of a kind type of tool for checking out the protocols or we can do manually.
Question 104. How Do I Run Unix Shell Scripts Using Winrunner Tool?
Answer :
You can not run Unix shell scripts in Winrunner commands, due to the fact Winrunner is Windows based totally.
Question a hundred and five. What Are The Differences Between The Win Runner And Qtp?
Answer :
There are lot of differences in winrunner and QTP.
Winrunner does now not aid the runtime gadgets for the duration of recording, but QTP supports that element.
Winrunner should now not helps XML,.NET APPLICATIONS, however QTP helps.
Winrunner script is like c-language, however QTP is like VB.
Test points are extra in comparison to QTP.
Question 106. What Does Static And Public Class Of A Function Means?
Answer :
The class of a feature can be either static or public.
A static function is to be had most effective to the check or module inside which the function became defined.
Once you execute a public characteristic, it is to be had to all exams, for so long as the take a look at containing the characteristic stays open. This is handy when you want the feature to be accessible from called checks. However, if you want to create a function to be able to be to be had to many tests, you need to place it in a compiled module. The capabilities in a compiled module are to be had in the course of the checking out session.
If no elegance is explicitly declared, the characteristic is assigned the default elegance, public.
Question 107. How Do You Call A Function From External Libraries (dll).
Answer :
If you want name dll document via Winrunner, you must use api controls it is a unique functions.
Question 108. Explain Get Text Checkpoint From Screen Area With Syntax?
Answer :
"To seize selected location fee into variable for screen region alternative in textual content checkpoint (get text)."
syntax: obj_get_text ("display location name",variable,x1,y1,x2,y2);
Question 109. What Is The Difference Between Set_window And Win_activate? When Would Use Set_window And When Would Use Win_activate?
Answer :
win_activate has the layout win_activate(window);. The win_activate feature makes the desired window the lively window by way of bringing it into focus & elevating it to the pinnacle of the display. (It is the equal to clicking at the window banner)
Set_window has the subsequent format: set_window(window,[time]); The set_window characteristic directs input to the precise application window. This directs the GUI map to this window. It also sets the scope for item identity within the GUI map.
The maximum crucial difference is that set_window has a timing alternative. WinRunner will wait a most of the quantity used within the function, PLUS the gadget set timeout, to wait for the window to seem. Win_activate assumes the window is already on the laptop and has no timing option.
Question 110. What Is The New Feature Add In Qtp eight.Zero Compare In Qtp 6.Zero?
Answer :
QuickTest Professional 8.2 includes the subsequent new functions: The new Business Component Keyword View allows you layout your components quickly and effortlessly, in a self-documenting tabular person interface that requires no programming knowledge. The Business Component Keyword View is comparable in look and functionality to the Steps tab within the Business Components module in Quality Center. This allows both QuickTest and Quality Center customers to look the equal factor content. The new Function Definition Generator enables you to speedy document and sign in new person-described features for tests and additives. A new Documentation Only alternative in the Keyword View allows you to view and print the car-documentation facts for exams or components. For instance, you may want to view and print the step descriptions displayed in the Documentation column as commands for manual checking out. QuickTest presents a brand new param
