Tuesday, November 13, 2007

Interview Question-Part2

Automated Testing Interview Questions - Mercury QuickTest Professional
General knowledge or software automation is your best guide when you answer these QTP questions:


1)How to create basic scripts from a manual test case in QTP?
2)How to add verification steps to tests?
3)How to use custom checkpoints in QuickTest Professional?
4)How to use database checkpoints?
5)How to manage objects in the Object Repository in QuickTest Professional?
6)How to parameterize tests?
7)How to customize checkpoints with parameters?
8)How to run an integrated test scenario using Multiple Actions?
9)How to use the QTP Step Generator?
10)How to use debug tools?
11)How to create virtual objects?
12)What is the difference between QTP Analog and Low-Level recording modes?
13)Please describe Object and Smart Identification?
14)What is the difference between Per-Action vs. Shared Object Repositories?


Ask yourself the following questions that covers the basics of the QTP functionality:

1)What are the main benefits of QuickTest Professional?
2)What is Add-In Manager in QTP?
3)What QTP Options do you know?
4)How to Identify Objects and their Properties?
5)What is the Object Repository?
6)How to Add Synchronization Steps?
7)How to Set the Global Sync Timeouts in QTP?
8)What is Regular Expressions and how to use them?
9)How to Create Data-Driven tests?
10)What are Checkpoints with Parameters?
11)What is the difference between Global and Local Data Sheets?
12)How to create Reusable and Multiple Actions?
13)Describe the benefits of the Step Generator.
14)What are the main options that are available in the Step Generator dialog box?
15)What is Exception Handling?
16)What is Recovery Scenario Wizard in QTP?
17)Describe the purpose of a Database Checkpoint
18)What is the difference between Analog Recording and Low-Level Recording in automation tools?
19)Describe Per-Action vs. Shared Object Repositories
20)Describe how and when Smart Identification is used
21)Please identify when the Expert View is useful.
22)How can we translate the steps between the Keyword and Expert Views?
23)How software automation specialist enter steps in the Expert View?
24)How can you retrieve an object's properties?
25)How software tester can use constants and variables in scripts?
26)How can you write the scripts that operate on different objects depending on run-time information?
27)How QA specialist can identify when programmatic descriptions are useful?
28)What VBScript operators, functions, and statements do you use in QuickTest Professional?
29)How to retrieve data from application objects?
30)Please list some VBScript looping statements and explain when each is useful.
31)How to use the DataTable object to store run-time data and drive actions?
32)How to build scripts that access data from external sources?
33)How can you create new subroutines and functions?
34)How we can build a new and associate library of functions?
35)Please identify when to handle run errors programmatically.
36)What are the main ways of managing QTP run errors?
37)Did you use abort loops, procedures, iterations, actions, and runs?


Detailed QTP questions with answers. Some of them were used for Mercury QTP certification.

1)What is the purpose of loading an add-in?
answer: To enable QTP to recognize objects of your applications.
2))What does the Missing Resources pane show?

answer: Missing of any external function or repository
3)During designing a test, what do you need to take into account to ensure that the test can be reiterated?

answer: Set initial and end conditions as part of the test,
4)How do you determine whether a test failed or passed?

answer: Go to the result screen and check
5)What does the export Test to Zip feature do?
6)What is the object class?
7)What is the step to change the logical name of the object recorded by QTP?

answer: Open the Object Repository.
8)What is Object Spy used for?

answer: View the runtime object methods and properties.
9)When QuickTest Pro enable you to specify a synchronization points?

answer: While recording a test and after recording a test
10)What is the function of a synchronization point?

answer: To provide more time for an object to process before moving to the next step in a test.
11)What can you use a synchronization point for?

answer: To provide more time for an object to process in the real environment.
12)When QTP enable you to specify a synchronization points?

answer: While recording and after recording a test
13)Why do you use regular expressions in your test?

answer: To define a checkpoint that can accept a range of values.
14)How do you determine if a checkpoint is use in a test?

answer: 1. A checkmark appears next to the step in the results.
2. The OPERATION column of KEYWORD VIEW lists the operation as CHECK
3. A check mark appears at each level of the Test Summary tree.
15)What is standard checkpoint?

