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.
| 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. The reload function removes a compiled module from memory, and then loads it again. In effect, reload combines the functions of unload and load. |
|
| 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
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. 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. |
|
| 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. We can check the spellings in winrunner using GUIcheckpoints. |
|
| 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.
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:
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 Main Test: This is 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.
This is where the synchronization checkpoints come handy. |
|
| 21. |
What Type Of Variables Can Be Used With In The Tsl Function? |
|
Answer» auto and static variables. 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. 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» | |
| 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» | |
| 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:
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»
|
|
| 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 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. 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. |
|
| 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.,
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
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. 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. |
|
| 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:
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. Entry criteria: sign off proposal document by the client. |
|
| 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»
|
|