InterviewSolution
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.
| 151. |
What Are The Steps Of Creating A Data Driven Test? |
|
Answer» The steps INVOLVED in data driven testing are:
The steps involved in data driven testing are: |
|
| 152. |
What Are The Limitations Of Winrunner In Testing? |
|
Answer» Limitations of WINRUNNER in testing:
Limitations of winrunner in testing: |
|
| 153. |
Record A Data Driven Test Script Using Data Driver Wizard? |
|
Answer» You can use the Data Driver Wizard to CONVERT your entire SCRIPT or a part of your script into a data-driven test. For example, your test script may include recorded operations, CHECKPOINTS, and other STATEMENTS that do not need to be repeated for multiple sets of data. You can use the Data Driver Wizard to convert your entire script or a part of your script into a data-driven test. For example, your test script may include recorded operations, checkpoints, and other statements that do not need to be repeated for multiple sets of data. |
|
| 154. |
What Is The Command In Winrunner To Get Dos Prompt? |
|
Answer» The dos_system function EXECUTES a DOS system command from WITHIN a WinRunner TEST script. The dos_system function executes a DOS system command from within a WinRunner test script. |
|
| 155. |
Can We Test A Mainframe Application Using Winrunner? |
|
Answer» Yes you can TEST As400 applications USING Winrunner. I have used it for REGRESSION TESTING. Yes you can test As400 applications using Winrunner. I have used it for regression testing. |
|
| 156. |
What Is The Difference Between Wait And Synchronization? |
|
Answer» Wait : It is a general STATEMENT used to wait till the TIME is elapsed(wait(X)) --> x is the amount of time winrunner stops execution of the next statement against the default timeout of the winrunner between statement executions. Wait : It is a general statement used to wait till the time is elapsed(wait(x)) --> x is the amount of time winrunner stops execution of the next statement against the default timeout of the winrunner between statement executions. |
|
| 157. |
What Is The Use Of Gui Map And What Happens When Gui Map File Get Loaded? |
|
Answer» When we load a GUI MAP file, the information about the windows and the objects with their logical names and PHYSICAL description are LOADED into memory. So when the WinRunner executes a script on a particular WINDOW, it can identify the objects USING this information loaded in the memory. When we load a GUI Map file, the information about the windows and the objects with their logical names and physical description are loaded into memory. So when the WinRunner executes a script on a particular window, it can identify the objects using this information loaded in the memory. |
|
| 158. |
What Is Meant By Session In Db_connect? |
|
Answer» db_connect(); db_connect(); |
|
| 159. |
Which Functional Testing Tool Is Cheap And Best For Buying The Product? |
|
Answer» You can go for Winrunner 7.5 because compare to other functional testing TOOLS this is BIT CHEAP. You can go for Winrunner 7.5 because compare to other functional testing tools this is bit cheap. |
|
| 160. |
What Is The Advantage Of Toggle Break Point? |
|
Answer» The ADVANTAGE of toggle break point is to identify the flaws (faults) in the Winrunner script during the debugging mode, the meaning toggle means "hold ONTO". The advantage of toggle break point is to identify the flaws (faults) in the Winrunner script during the debugging mode, the meaning toggle means "hold onto". |
|
| 161. |
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 select either Call to WinRunner Test or Call to WinRunner Function from QTP tool bar.You may use Step Generator > Utility OBJECTS and select appropriate method Alternatively, you can use QTP TSLTest OBJECT and its RunTestEx and RunFuncEx methods to call WinRunner scripts. 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 select either Call to WinRunner Test or Call to WinRunner Function from QTP tool bar.You may use Step Generator > Utility Objects and select appropriate method Alternatively, you can use QTP TSLTest object and its RunTestEx and RunFuncEx methods to call WinRunner scripts. |
|
| 162. |
What We Can't Test Using Winrunner? |
Answer»
|
|
| 163. |
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. 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. |
|
| 164. |
What Is The Difference Between Object Repository And Object Spy? |
|
Answer» Object Repository: Object Repository: |
|
| 165. |
How To Check Data Base Connection Of Script In Winrunner? |
|
Answer» To connect to the database by using Winrunner SCRIPT is, at first we have to find out the DSN NAME To connect to the database by using Winrunner script is, at first we have to find out the DSN name |
|
| 166. |
What Does Auto, Static, Public And Extern Variables Means? |
Answer»
|
|
| 167. |
What Is Batch Testing When We Are Using Batch Testing In Winrunner? |
|
Answer» The batch mode will use when we need continuous execution of the SCRIPTS without break if any ERRORS in the SCRIPT even THOUGH its CONTINUE the execution and at last the errors will display in the report. The batch mode will use when we need continuous execution of the scripts without break if any errors in the script even though its continue the execution and at last the errors will display in the report. |
|
| 168. |
Explain Database Checkpoints In Winrunner? |
|
Answer» Database Checkpoints:
There are 4 DB checkpoints:
Database Checkpoints: There are 4 DB checkpoints: |
|
| 169. |
What Is The Use Of Virtual Object Wizard And How It Is Used? |
|
Answer» To define a virtual object using the Virtual Object wizard:
To define a virtual object using the Virtual Object wizard: |
|
| 170. |
Could We Test Windows Calculator Through Winrunner. For E.g If I Have To Test 2+3=5 |
|
Answer» YES we can TEST windows calculator through winrunner. Here below follow the navigation Steps:
yes we can test windows calculator through winrunner. Here below follow the navigation Steps: |
|
| 171. |
What Is The Regular Expression In Winrunner? |
|
Answer» Regular Expression is NORMALLY used for the handled the run time changing object in the application. Regular Expression is normally used for the handled the run time changing object in the application. |
|
| 172. |
What Is The Purpose Of Gui Spy? |
|
Answer» Using the GUI Spy, you can VIEW the PROPERTIES of any GUI object on your desktop. You use the Spy pointer to point to an object, and the GUI Spy displays the properties and their values in the GUI Spy DIALOG BOX. You can choose to view all the properties of an object, or only the selected SET of properties that WinRunner learns. Using the GUI Spy, you can view the properties of any GUI object on your desktop. You use the Spy pointer to point to an object, and the GUI Spy displays the properties and their values in the GUI Spy dialog box. You can choose to view all the properties of an object, or only the selected set of properties that WinRunner learns. |
|
| 173. |
What Are The Disadvantages Of Compile Module In Winrunner? |
|
Answer» Disadvantages are :
Disadvantages are : |
|
| 174. |
What Is The Purpose Of Return Statement? |
|
Answer» This statement passes control BACK to the calling function or TEST. It ALSO returns the value of the evaluated expression to the calling function or test. If no expression is assigned to the return statement, an empty string is RETURNED. This statement passes control back to the calling function or test. It also returns the value of the evaluated expression to the calling function or test. If no expression is assigned to the return statement, an empty string is returned. |
|
| 175. |
How Do You Find Out Which Is The Start Up File In Win Runner? |
|
Answer» The test script NAME in the Startup Test box in the ENVIRONMENT tab in the GENERAL Options DIALOG box is the start up file in WinRunner. The test script name in the Startup Test box in the Environment tab in the General Options dialog box is the start up file in WinRunner. |
|
| 176. |
What Information Is Contained In The Checklist File And In Which File Expected Results Are Stored? |
|
Answer» The checklist FILE CONTAINS information about the objects and the properties of the object we are verifying. The checklist file contains information about the objects and the properties of the object we are verifying. |
|
| 177. |
How Do You Handle Dynamically Changing Area Of The Window In The Bitmap Checkpoints? |
|
Answer» The DIFFERENCE between bitmaps option in the Run Tab of the GENERAL OPTIONS defines the minimum number of pixels that constitute a BITMAP mismatch. The difference between bitmaps option in the Run Tab of the general options defines the minimum number of pixels that constitute a bitmap mismatch. |
|
| 178. |
How Do You Find An Object In An Gui Map? |
|
Answer» The GUI MAP Editor is been provided with a Find and Show Buttons. To find a particular OBJECT in the GUI Map file in the application, select the object and click the Show WINDOW. This blinks the selected object. To find a particular object in a GUI Map file click the Find button, which GIVES the option to select the object When the object is selected, if the object has been LEARNED to the GUI Map file it will be focused in the GUI Map file. The GUI Map Editor is been provided with a Find and Show Buttons. To find a particular object in the GUI Map file in the application, select the object and click the Show window. This blinks the selected object. To find a particular object in a GUI Map file click the Find button, which gives the option to select the object When the object is selected, if the object has been learned to the GUI Map file it will be focused in the GUI Map file. |
|
| 179. |
What Is Boundary Test? |
|
Answer» Boundary tests are designed to check a program’s response to extreme input values. Extreme output values are generated by the input values. It is important to check that a program handles input values and output results correctly at the lower and UPPER boundaries. KEEP in mind that you can CREATE extreme boundary results from non-extreme input values. It is essential to analyze how to generate extremes of both types. In addition sometime you know that there is an intermediate variable involved in processing. If so, it is useful to DETERMINE how to drive that ONE through the extremes and special conditions such as zero or overflow condition. Boundary tests are designed to check a program’s response to extreme input values. Extreme output values are generated by the input values. It is important to check that a program handles input values and output results correctly at the lower and upper boundaries. Keep in mind that you can create extreme boundary results from non-extreme input values. It is essential to analyze how to generate extremes of both types. In addition sometime you know that there is an intermediate variable involved in processing. If so, it is useful to determine how to drive that one through the extremes and special conditions such as zero or overflow condition. |
|
| 180. |
The Msw_id Value Sometimes Changes, Rendering The Gui Map Useless |
|
Answer» MSW_Id’s will CONTINUE to change as long as your developers are modifying your application. Having dealt with this, I determined that each MSW_Id shifted by the same amount and I was able to modify the entries in the GUI map rather easily and continue testing. INSTEAD of using the MSW_id use the “location”. If you use your GUI spy it will GIVE you every detail it can. Then add or remove what you don’t want. MSW_Id’s will continue to change as long as your developers are modifying your application. Having dealt with this, I determined that each MSW_Id shifted by the same amount and I was able to modify the entries in the gui map rather easily and continue testing. Instead of using the MSW_id use the “location”. If you use your GUI spy it will give you every detail it can. Then add or remove what you don’t want. |
|
| 181. |
How To Do Text Matching? |
|
Answer» You could try embedding it in an if statement. If/when it fails use a t1_step statement to indicate massage and then do a EXIT to LEAVE the TEST. ANOTHER idea would be to use win_get text or web_frame_get_text to capture the text of the OBJECT and the do a comparison (using the match function) to determine it’s existance. You could try embedding it in an if statement. If/when it fails use a t1_step statement to indicate massage and then do a exit to leave the test. Another idea would be to use win_get text or web_frame_get_text to capture the text of the object and the do a comparison (using the match function) to determine it’s existance. |
|
| 182. |
User-defined Function That Would Write To The Print-log As Well As Write To A File |
|
Answer» ANSWER :
FUNCTION writelog(in strMessage){ |
|
| 183. |
How To Break Infinite Loop? |
|
Answer» Answer :
set_window(” Browser Main Window”, 1); |
|
| 184. |
What Are The Text Field Validations ? |
|
Answer» Need to VALIDATE text fields against
From the requirements find Out what the behaviour of the text field in question should be. Things you need to know are: what should HAPPEN if field left blank what special characters are allowedvis it an alpha, numeric or ALPHANUMERIC field etc. Write manual tests for doing what you want. This will create a structure to form the basis of your WR tests. Now create your WR scripts. I suggest that you use data driven tests and use EXCEL spreadsheets for your inputs instead of having user input. For example the following structure will test whether the text field will accept special characters Need to validate text fields against From the requirements find Out what the behaviour of the text field in question should be. Things you need to know are: what should happen if field left blank what special characters are allowedvis it an alpha, numeric or alphanumeric field etc. Write manual tests for doing what you want. This will create a structure to form the basis of your WR tests. Now create your WR scripts. I suggest that you use data driven tests and use Excel spreadsheets for your inputs instead of having user input. For example the following structure will test whether the text field will accept special characters |
|
| 185. |
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);”function “text” variable CONTAINS the status bar STATEMENT. link the NAME of the link. You can use the function “text” variable contains the status bar statement. link the name of the link. |
|
| 186. |
What Is Bitmap Or Gui Checkpoints? |
|
Answer» Do Not use BitMap or GUI CHECKPOINTS for DYNAMIC VERIFICATION. These checkpoints are PURELY for static verifications. There are ofcourse, work-arounds, 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 ofcourse, work-arounds, but mostly not worth the effort. |
|
| 187. |
How To Check Property Of Specific Icon Is Highlighted Or Not? |
|
Answer» ANSWER :
set_window(“Name of the window”); Check for out_value & proceed further. Check for out_value & proceed further. |
|
| 188. |
How To Force Wr To Learn The Sub-items On A Menu? |
|
Answer» If WR is not LEARNING sub-items then the easy way id to add manually those sub items in to GUI map. Of course you need to STUDY the menu DESCRIPTION and always add the PARENT menu name for that particular sub-menu. If WR is not learning sub-items then the easy way id to add manually those sub items in to GUI map. Of course you need to study the menu description and always add the PARENT menu name for that particular sub-menu. |
|
| 189. |
How Can With Winrunner To Make Single Scripts Which Supports Multiple Languages? |
|
Answer» Actually, you can have scripts that run for DIFFERENT locales.I have a set of scripts that run for Japanese as well as English locales. Idea is to have objects recorded in GUI Map with a locale independent physical description. This can be achieved in two ways.
Actually, you can have scripts that run for different locales.I have a set of scripts that run for Japanese as well as English locales. Idea is to have objects recorded in GUI Map with a locale independent physical description. This can be achieved in two ways. |
|
| 190. |
How To Have Winrunner Insert Yesterdays Date Into A Field In The Application? |
Answer»
Alternatively you could try the following:
Alternatively you could try the following: |
|
| 191. |
How To Get The Resolution Settings? |
|
Answer» USE get_screen_res(X,y) to GET the SCREEN RESOLUTION in WR7.5. or Use get_resolution (Vert_Pix_int, Horz_Pix_int, Frequency_int) in WR7.01 Use get_screen_res(x,y) to get the screen resolution in WR7.5. or Use get_resolution (Vert_Pix_int, Horz_Pix_int, Frequency_int) in WR7.01 |
|
| 192. |
Without The Gui Map, Use The Phy Desc Directly? |
|
Answer» It's easy, just take the DESCRIPTION straight out of the GUI map squigglies and all, put it into a variable (or pass it as a string) and use that in place of the OBJECT name. button_press ( “btn_OK”);becomes button_press (“{class: push_button, LABEL: OK}");It's easy, just take the description straight out of the GUI map squigglies and all, put it into a variable (or pass it as a string) and use that in place of the object name. becomes |
|
| 193. |
What Are The Three Modes Of Running The Scripts? |
|
Answer» WinRunner provides three modes in which to RUN tests: Verify, Debug, and Update. You use each MODE during a different phase of the TESTING process. Verify Debug Update WinRunner provides three modes in which to run tests: Verify, Debug, and Update. You use each mode during a different phase of the testing process. Verify Debug Update |
|
| 194. |
How Do You Handle Unexpected Events And Errors? |
|
Answer» WinRunner USES exception handling to detect an unexpected event when it occurs and act to recover the TEST run. WinRunner enables you to handle the following types of exceptions:
WinRunner uses exception handling to detect an unexpected event when it occurs and act to recover the test run. WinRunner enables you to handle the following types of exceptions: |
|
| 195. |
How Do You Handle Pop-up Exceptions? |
|
Answer» A pop-up EXCEPTION Handler handles the pop-up messages that COME up during the execution of the script in the AUT. TO handle this type of exception we make WinRunner learn the window and also specify a handler to the exception. It could be Default ACTIONS; Win Runner clicks the OK or Cancel button in the pop-up window, or presses Enter on the keyboard. To select a default handler, click the appropriate button in the dialog box. User-DEFINED handler:If you prefer, specify the NAME of your own handler. Click User Defined Function Name and type in a name in the User Defined Function Name box. A pop-up exception Handler handles the pop-up messages that come up during the execution of the script in the AUT. TO handle this type of exception we make WinRunner learn the window and also specify a handler to the exception. It could be Default actions; Win Runner clicks the OK or Cancel button in the pop-up window, or presses Enter on the keyboard. To select a default handler, click the appropriate button in the dialog box. User-defined handler:If you prefer, specify the name of your own handler. Click User Defined Function Name and type in a name in the User Defined Function Name box. |
|
| 196. |
How Do You Handle Tsi. Exceptions? |
|
Answer» 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. 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. |
|
| 197. |
What Are The Different Modes Of Recording In Winrunner? |
|
Answer» TWO type of recording in WinRunner. Two type of recording in WinRunner. |
|
| 198. |
How To Integrate Automated Scripts From Testdirector To Winrunner Scripts? |
|
Answer» When you work in WinRunner and CREATE any test script you have option to save it directly to Test DIRECTOR test repository. Or while creating a test case in the TestDirector we can specify whether the script in automated or manual. And if it is automated script then TestDirector will build a skeleton for the script like TSL(Test Script language) of winrunner that can be later modified into one which COULD be USED to test the application. When you work in WinRunner and create any test script you have option to save it directly to Test Director test repository. Or while creating a test case in the TestDirector we can specify whether the script in automated or manual. And if it is automated script then TestDirector will build a skeleton for the script like TSL(Test Script language) of winrunner that can be later modified into one which could be used to test the application. |
|
| 199. |
What Is The Use Of Test Director Testing Tool? |
|
Answer» TESTDIRECTOR is Mercury Interactive’s software test management tool. It helps quality assurance personnel plan and organize the testing process. With TestDirector you can create a database of manual and automated tests, BUILD test CYCLES, run tests, and REPORT and track defects. You can also create reports and graphs to help review the progress of planning tests, running tests, and tracking defects before a software RELEASE. TestDirector is Mercury Interactive’s software test management tool. It helps quality assurance personnel plan and organize the testing process. With TestDirector you can create a database of manual and automated tests, build test cycles, run tests, and report and track defects. You can also create reports and graphs to help review the progress of planning tests, running tests, and tracking defects before a software release. |
|
| 200. |
How Do You Analyze Test Results In Winrunner Tool And Report The Defects? |
|
Answer» When you finish any test in WinRunner, WinRunner displays the results in a report format. The report logs the general INFORMATION about the test run I.e date, operator mode and TOTAL run time. Also the report details all the major events that occurred during the run, such as checkpoints, error messages, system messages, or user messages. MISMATCH can be found in the report panel by seeing the actual result and the expected result. If a test run fails due to a defect in the application being TESTED, you can report information about the defect directly from the Test Results window. This information is SENT via e-mail to the quality assurance manager, who tracks the defect until it is fixed. When you finish any test in WinRunner, WinRunner displays the results in a report format. The report logs the general information about the test run I.e date, operator mode and total run time. Also the report details all the major events that occurred during the run, such as checkpoints, error messages, system messages, or user messages. Mismatch can be found in the report panel by seeing the actual result and the expected result. If a test run fails due to a defect in the application being tested, you can report information about the defect directly from the Test Results window. This information is sent via e-mail to the quality assurance manager, who tracks the defect until it is fixed. |
|