answer: A mechanism to check the property of an object.
16)How many ways we have to set checkpoints?

Answer:1. In the recording mode
2. In the insert mode in keyword view screen (right mouse click)
3. In an active screen mode
17)What is the purpose of the input parameters?

answer: Drives a variety of data values through a test.
18)How can you make a checkpoint flexible?

answer: Create and insert a regular expression or input data to the parametr using the design-time Data Table
19)Which action can you use only within the test which it was created?

answer: Regular action; Regular (non – reusable) action; External action.
20)Where do you set action iterations for the specified action?

answer: Action Call Properties
21)What is created by default with a new action?

answer: Local object repository, Local data sheet and Folder (tree structure)
22)What is Step generator used for?

answer: Function and object listing
23)Which field in the Step Generator dialog box is optional, depending on the object and operation?

answer: Document step
24)How can you insert the ReportEvent feature?

answer: Using New step or Step generator.
25)In which dialog box do you check Web to load add-ins for a Web application?

answer: In Add-in manager.
26)Why do you create a text checkpoint on a Web application?
27)When do we use custom checkpoints?

answer: Standard checkpoints does not works
28)When do we use breakpoints?

answer: stop execution to verify values of variables.
29)Why do we require a database checkpoint in test?

answer: To test database as the backend
30)Which query tool is used to create a query in Database Query Wizard?

answer: MS query
31)What does the source property of a database test object specify?

answer: Connection string; username; password;
32)Name the object repository type in which QuickTest pro saves the information about objects during a record session, by default?

answer: per action (local)
33)Where are shared objects stored in QuckTest Professional?

answer: in .TSR files
39)Which object repository type can you create using Object Repository Manager?

answer: Global
40)When do we use a low level recording to record a test?

answer: If QTP does not any objects at all
41)When do we use analog recording to record a test?

answer: To record mouse movement for example online signature.
42)How does a bitmap checkpoint work?
43)What is a virtual object?

answer: A generic object mapped to the standard object.
44)What are the components of a recovery scenario?

answer: Trigger, Recovery, Post-recovery
45)When do you select the Object State trigger event type?

answer: On the “Select Trigger Event” screen
46)Can you select multiple recovery operations for the trigger event?

answer: Yes
47)When does an optional step execute in a test?

answer: When this object exists. ( this is build for negative testing)
48)What are 3 categories of steps in Step Generator?

answer: Function; Test object; Utility object
49)What is the function of the auto expend VBScript syntax feature in Expert view?

answer: to help with programming
50)What is the function of the VBScript With statement?

answer: Edit -> advance -> Apply with
51)What is the function of breakpoints?

answer: Allows debug the code.
52)What are the advantages of retrieving the values of the properties of an object?

answer: Create checkpoints; create your own logic; populate a datasheet faster.
53)Which command will you use in QuickTest Pro to retrieve the value of the enabled property of a button in an application?

answer: RO property (runtime)
54)What is the difference between constants and variables?

answer: constant can’t be changed and variable can be changed.
55)What are dynamic objects?

answer: Dynamic objects are changed during time of test execution.
56)What is the function of a Description object?

answer: To hold a property value.
57)What are the steps involved in building a programmatic description of dynamic objects?

answer: 1. Identify the object class. 2. Select object properties. 3. Create a programmatic description.
58)What are the additional uses of programmatic descriptions?

answer: bypass the object repository.
59)What is the function of the Is operator?

answer: Compare two objects.
60)What is the function of the Set operator?

answer: Set a variable to an object.
61)What does the split function do?

answer: Returns a zero-based, one-dimensional array containing a specified number of substrings.
62)What are the VBScript functions that invoke dialog boxes to interact with users?

answer: 1 . InputBox function: Displays a prompt in a dialog box, waits for the user to input text or click a button, and returns the contents of the text box.
2. MsgBox Function: Displays a message in a dialog box, waits for the user to click a button, and returns a value indicating which button the user clicked.
63)Which method do you use to retrieve data from the WebList object?
64)What is difference between the For..Next and While..Wend statements?
65)What is the function of GetSheet method in Data Table?

