Tuesday 28 May 2013

QTP Interview Questions for 2+ exp


1. Explain QTP automation framework.

2. What is HYBRID framework?

3. What are the Features & Benefits of QTP?

4. What are the types of Object Repositories in QTP?

5. Which object repository we use in real time and can we merge 2 object repostiory and

how? 
as said there r 2 types of object repository i.e.

1) per action

2) shared mode

by default its per action but in real time we use shared mode.

yaa we can merge two obj rep by an option " merge object

repositories in Quick Test Plus.

6. Explain the concept of object repository.

7. How QTP recognizes objects?

8. WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP? 
1)the use of functional generator in
qtp is which lists out

the all the built in functions in qtp and helps you to

write the vb script for un known objects.

2)it is also used to reduce the typing mistakes & synta

errors


9. What is User defined function in QTP 
user defined function is nothing but ,u can define ur own

fuction for particular functionality.

Normaly we will create user defined functions for the

reusable functionality(which is available in ur

application)

10. How we can add actions in the test using QTP? 
there four actions call to action ,copy of action,call to

exesitng action,call to winner,split action just right

click on any one select it



11. How to write script in qtp(vbscript), I mean without application deployed..and how to call

script1 into script2?
 runaction actionname(iteration mode,iteration

range,parameters)

12What is the differnce between action & script? 
A script can have multiple actions.

A script is a test case which have multiple actions.

For an example, for an functional testing you can single

action which can be considered as a script

For integration testing you

can add multiple actions which

is also considered together as a script

12. what will happen in object repository(shared) if we call an existing action from an

external action? and what happen in object repository(per action)if we call an existing

action from an external action?

13. Suppose I have 5 Actions in my Test script. Out off which i want to make 3rd action as

my start-up action. How should i make it?

14. What is the difference between Call Run action and copy of action?

15. What are reusable actions?

16. What is the difference between functions and actions in QTP?

17. What is the difference between function and sub-routine.?

18. What is batch testing?

19. HOW TO DO THE BATCH TESTING USING QTP?

20. In how many ways you perform batchtesting?

21. Write a sample script/ small code snippet to COUNT TOTAL NUMBER OF HYPERLINKS on

a webpage.

22. Write a sample script/ small code snippet to select any radio-button or checkbox on a

webpage.

23. What is descriptive programming.? What are it’s pros and cons.?

24. Have you ever written a compiled module? If yes tell me about some of the functions

that you wrote.

Ans: I Used the functions for Capturing the dynamic data during runtime. Function

used for Capturing Desktop, browser and pages.



25. Can you do more than just capture and playback in QTP?

26. What is the difference between check point and output value.

27. Discuss QTP Environment.

28. Differentiate the two Object Repository Types of QTP.

29. How to handle dynamic objects in QTP?

30. How many checkpoints can be used in QTP.?

31. Is it possible to connect QTP with QC.? If Yes then how.?

32. Can the defects be logged automatically in QC for a script getting failed of a testcase.?

If Yes then how.?

33. What is a Run-Time Data Table? Where can I find and view this table?

34. What is the difference between image checkpoint and bitmap checkpoint

35. What is the concept of checkpoint declaration in the QTP mainly for the Objects, Pages,

Text and Tables ?

36. What is the limitation to XML Checkpoints?

37. What is the use of Accessibility check point?

38. Where is the bitmap checkpoint be saved?

39. In how many ways we can add check points to an application using QTP.?

40. What is the difference between Table checkpoint and Database checkpoint in QTP?

41. What is parameterization? How we can implement it in QTP.?

42. In how many ways does parameterization can be done in QTP?

43. How does Parameterization and Data-Driving relate to each other in QTP?

44. What are the properties you would use for identifying a browser & page when using

descriptive programming ?

45. What are the different scripting languages you could use when working with QTP ?

46. Explain the keyword createobject with an example.

47. How to handle the exceptions using recovery secnario manager in QTP?

48. How to use the Object spy in QTP?