answer: Only sets focus on the current sheet.
66)Which property do you use to retrieve or assign data into a cell in a Data Table object?
67)Give a scenario in which you may require to access data from external sources.
68)What are the methods used to import data from and export data into a MS Excel worksheet? answer: import sheet and export sheet
69)What is the purpose of the Close method?
70)What are the methods of the TextStream object that are used for reading from a text file?
71)What are the advantages of creating a procedure in a test?

answer: to increase usability
72)What is the difference between a subroutine and function procedure?

answer: Function is always return a value
73)What is the advantage of associating a procedure with a test object?
74)How do you create a library file?

Interview Questions-Part1

1. What are SetToProperty, SetRoProperty, GetToProperty scripting?
2. What is the difference between version 6.5 and 8.2?
3. What is the difference between Normal mode and Fast mode?
4. How do you invoke the application through QTP?
5. How do you close the Task Manager through QTP?
6. How will you load the object during run time?
7. How will you handle the situation when object is not captured during record?
8. What is test object?
9. How QTP recognizes the objects stored in object repository
10. What is post recovery scenario?
11. What is reusable action and how the same can be implemented (process)
12. How will u integrate oracle with QTP
13. How QTP integrate with application
14. What is object repository?
15. What are all the fields present in object repository?
16. What is smart identification?
17. What are the mandatory properties for a text box (scenario?)
18. What is Checkpoint?
19. What is object?
20. What are the properties of object?
21. What is Action?
22. What will be there in Keyword view and Expert View?
23. What is regular expression how will u implement it
24. Where the checkpoints are stored
25. What is database checkpoint, how will u parameterize the database from separate data table
26. How will u handle application crash using recovery scenario manager (Step By Step Process)
27. What is Virtual Object?
28. What is the difference between calling a function and reusing an action?
29. How QTP support all types of applications (Platforms)
30. What is the difference between application testing and product testing?
31. What is throw object?
32. What is Run-time Data?
33. How will you enhance the script?
34. Can objects recogonised without repository?
35. Where did u automate in ur project
36. Any challenge that faced in ur project
37. Batch test,run action
38. Purpose of automation
39. Diff ways of parameterising
40. Error handled other than recovery scenario manager
41. Diff betw WR and QTP
42. What kind of errors can b handled?
43. How you used DDT in QTP?
44. Difference between keyword driven test and DDT?
45. How did you use regular expression in QTP and also in Win Runner?
46. How do you learn the object in QTP?
47. How will you handle custom object in QTP?
48. Differences in QTP and Win Runner.

49. Give us the Definition for Integration Testing, Regression Testing System Testing
50. How will you report the bug and explain the defect tracking Sheet you handled?
51. What In-string function will do?
52. What is L-trim function will do?
53. WinRunner and QTP difference?
54. In website, protocol has been changed http: to https what you will do? Tell me your Approach?
55. What Framework you are following?
56. How to load the object repository at run time?
57. How much strong on VB and C?
58. How to compare the 2 strings?
59. What is the Silent mode in WinRunner?
60. Have you worked with Quality Center?
61. Have you used Test Director?
62. What is QTP Test Frame work?
63. Definitions for Keyword view and Tree View?
64. What is Smart Identification?
65. What is Object Repository?
66. What is your experience level in QTP?
67. What is your Role and Responsibilities In QTP with your current organisation?


68. Explain the following:
· Import and Export of files.
· Random testing of 500 test cases.
· Invoking of application
· Opening notepad in QTP &Writing of Test Result in Notepad.
· Merging of Two Repositories
· Datafile / Verification of data file when file is not available in local system.
· Business process component / Types and usage.
· Opening of notepad in QTP to write and execute the coding.
· How to find local host name using QTP
· How to handle exception when data table is not available in local host system or Path is not correct (Explain Statement with example)
· Runtime dynamic settings.
· Script generated after applying database check point.
· Script generated at the time of setting runtime property.
· Types of exception handling and script for that.
· Scripting