49. what is the use of Text output value in Qtp?

50. What is the file extension of the code file & object repository file in QTP?

51. Can we merge two object repositories.? If Yes then How.?



52. How to make arguments optional in a function?

53. How to covert a String to an integer?

54. Inserting a Call to Action is not Importing all columns in Datatable of globalsheet. Why?

55. How to supress warnings from the "Test results page"?

56. When we try to use test run option "Run from Step", the browser is not launching

automatically why?

57. Does QTP is "Unicode" compatible?

58. How to "Turn Off" QTP results after running a Script?

59. How to verify the Cursor focus of a certain field?

60. How to handle Run-time errors in QTP?

61. How to change the run-time value of a property for an object?

62. How to retrieve the property of an object?

63. How to open any application during Scripting?

64. What Types of properties that QTP learns while recording?

65. Can we Script any test case with out having Object repository? or Using Object

Repository is a must?

66. How to execute a WinRunner Script in QTP?

67. 3 differences between QTP & Winrunner?

68. How to add a runtime parameter to a datasheet?

69. What scripting language is QTP of ?

70. How we can Analyze the Checkpoint results.?

71. what do you call the window testdirector-testlab?

72. How to Import data from a ".xls" file to Data table during Runtime.

73. How to export data present in Datatable to an ".xls" file?

74. Where can I find information on the IE Document Object Model?

75. How to terminate an application that is not responding?

76. How to record on non standard menus?

77. How to configure Quick Test to record on Embedded HTML Controls?

78. How do I launch a new browser from a test?

79. How do I make the test prompt the user for input while it is running?

80. How to remove result files from old tests?

81. How to change the logical name of a Test Object?

82. What is the significance of “Mic.ini file” in QTP.?How we can modify it.?

83. How to change the registry settings for QTP?

84. How to use Environment variable?

85. Does Quick Test have any debugging capabilities?

86. What command-line arguments can I use when launching Quick Test?



87. I have a Microsoft Access database that contains data I would like to use in my test.

How do I do this?

88. How do I add a manual wait step to my test?

89. How the Smart identification mechanism works ?

90. What are the properties used by the Smart Identification mechanism?

91. Can I change the Active Screen page which is shown on every new test?

92. What is ACTION TEMPLATE in QTP? How we can create it?

93. How to pass parameters when calling actions?

94. How to configure the report to show only error (by default)?

95. What is the purpose of Object spy?

96. What is the return value of the ‘Quit’ Method?

97. What is the purpose of loading QTP Add-Ins?

98. Can we re-use the user defined Environment variables?

99. What is Object model ?

100. Can A user use object repository file for two different tests which Are running at the

same time??

101. How do you comment your script?

102. How do you handle pop-up exceptions?

103. What are batch tests and how do you create and run batch tests?

104. How do you store and view batch test results?

105. What are function Key Strokes?

106. How to record the function Key Strokes?

107. What are Environment variable?

108. How do you write messages to the report?

109. What is the diff between SystemUtil.Run and Invoke?

110. How can I improve the working speed of QTP?

111. How do I maintain my test when my application changes?

112. What are the new features available in QTP 9.5?

113. What is the Extensions of Script, Repositories Files?

114. How do you automate the Quick Test settings?

115. Explain about Update Run in QTP ?

116. Several QTP scripts may be called in a BPT test. Each one may have different data in a

data table. How can the BA in BPT override and control data tables?

117. Can users who prefer descriptive programming in QTP have the ability to SaveAs

Descriptive? If this is chosen, the OR values could be saved in the script instead of the

logical values.

118. Will QTP/BPT work with descriptive programming or only through the object repository?

 

119. Win Runner uses TSL which is a derivative of C. QuickTestPro is VBScript. How are

you going to be able to port Win Runner scripts to QuickTestPro?

120. How are checkpoint baseline values and the purpose of the checkpoint

communicated back to the BA in BPT ?

121. Can it be confirmed that Quality Center works with Microsoft SQL Server?


1 comment: