Вы находитесь на странице: 1из 37

I have so many questions in my mind when I think of any interview

questions for Software testing / QA Engineer. Would you be able to


answer all of them? ;)

1. What is Software Testing?


2. What is the Purpose of Testing?
3. What types of testing do testers perform?
4. What is the Outcome of Testing?
5. What kind of testing have you done?
6. What is the need for testing?
7. What are the entry criteria for Functionality and Performance
testing?
8. What is test metrics?
9. Why do you go for White box testing, when Black box testing is
available?
10. What are the entry criteria for Automation testing?
11. When to start and Stop Testing?
12. What is Quality?
13. What is Baseline document, Can you say any two?
14. What is verification?
15. What is validation?
16. What is quality assurance?
17. What is quality control?
18. What is SDLC and TDLC?
19. What are the Qualities of a Tester?
20. When to start and Stop Testing?
21. What are the various levels of testing?
22. What are the types of testing you know and you experienced?
23. What exactly is Heuristic checklist approach for unit testing?
24. After completing testing, what would you deliver to the client?
25. What is a Test Bed?
26. What is a Data Guidelines?
27. Why do you go for Test Bed?
28. What is Severity and Priority and who will decide what?
29. Can Automation testing replace manual testing? If it so, how?
30. What is a test case?
31. What is a test condition?
32. What is the test script?
33. What is the test data?
34. What is an Inconsistent bug?
35. What is the difference between Re-testing and Regression testing?
36. What are the different types of testing techniques?
37. What are the different types of test case techniques?
38. What are the risks involved in testing?
39. Differentiate Test bed and Test Environment?
40. What ifs the difference between defect, error, bug, failure, fault?
41. What is the difference between quality and testing?
42. What is the difference between White & Black Box Testing?
43. What is the difference between Quality Assurance and Quality
Control?
44. What is the difference between Testing and debugging?
45. What is the difference between bug and defect?
46. What is the difference between verification and validation?
47. What is the difference between functional spec. and Business
requirement specification?
48. What is the difference between unit testing and integration
testing?
49. What is the diff between Volume & Load?
50. What is diff between Volume & Stress?
51. What is the diff between Stress & Load Testing?
52. What is the Diff between Two Tier & Three tier Architecture?
53. What is the diff between Client Server & Web Based Testing?
54. What is the diff between Integration & System Testing?
55. What is the Diff between Code Walkthrough & Code Review?
56. What is the diff between walkthrough and inspection?
57. What is the Diff between SIT & IST?
58. What is the Diff between static and dynamic?
59. What is the diff between alpha testing and beta testing?
60. What are the Minimum requirements to start testing?
61. What is Smoke Testing & when it will be done?
62. What is Adhoc Testing? When it can be done?
63. What is cookie testing?
64. What is security testing?
65. What is database testing?
66. What is the relation ship between Quality & Testing?
67. How do you determine, what to be tested?
68. How do you go about testing a project?
69. What is the Initial Stage of testing?
70. What is Web Based Application Testing?
71. What is Client Server Application Testing?
72. What is Two Tier & Three tier Architecture?
73. What is the use of Functional Specification?
74. Why do we prepare test condition, test cases, test script (Before
Starting Testing)?
75. Is it not waste of time in preparing the test condition, test case &
Test Script?
76. How do you go about testing of Web Application?
77. How do you go about testing of Client Server Application?
78. What is meant by Static Testing?
79. Can the static testing be done for both Web & Client Server
Application?
80. In the Static Testing, what all can be tested?
81. Can test condition, test case & test script help you in performing
the static testing?
82. What is meant by dynamic testing?
83. Is the dynamic testing a functional testing?
84. Is the Static testing a functional testing?
85. What are the functional testing you perform?
86. What is meant by Alpha Testing?
87. What kind of Document you need for going for an Functional
testing?
88. What is meant by Beta Testing?
89. At what stage the unit testing has to be done?
90 Who can perform the Unit Testing?
91. When will the Verification & Validation be done?
92. What is meant by Code Walkthrough?
93. What is meant Code Review?
94. What is the testing that a tester performs at the end of Unit
Testing?
95. What are the things, you prefer & Prepare before starting Testing?
96. What is Integration Testing?
97. What is Incremental Integration Testing?
98. What is meant by System Testing?
99. What is meant by SIT?
100 .When do you go for Integration Testing?
101 Can the System testing be done at any stage?
102. What are stubs & drivers?
103. What is the Concept of Up-Down & Down-Up in Testing in
integration testing?
104. What is the final Stage of Integration Testing?
105. Where in the SDLC, the Testing Starts?
106. What is the Outcome of Integration Testing?
107. What is meant by GUI Testing?
108. What is meant by Back-End Testing?
109. What are the features, you take care in Prototype testing?
110. What is Mutation testing & when can it be done?
111. What is Compatibility Testing?
112. What is Usability Testing?
113 What is the Importance of testing?
114. What is meant by regression Testing?
115. When we prefer Regression & what are the stages where we go
for Regression Testing?
116. What is performance testing?
117. What is the Performance testing; those can be done Manually &
Automatically?
118 What is Volume, Stress & Load Testing?
119. What is a Bug?
120. What is a Defect?
121. What is the defect Life Cycle?
122. What is the Priority in fixing the Bugs?
123. Explain the Severity you rate for the bugs found?
124. Diff between UAT & IST?
125. What is meant by UAT?
126. What all are the requirements needed for UAT?
127. What are the docs required for Performance Testing?
128. What is risk analysis?
129. How to do risk management?
130. What are test closure documents?
131. What is traceability matrix?
132. What ways you followed for defect management?

and finally
133. What is diff betn Smoke Testing and Sanity Testing?

There are two types of test types, Smoke and


Sanity. What they are exactly? Here we go.....
The general definition (related to Hardware) of Smoke Testing is:
Smoke testing is a safe harmless procedure of blowing smoke into
parts of the
sewer and drain lines to detect sources of unwanted leaks and sources
of sewer odors.It is related to s/w, the definition is Smoke testing is
non-exhaustive software testing, ascertaining that the most crucial
functions of a program work, but not bothering with finer details.
Sanity testing is a cursory testing; it is performed whenever a cursory
testing is sufficient to prove the application is functioning according to
specifications. This level of testing is a subset of regression testing. It
normally includes a set of core tests of basic GUI functionality to
demonstrate
connectivity to the database, application servers, printers, etc.
Smoke Testing and Sanity Testing In greater details...

Smoke Test:
When a build is received, a smoke test is run to ascertain if
the build is stable and it can be considered for further testing. Smoke
testing can
be done for testing the stability of any interim build. Smoke testing can
be executed for platform qualification tests.

Sanity testing:
Once a new build is obtained with minor revisions, instead of doing a
through regression, sanity is performed so as to ascertain the build has
indeed
rectified the issues and no further issue has been introduced by the
fixes. Its generally a subset of regression testing and a group of test
cases are
executed that are related with the changes made to the app.

Generally, when multiple cycles of testing are executed, sanity testing


may be done during the later cycles after through regression cycles.

Difference between Smoke Testing and Sanity Testing:

Smoke testing originated in the hardware testing practice of turning on


a new piece of hardware for the first time and considering it a success
if it does
not catch fire and smoke. In software industry, smoke testing is a
shallow and wide approach whereby all areas of the application
without getting into
too deep, is tested. A sanity test is a narrow regression test that
focuses on one or a few areas of functionality. Sanity testing is usually
narrow and
deep.

A smoke test is scripted--either using a written set of tests or an


automated test. A sanity test is usually unscripted.

A Smoke test is designed to touch every part of the application in a


cursory way. It's is shallow and wide. A Sanity test is used to determine
a small
section of the application is still working after a minor change.

Smoke testing will be conducted to ensure whether the most crucial


functions of a program work, but not bothering with finer details. (Such
as build
verification). Sanity testing is a cursory testing; it is performed
whenever a cursory testing is sufficient to prove the application is
functioning
according to specifications. This level of testing is a subset of
regression testing.

Smoke testing is normal health check up to a build of an application


before taking it to testing in depth. Sanity testing is to verify whether
requirement
s are met or not, checking all features breadth-first.

Load Testing Interview Questions


What are the default timeout settings for HTTP connect
What is the difference between lr_endtranscation"transcationname",
What is Load,Stress,Volume and Performance testing.
How do you work in bug log?
Can we do performance testing without using any tool?
What is the difference between Load testing and Performace Testing?
How you analyze graphics in loadrunner?
Why do you need to parameterize fields in your virtual user script?
what are the types of Bottlenecks in Performance testing?
What are the protocols did you use while testing a web application?
What is the basic flow in load testing. i.e. how 3 components
What criteria would you use to select Web transactions for load
testing?
How to identify the memory leakage using load runner
What should be analyzed Load Testing
How can data caching have a negative effect on load testing results?
What is the difference between lr_error_message and
Why it is recommended to add verification checks
How to work on database check points?
What are the types of check points is available in LoadRunner?
How To use Regular Expression in Load Runner for web functions?
when the script is running we find some values that
After complition of functionality testing what makes us
what are the different components in deferred graphs
In what situation would you want to parameterize a text verification
check?
what is deferred graphs?
What is the difference between Load Test and Volume Test
what are the load testing tools?
We are using Load Runner v8.0. for testing the load of a .NET
application
How can we decide the Page is under load or stress?
What is the difference between the concurrent users and simultaneous
what is performance baseline testing and at what
How is the performance behavior of the web-application
Compare between load and performance testing
What is difference between load testing and intersystem testing?
what r the uses of load testing ?
What criteria would you use to select Web transactions for load
testing?
What usually indicates that your virtual user script
What are the reasons why parameterization is necessary
What are the reasons why parameterization is necessary
what is the difference between Scalability testing and load testing?
How can you handle the Session problem while replying
How do you do the performance testing and explain
What do you mean by "No Data available for current settings"
What are the benefits of creating multiple actions
For what purpose are virtual users created?
What is load and stress testing?
How to test performance of the application manualy?

QA testing - Interview Questions

What is defect leakage?


What is SQA Activities?
What are the demerits of winrunner?
What is an exit and entry criteria in a Test Plan ?
Explain about Metrics and types of metrics like schedule
What is use case?
What is meant by Equivalence Partitioning ?
How do you ensure the quality of the product?
What do we do when there is a known bug at the
Explain the techniques used to estimate the number
What is the difference in writing the test cases for
What is the difference between test cases and use cases?
Describe me to the basic elements you put
How can you say your project testing is completed?
What is configuration Management?
What is the importance of a requirements traceability
How to calculate the estimate for test case
What you do when you have the BRD?
What is "bug leakage?"
What is a Risk ?
What is walkthrough and inspection?
What is Release Acceptance Testing ?
What are the key elements for creating test plan?
What is System Integration Testing
What is "bug release?"
In general, how do you see automation fitting into
How you used white box and block box technologies
Difference between Configuration Management
What is the difference between System Testing,
Describe me any bug which may arise at the time
Describe to me when you would consider employing
What do you mean by Requirements coverage ?
Describe to the basic elements you put in a defect report?
Describe bottom-up and top-down approaches
What is Forced Error Testing ?
When is the best time for system testing?
Give example of a bug having high priority and low severity ?
What is the role of QA in a project development?
What are the important components of the risk?
What is the difference between stub and driver?
How do you scope, organize, and execute a test project?
What is a deliverable ? Can you please mention the
What is the role of QA in a company that
What is the difference between the test
How can we test the white page
What is heuristic checklist used in Unit Testing?
Difference between the testing & Quality Assurance job.
What is Data Integrity Testing ?
What are the parameters of Quality cost?
How do u conduct boundary analysis testing for
How did you use white box and block box in page
What is the Compatibility testing difference between
What is the strength and weakness in testing
Could we test window's calculator through winrunner.
What metrics used to measure the size of the software?
If the actual result doesn't match with expected
What are the different methodologies used in testing ?
What are the modes of winrunner ?
What are the bottlenecks involved in performance testing?
What is the difference between Quality Assurance
What is the difference between Patch, Build and Pilot.
How can we perform testing without expected results?
How do you decide when you have 'tested enough?'
What are the contents of Risk management Plan?
What is the difference between functional testing
QTP Interview Questions

What is the difference Between QTP and Win Runner?


Can we do Load Testing with QTP?
What is batch run?
What is API?
What is the use of Regular expression?
How to make arguments optional in a function?
How to write script in QTP?
What is Optional step?
What is keyword view and Expert view in QTP?
What is Compile Module in QTP?
How to get the object property?
What is test object model in QTP?
What is a test strategy?
What is the use of Debug Viewer?
How to handle run time errors?
What type of VB script u had done in expert view?
What is Unicode Compatibility?
Is it possible to run QTP scripts created in IE 6.0 in IE 7.0?
What is the descriptive programming?
What is parameterization?
How to handle Run-time errors?
What is iteration?
What is the use of virtual objects?
What is test data?
What is data table?
How to export QTP results to an ".xls" file?
What is fragmentation and paging?
How to parameterize in QTP?
What scripting language QTP of?
What are the types of Object Repositories in QTP?
How do you configure QTP AND Test director?
What is TOM in QTP?
How we can take data in the username field text box
How we can merge the object repositories?
What is clean sweep?
How can we merge the object repositories?
How to call a function in QTP?
How to Test the mainframe application?
What is descriptive.create () in QTP?
How to do Batch run in QTP?
What is meant by Repository?
How can we get the result from Windows XP
Explain QTP testing process?
How you automate test scripts
What does VBS file contain?
What is an environment variable?
How can we disable popup blocker?
What is standalone database?
What is QTP batch testing tool?
What is Object Spy?
What is the difference Between Low-Level and Normal
What is the extension of script and object repository files?
Which scripting language QTP is using?
What kind of errors can b handled in QTP in
What are the file extensions for per-action, shared
What is the difference between test strategy & test plan?
How to capture a window in QTP?
What is active screen?
How can we merge the object repositories?
What is the use of environment variables?
How to connect to data base?
How to create runtime property for an object?
What are advance features in QTP?
What is VBS file?
What is the use of "function generator" in QTP?
What is descriptive Programming in QTP?
What is recovery scenario manager?
How to call a function in QTP?
What is Expert view?
How to change the Default synchronization method
What is the use of QTP automation frame work?
How many ways we can parameterize data in QTP?
What is smart identification?
How we can add actions in the test using QTP?
What is XML checkpoint in QTP?
What is QTP batch testing tool?
What does it mean when a check point is in red
How to add Dynamic Objects to object repository?
How to suppress warnings from the "Test results page "?
In how many ways we can add check points to an
Explain synchronization types in QTP
How to merge object repositories?
What is key word driven frame work how to use
How can we close all web browsers which are
What is configuration management?
What is the process to follow between writing the test
What is Tree view?
What is the difference Between Call Run action and
What are the abbreviations for TSR and MTR?
How will you handle the situation when object is not
How to call script1 into script2?
How to interact tool & application build in QTP?
What is the extension for QTP files?
What is the difference between QTP 8.0 & 9.0?
What are the challenges do we face while testing web
What is Active Screen in QTP?
What is Virtual object wizard in QTP?
How to export QTP results to an .xls file?
How to open an application through scripting?
What is QTP automation frame work?
What is the difference between image and bitmap check point
How to create a Runtime property for an object in QTP?
What is the difference between rational rose and QTP?
How iteration is related to Test Results in QTP?
What is difference between wr 8.2 & QTP 8.2?
How can we export test results to an excel sheet in QTP?
What is file database?
How do we write a regular expression for date
How do check the links in a webpage?
Which functionalities of QTP used in banking project?
How many types of Recordings are there in QTP?
How to get line numbers in your editor in expert view?
What is the use of Accessibility check point?
Explain the check points in QTP?
How you automate test scripts one by one or module
What is the exact difference between Test and
How to do the batch testing using QTP?
How to display user name and pwd (script) in data
How to parameterize a test with data base table
Do we get any issues if we run the test script on
What is the scripting language used in QTP?
Which Databases supports for QTP?
When the Low Level Recording is Used in QTP?
How to export data present in Data table to an ".xls" file?
What is the Exact Meaning of Environment Variables?
How QTP recognizes Objects in AUT?
What is the difference between Image check-point and
What is the difference between Normal mode and
What is throw object?
How to capture data from images in QTP and produce
What are the GUI Test Cases and performance
What is the difference between "call to action" and "call
What is the difference between QTP 8.0 & 9.0?
How to Parameterize Object repository in QTP?
What is the current version of QTP?
How to retrieve the property of an object?
How Does Run time data (Parameterization) is handled
How QTP does identifies the object in the application
How to execute a Win Runner Script in QTP?
What are the QTP advantages and disadvantages?
What is the Command used to start the QTP
How to handle Recovery scenario in QTP?
What is the difference between link and hyperlink?
What is the Framework & Architecture Of Your Project?
What is the process to follow between writing the test
How do u write a regular expression for date (dd/mm/yyyy) field?
How to open any application during Scripting in QTP?
Explain about reusable actions?
How to capture screen shots when an error occurs?
What is the limitation to XML Checkpoints?
What is the difference between wr and QTP in detail?
What is time parameter?
How to parameterize a test with data base table or excel sheet?
How many check points are there in QTP and what are they?
How to change the run-time value of a property for
What is the Difference between image checkpoint and
What are recovery management techniques?
How to capture tool tip in QTP and which check
What is descriptive programming?
What is the difference between "call to action" and "
How to make an Action as reusable?
Where the text version of script file located in file system?
Explain about the Test Fusion Report of QTP?
What is the difference between action & script?
What are the most frequent errors you faced while
What is the difference between QTP 8.2 and 9.0 version
What is output value?
How can we get the result from Windows XP Command Window?

2) What are the types object Repositories in QTP.

QTP Supports 2 types of Object Repository

1) Shared Object Repository (also called Global)


2) Per-Action Object Repository, (also called Local)

Per-Action Object Repository is used by default. The extension for Per-


Action repository is ".mtr" .

Shared Object Repository is preferable while dealing with dynamic


objects which are called in multiple tests. The extension is ".tsr"

3) Can we call QTP test from another test using scripting.


Suppose there are 4 tests and I want to call these tests in a
main script. Is this possible in QTP?

Yes. You can call 4 or even more scripts in your tests.For this, first you
will need to make the Actions in the corresponding scripts re-
usable.Then from the destination script you can make calls to these
re-usable actions.

4) What is action split and the purpose of using this in QTP?

Action split is to divide an existing action into two parts.The purpose is


to divide actions based on their functionality to improve code re-use.

5) How will you handle Java tree in QTP ?

Foremost you will select Java Add - In and launch QTP. Next step
record operations on the Java Tree. If you face an issue while
recording, you can select Tools > Object Identification > Java, tree
object and make changes in mandatory and assistive properties to
enable identification.

Tip: You can base you answer on similar lines for any other object of
any environment. For example : If the question is how will check SAP
checkbox , You say , first I will select SAP Add in ... and so on.

6) Explain how QTP identifies object ?


QTP identifies any GUI Object based on its corresponding properties.
While recording, QTP will identify and store peculiar properties (as
defined in the Object Identification settings) in the object repository of
the GUI object . At run-time, QTP will compare the stored property
values with the on-screen properties, to uniquely identify the GUI
object.

Learn more about Object Identification

7) How many types of recording modes in QTP? Which will be


used when ?

QTP supports 3 types of recording modes

1. Normal mode also called Contextual

2. Low-level recording mode

3.Analog mode

Normal Mode: It is the default recording mode and takes full


advantage of QTP's Test Object Model. It recognizes objects
regardless of their position on -screen. This is the preferred mode
of recoding and is used for most of the automation activities.

Low-level recording mode: This mode records the exact x,y co-
ordinates of your mouse operations. It is helpful in testing hashmaps.
It is useful for recording objects not identified by normal mode of QTP.

Analog mode: This mode records exact mouse and keyboard


"movements" you perform in relation to the screen / application
window. This mode is useful for the operation such as drawing a
picture, recording signature., drag and drop operations.

Learn more about Recording Modes in QTP

8) How will you call from one action to another action ?


We can call an action in 2 ways

1) Call to copy of Action. - In this ,the Action Object Repository ,


Script and Datable will be copied to the destination Test Script.
2) Call to Existing Action. - In this, Object Repository , Script and
Datable will NOT be copied but a call (reference) would be made to
the Action in the source script.

9) What are Virtual Objects?

Your application may contain objects that behave like standard


objects but are not recognized by QTP. You can define these
objects as virtual objects and map them to standard classes,
such as a button or a check box. QTP emulates the user's action on the
virtual object during the run session. In the test results, the virtual
object is displayed as though it is a standard class object.

For example, suppose you want to record a test on a Web page


containing a bitmap that the user clicks. The bitmap contains several
different hyperlink areas, and each area opens a different destination
page. When you record a test, the Web site matches the coordinates of
the click on the bitmap and opens the destination page.

To enable QTP to click at the required coordinates during a run session,


you can define a virtual object for an area of the bitmap, which
includes those coordinates, and map it to the button class. When you
run a test, QTP clicks the bitmap in the area defined as a virtual object
so that the Web site opens the correct destination page.

10) How to perform Cross platform testing and Cross browser


testing using QTP? Can u explain giving some example?

You will need to create separate Actions which take care of


different OS and Browsers

Cross Platform Testing:

Using the Built in Environment Variable you can dig up the OS


information.

Eg. Platform = Environment("OS"). Then based on the Platform you


need to call the actions which you recorded on that particular platform.
Cross Browser Testing:

Using this code Eg. Browser("Core Values").GetROProperty("version")


you can extract the Browser and its correspondin version. Ex: Internet
Explorer 6 or Netscape 5. Based on this value you call the actions
which are relevant to that browser.

11) What is logical name of the object?

Logical name is a name given by QTP while creating an object in


the repository to uniquely identify it from other objects in the
application. This name would be used by the QTP to map the object
name in script with its corresponding description in the object
repository. Ex: Browser("Browser").Page("Guru99") Here Guru99
is the logical name of the object.

12) What is descriptive programming?

Typically ,an object and its properties must be recorded in the Object
Repository to enable QTP to perform action s on it.

Using descriptive programming , you do not store the object


and its property values in the Object repository but mention the
property value pair directly in the script.

The idea behind descriptive programming is not bypass the object


repository but help recogonize dynamic objects.

Learn more about Descriptive Programming

13)What are the properties you would use for identifying a


browser & page when using descriptive programming ?

You can use the name property

ex: Browser("name:="xxx"").page("name:="xxxx"").....
OR

We can also use the property "micClass".


ex: Browser("micClass:=browser").page("micClass:=page")....

14)Can we record an application running on a remote machine


using QTP ?

Yes .you can record remote application provided you are accessing
application through the local browser not via remoter like citrix.

If you are still unable to record it is advisable install QTP and


application, on the same machine

15) Explain the keyword CreateObject with an example.

Creates and returns a reference to an Automation object

SYNTAX: CreateObject(servername.typename [, location])

Arguments
servername: Required. The name of the application providing the
object.
typename : Required. The type or class of the object to create.
location : Optional. The name of the network server where the object
is to be created.

Example : Set IE = CreateObject("InternetExplorer.Application")

16) Can you switch between Per-Action and Shared Object


Repository ? If yes how ?

Yes .We can switch. Go to Test--->Settings--->Resources. Here you


have an option to choose repositories.

17) What is Object Spy ? How to Use it ?


Object Spy helps in determining the run & test time object
properties & methods of the application under test.

You can access object spy directly from the toolbar or from the Object
Repository Dialog Box.

It is very useful during Descriptive Programming

Learn more about Object Spy

18) When ordinal identifiers alone can make an object unique


then why they are not given top priority? Why it is first
mandatory and next assistive. Why we cannot go for ordinal
identifiers directly?

Consider the following -

a) If two objects are overlapped on each other than location based


object recognition will fail.

b) If only index based recognition is used your script will work but
script execution time will increase.

Hence mandatory and assistive properties are used.

19) What is the file extension of the code file in QTP?

Code file extension is script.mts

20) Explain in brief about the QTP Automation Object Model.

QTP Automation Object model deals with Automation of QTP itself.


Almost all configuration and functionality provided by QTP is
represented by QTP's Automation Object Model . Almost all dialog
boxes in QTP have a corresponding automation object which can set or
retrieved using the corresponding properties or methods in the
Automation Object Model.QTP Automation Objects can be used along
with standard VB programming elements like iterative loops or
conditional statements to help you design a script of choice.

21) What is the use of Text output value in QTP?

Text Output values enable you to capture text appearing on the


application under test during run-time.

If parameterized, text output values will capture values appearing in


each iteration which would be stored in the run-time data table for
further analysis.

22) What is Step Generator?

Step Generator enables use to Add Test Steps in your script. Using
step generator you can add steps to your script without actually
recording it.

23) How to make QTP understand the difference amongst the


same type of objects .Suppose there are 5 check boxes in a
page and I have to choose the 2nd one, how to do that through
script?

You can use ordinal identifiers like index along with a little
descriptive programming for object recognition.

Watch a video of this example.

24) What is Test Fusion Report ?.

Test Fusion Report , displays all aspects of a test run and is organized
in a Tree format.

It gives details of each step executed for all iterations.


It also gives Run-time data table, Screen shots and movie of the test
run if opted.

25) How can you handle exceptions in QTP?

In QTP Exceptional handling is done by using

a. Recovery Scenarios.
b. Using “On Error” statement

In Recovery scenario you have to define.


1. Triggered Events.
2. Recovery steps.
3. Post Recovery Test-Run.

At Script Level you can use the On Error Resume Next and On Error Go
to 0 statement.

26) What are the types of environment variables in QTP ?

Environment variables in QTP are of three types:

1) Built-in (Read only)

2) User-defined Internal (Read only)

3) User-defined External (Read/Write)

You Set the Environment Variable using the following syntax

Environment.Value( "name") = "Guru99"

You can Retrieve the Environment Variable using following syntax

Environment.Value("name") -- This will retrun name as Guru99

Environment.Value("OS") -- This will return your system OS


27) What is the Difference between Bitmap Check point &
Image Check point?
Bitmap checkpoint does a pixel to pixel comparison of an image or
part of an image.

Image checkpoint does do a pixel to pixel comparison but instead


compare image properties like alt text , destination url etc.

28) What is the difference between functions and actions in


QTP?

Actions have their own Object Repository & Data Table. Actions help
make your Test modular and increase reuse. Example: You can divide
your script into Actions based on functionality like Login, Logout etc.

Functions is a VB Script programming concept and do not have their


own Object Repository or Data Table. Functions help in re-use of your
code. Ex: You can create a Function in your script to concatenate two
strings.

29) What is keyword view and Expert view in QTP? -

Keyword View is an icon based view which shows test steps in


tabular format. It also automatically generates documentation for the
test steps.

Expert View gives the corresponding VB Script statement for every


test step in the Keyword view.

30) Explain QTP Testing process? -

Quick Test testing process consists of 6 main phases:

1) Create your test plan - This is preparatory phase where you


identify the exact test steps, test data and expected results for you
automated test. You also identify the environment and system
configurations required to create and run your QTP Tests.
2) Recording a session on your application - During this phase ,
you will execute test steps one by one on your AUT ,and QTP will
automatically record corresponding VB script statements for each step
performed.

3) Enhancing your test - In this stage you will insert checkpoints ,


output values , parameterization , programming logic like if…else loops
to enhance the logic of your test script.

4) Replay & Debug - After enhancements you will replay the script to
check whether its working properly and debug if necessary.

5) Run your Tests - In this phase you will perform the actual
execution of your Test Script.

6) Analyzing the test results - Once test run is complete, you will
analyze the results in the Test Fusion report generated.

7) Reporting defects - Any incidents identified needs to be reported.


If you are using Quality Center , defects can be automatically raised for
failed tests in QTP.

31) What are the different types of Test Automation


Frameworks ?

The types of Automation Frameworks are -

1) Linear Scripting - Record & Playback

2) The Test Library Architecture Framework.

3)The Data-Driven Testing Framework.

4)The Keyword-Driven or Table-Driven Testing Framework.

Learn more about Test Automation Frameworks.

32) How will you check a web application for broken links using
QTP?

You can use the Page Checkpoint which gives a count of valid/invalid
links on a page.
33) What is a Run-Time Data Table? Where can I find and view
this table?

Data like parameterized output , checkpoint values , output values are


stored in the Run-time Table. It is an xls file which is stored in the Test
Results Folder. It can also be accessed in the Test Fusion Report.

34) What is the difference between check point and output


value.

Check point is a verification point that compares a current value


for a specified property with the expected value for that property.
Based on this comparison, it will generate a PASS or FAIL status.

An output value is a value captured during the test run and can
be stored in a specified location like the Datable or even a variable.
Unlike Checkpoints, no PASS/FAIL status is generated.

34) How would you connect to database using vbscript ?

To connect to the database you must know

a) connection string of your server

b) username

c) password

d) DNS name

You can code the database connectivity command directly or you can
use the SQL Query tool provided by QTP.

35) What is QTP batch testing tool?

You can use the Batch testing tool to run multiple scripts. Once the
scripts are added in the tool , it will automatically open the scripts and
start executing them one after the other.
36) What are the drawbacks of QTP?

As of QTP version 10

1) Huge Tests in QTP consume lots of memory and increase CPU


utilization.

2) Since QTP stores results in HTML file (and not txt) the result folder
sometimes becomes big.

37) What is an Optional Step ?

A step when declared optional is not mandatory to be executed. If


the corresponding GUI object is present, QTP performs the operation
on it. If the GUI object is not present, QTP bypasses the optional step
and proceeds to execute the next step.

38) What is Reporter.ReportEvent ?

Reporter.Reportvent is standard method provided by QTP to send


custom messages to the test results window.

Syntax

Reporter.ReportEvent EventStatus, ReportStepName, Details [,


ImageFilePath]

where

EventStatus = 0 or micPass

1 or micFail

2 or micDone

3 or micWarning

Results can assume any status like Pass , Fail , Warning etc. You can
also send screenshot to the test results window.
39) How will you declare a variable in QTP ?

You declare using a DIM keyword. You assign value to the variable
using the SET keyword.

Ex.

Dim temp 'Will declare the temp variable

Set temp = 20 ' Will assign a value 20 to temp.

39) What is GetRoProperty ?

GetRoProperty is a standard method provided by QTP to fetch


property values of a run -time object.

40) What is smart Identification?

Typically, if even one of the on-screen object property does not match
the recorded object property. The test fails.

In smart identification, QTP does not give an error if the


property values do not match, but uses Base filter and Optional
Filter properties to uniquely identify an object. In Smart identification,
if a property value does not match the script does not fail but it
proceeds ahead to compare the next property. Smart identification can
be enabled in Object Identification Dialog box.

Learn more about SMART Identification

41) How would you export a Script from one PC to another in


QTP ?

We can make use of the "Generate Script" function available in


Object Identification, Test Settings and Tools/Options tab to create a
zip of the script at the source computer. These zip files then can be
imported into QTP at the destination computer.
42) Can launch two instances of QTP on the same machine ?

No. You can work with only single instance of QTP on the same
machine. But QTP itself can work on multiple instances of the
Application Under Test (AUT). Ex: QTP can handle multiple IE browser
windows.

43) Give the syntax to import/export xls into QTP.

DataTable.ImportSheet "..\..\TestData\Input.xls",1,dtGlobalSheet

DataTable.ExportSheet "..\..\Results\Output.xls","Global"

44) What is SetToProperty ?

SetToProperty changes property of an object stored in the Object


Repository. However these changes are not permanent.

45) What is the standard timing delay for web based


application in QTP ?

The standard delay is 60 seconds. This is can be changed in Test


Settigns.

46) What is the Action Conversion Tool ?

It is an in-built tool provided by QTP to convert Actions into


Business Process Components.

47) What is the extension for a function library ?

The extension is '.QFL'


48) If the Global Data sheet contains no data and the Local
Datasheet contains two rows of data, how many times will the
test iterate?

The test will iterate only once - global iteration.

49) What factors affect bitmap checkpoints ?

Bitmap checkpoints are affected by screen resolution and image


size.

50) What is Accessibility Checkpoint?

World Wide Web Consortium (W3C) came up with some instructions


and guidelines for Web-based technology and information systems
to make it easy for the disabled to access the web. For example
the standards make it mandatory to have an 'alt text' for an image. So
a blind person who is accessing the website, will use text - to -speech
converters and atleast understand what the image is about if not see
it. All these standards are checked by Accessibility Checkpoints.

QuickTest Pro Questions Only (1)

1. how many maximum actions can be performed in a single test


2. How to create the dynamic object repository in QTP?
3. What is difference between global sheet anh action sheet?
4. How to pass parameters from one action to another action.
5. How to perform Cross platform testing and Cross browser testing
using QTP?Can u explain giving some exampl
6. how to connect the database through QTP
7. How to open multiple instances of an application from QTP? 2. How
to recognize each instance and setting
8. This is the chain of question#: 15434What conditions we go for
Reusable Scripts and how we create and
9. Can we call QTP test from another test using scripting.Suppose there
are 4 tests and i want to call these
10. Is it possible to test a web application(java) with winrunner?
otherwise is it possible to check with
11. How can we insert Text check point and Bit map check point ? if
provide example script, it is greatefu
12. Can we mask a Code In .vbs file so that it is not viewable to others?

13. Is there any function to double click a particular row in a webtable?

14. what is the use of command tab in Debug viewer ?can we execute
any user defined queries
15. What is Analog recording,What is the difference between analog
recording and low level recording
16. what is database check point.
17. What is the use of function and sub function in QTP?
18. What is the new Version of QTP which is recently released in the
Market?
19. How to call a funtion present in dll file in QTP Script.
20. I have n iterations of test run in QTP. I want to see the results of
not only the latest (‘n’th) iteration
21. How to call from one action to another action in QTP?
22. What is the Difference Between Bit map Check point & Image
Check pointPlease explain in detailText &
23. How can we do block commenting in QTP?
24. How to get the column count and column name from resultset in
database connction program?
25. 1. How to write QTP scripts?2. Any related website resource to
learn QTP?3. What steps the to be follwed
26. How to check an XML schema (XML Schema Validation--from XML
file)? Ttell me about .XSD file format.
27. How to schedule tests in QTP?
28. Is Addins enough to work in Flex based applications? or do we have
to get a licence for multimedia for
29. how to identify a 'web element' class object while recording and
running in 'Event' mode of settings.
30. What are the new features available in QTP 8.2 compared with
earlier versions?
31. Hi forum. Could any body tell me what is AMDOCS, and what are its
models ? Best regrds.
32. What is difference between window(" ") and dialog(" ") in QTP while
creating script?
33. How do you retrieve the Class name of a Test Object
programmatically from within a script?
34. What is the best way to test UNIX (QTP, Winrunner or Xrunner)? If
QTP supports let me know the brief
35. What is the Recovery Scenerio can apllied for any telephone line
connection(Ex:BSNl,Airtel etc
36. what are advantages and disadvantages between internet explorer
and netscape navigator (or) Internet
37. Anybody with an experience of testing Mainframe applications. I
usually check the ActiveX and VB add-ins
38. Difference Between text and Textarea checkpoints in QTP
39. How to Handle dynamic WebList in QTP...Values in Weblist are
different
40. What is the Hotkey that can be used for Hitting spacebar?
41. We are trying to avoid that anybody see our script after we wrote
it. Did anybody know how to do this?
42. how can i insert database checkpoint in qtp-6.5
43. What are different execution modes available in QTP & explain
them.
44. How can we recognize objects in Flex application using QTP? When
I record scripts, it takes all objects
45. For the AS/400 application that takes data only thru the keyboard
input and not even single mouse click
46. How to write QTP test results to an Excel application
47. How to write recovery scenario for below questions and what are
the steps we will follow?if i click
48. If winrunner and QTP both are functional testing tools from the
same company.why a separate tool QTP
49. How do we test Links using Quick Test Professional and confirm
that the page we are requesting is seen
50. How do you test DLL files using QTP?
51. After importing external .xls datasheet in to Datatable of QTP, How
to set NO of iterations run for
52. How to test Dynamic web pages using QTP
53. How to record Flex (1.0) objects using QTP?Post the code which
works for this.
54. Advantage of using Mercury Quality Center over Test Director
55. How do we connect to Oracle database from QTP ?
56. Can any one pls tell me about how to configure the environment
variables in qtp and how to use the variables
57. What is the process for creating an automated test script using QTP
assuming you have reviewed the manual
58. How to use a data driver in QTP?
59. What is the method used to focus on particuler field.I need the
script.I will give example.I flights
60. 1)what is the advantage and disadvantage of using Virtual Object
wizard?2) How efficiently we can use
61. Without recording objects in Object Repository are we able to run
scripts?
62. Can we call a QTP script from a main script without making it
reusable?
63. wat is xml schema validation and how to perform schema
validation for a file.wat is *.XSD extention
64. Can any body expalin me the differences between a reusable and a
external action with example?
65. I need information on using FSO(file system object) also its
significance
66. How to Run a script recorded in English flavor of my application
and re-run the same script on different
67. How to write QTP test results to an Excel application, Please
provide the exact code if possible ASAPThanks
68. What are the limitations for XML Checkpoints in QTP 8.0?
69. how good is QTP for testing siebel applications?whether QTP
recognizes siebel objects or something else
70. How do I use text checkpoint in QTP as everytime I use this
checkpoint in the excel sheet and highlight
71. How is automation used in QTP for regreession testing. Please give
me a sample script.
72. Anybody explain me, the concept of checkpoint declaration in the
QTP mainly for the Objects, Pages, Text
73. How can we validate the PDF file recognization and its content with
the help of Mercury product QTP(Quick
74. What is Expert view in QTP?Can you explain with example?
75. What is the best way to do regression testing using QTP.
76. what is the use functions in QTP. public, private
77. How can we return values from userdefined function? anybody
provide code with small example its great
78. how to retrive/update database by writing code in expert viewIn
my case database is Accessmy dsn name="try"database
79. How can I import and/or merge an existing repository into my
current test?
81. Hi,I was set the repository as per test mode and recorded my
script. Now I wana to change the repository
82. What are Limitation of QTP?
83. what is difference between stub and driver?
84. What is meant by Source Control?
85. What is descriptive programming?
86. how to automate editing an XML file .because when i record the
editing on an XML file and run it,some
87. What are the disadvantages or drawbacks in QTP?
88. 1. Each test that you run is displayed into the screen ... I'm looking
for a way to run a test in background
89. I have faced one question in interviewhe has given one screen with
one bitmap and one edit box.The original
90. What qt plus ? How we merge the files in qtp?What is feasibility
study in automation?
91. when a script is recorded in quick test for connecting 10 rows in
the database, can we change script
92. How do you test siebel application using qtp?
93. How to get Traceability matrix from TD?
94. How to import a test case present in ".xls" file to TD under a Test
set?
95. How to attach a file to TD?
96. What do you to script when objects are removed from application?
97. How do you data drive an external spreadsheet?
98. Give me an example where you have used a COM interface in your
QTP project?
99. How long have you used the product?
100. How to get "FontSize" of a "WebEdit"?
101. Is there anyway to automatically update the Datasource name in
Database Checkpoints object when we migrate tests to a new release?
102. How to create a Runtime property for an object?
103. How to handle the exceptions using recovery scenario manager in
QTP ?
104. What is the use of Text output value in QTP?
105. Have you ever written a compiled module? If yes tell me about
some of the features.
106. I want to open a Notepad window without recording a test and I
do not want to use SystemUtil.Run command as well How do I do this?
107. What is the command in QTP to invoke IE Browser?
108. How to execute QTP script from command prompt?
109. How We will count the total number of web Links on a Page?
110. How you will creat a object in VB Script?
111. What is the difference between TSL & VBScript?
112. Write a Script if a button is enable or not?

QuickTest Pro Questions Only (2)


1.List me out the short cut keys for some functionalities in the
QTP....for example.......to record......to run....etc
2.What are the challenges do we face while testing webbased
applications using the automation tool QTP or any?
3.Do we get any issues if we run the testscript on different browsers?
What are the options we need to st in QTP?
4.How we can add actions in the test using QTP?
5.Does QTP provides any tools for parametarization?
6.What are recovery management techniques?
7.How we can merge the object repositories?say if we have two or
three object repositories then how we can merge them?is there any
option in qtp to merge the object repositories?
8.What is the difference between link and hyperlink?
9.Can some one help me how to compare thevalues from one sheet to
values in another sheet?suppose i have a field called temp in action1
and i also have temp in action2. i want to compare the values of those
two actions sheets data table? how can i do it using descriptive
programming?
10.How to do batch run in qtp? provide the steps?
11.Can we do qtp testing without creating objects in Dbject repository?
can we do it completely writing code i.e in expert view only. are there
any books for this?
12. In qtp,how to interact tool & application build?
13.Scenario:2 combo boxes.1st combo contains a,b,c,d.2nd combo
contains 10..20,20...30,30.40,...selecting 'a' shuld display
10.....20.,'b' shld display 20.......30.......and so on.tell d script?
2.Random testing of 500 test cases in qtp?
14.How to do the batch testing using qtp?
15. What is the use of "function generator " in qtp?
16. What is environment variables?
17. What is the use of virtual object?explain?
18. Difference between wr 8.2? how to integrate with some other
tools?
19. What is the function (how to do) the batch testing in test director
using manual testing procedure?
20. What is a test strategy & what is the difference between test
strategy & test plan?
21. What is descriptive programming when it is useful? & when to use
this?
22.How to invoke any recorded script in QTP with out using RECORD &
PLAYBACK CONCEPT?
23. If two text boxes are there in a "form". ....>A table contains some
records which contains usernames & password....what is the script we
need to write using descriptive programming concept....in QTP(simply
data driven test script of qtp)?
24. Can we run the scripts of qtp 8.2 in the qtp 7.0?
25. How to capture data from images in qtp and produce them in excel
sheet?
26. How to handle recovery scenario in QTP. give detailed explanation
about recovery scenario..
27. How we can take data in the username field text box into variable
in web application explain with example and give all functions to get
data into variables
28. What are the file extensions for pre-action,shared object repository
files and what is the extension for library files?
29. What are the most frequent errors you faced while executing your
scripts?
30. among all the check points what is the most important check
point?
31. How to write script in QTP(vbscript)...i mean with out application
deployed...and how to call script1 into script2?
32. How do you handle multiple banners(at the top the page,the
banner is scrolling) in a web page(donot take the name
property(regular expression))
33. How do you handle XML exceptions in QTP(here it is exception,not
the check point)
34. What is iteration? how it is related to test results in QTP
35. Is it possible to map an image as standard object or u've to treat as
virtual? how to map an dynamic image into standard object?
36. What is the exact diff between test and component in QTP?
37. Difference between image checkpoint and bitmap checkpoint?
38. What is the descriptive.crate() in QTP?
39. What is TOM in QTP?
40. What is the abbrivation of .mtr in action repository?
41.I am new in QTP, plz tell me any books for QTP,my company is
QTP,so i learn QTP
42. Tell about descriptive programming in QTP8.2?
43. Tell about automation object model(Aom) in QTP?
44. How to merge object repositories?
45. What is the command used to start the QTP from run.(start-> run)
46. What does VBS file contain...??what is VBS file?
47. What is unicoad compability?how does this makes a difference
from winrunner?
48. What is the exact meaning of environment variables? what is
complie module in QTP?what exactly it contains functions or actions?
49. What is compile modulein QTP?what exactly it contains functions or
actions?
50. What is the exact meaning of environment variabes?
51. How to watch currnet value of an object like OK button or edit box
with "agent nale:" lable. in watch expression tab
52. Which functionalities of QTP used in banking project?
53. I am begineer in QTP and i want to try the software QTP. i checked
the mercury site for QTP trial version and i found QTP9.0. the thing is
tht it supports windows 2000,Xp but not windows 98. and i am using
windows 98 only and its not possible for me to update to windows
2000.guide me to get the tria version of QTP which supports windows
98 operating system.
54. Tell me the QTP advantage and disadvantges?
55. How do you configure QTP and test director?
56. How to get the column count and column name from the result set
in the data base connection program?
57. Scalability testing comes under in which tool?
58. What is the difference between rational rose and QTP?which tool is
better to learn?
59. How to test the mainframe application?(tell me few basic things)
60. What is throw object?
61. How will you handle the situation when object isnot captured
during recors?
62. What kind of errors can be handled in QTP in real time scenario?
63. Can objects recognised without repository?
64. What is smart identification?
65. What is the differece between normal mode and fast moce?
66. In how many ways you perform batchtesting
67. What is API
68.What is the difference between action and script
69.Synchronozation types in QTP
70.Batch testing in howmany ways u perform in QTP
71. Approch for installation,comaptibility,system testing
72.user defined function in QTP
73.How you perform exception handling in QTP,what is other name for
this.
74.How you call functions in QTP
75.How you connect bugzilla with QTP
76.How you sre using QTP in ur projrct
77.how you automate testscripts one by one or modukewise or all at
once
78.Can we directly automate testscripts according to requirements
79.How you automate test scripts
80.What do you do if QTP doesnt recognize object,what action should
be taken
81.After running scripts how you report results, there is any specific
report form?
82.In object repository,two actions r there.action1 name is A.tsr,
action2 name is B.tsr.is it possible?if yes,what is the output of A+B?if
no, why?
83.Anybody explain me,the concept of checkpoint declaration in the
QTP mainly for the objects,pages,text and tables?
84.How to use regular expressions in QTP?give an example.
85.Take a situation when you are working with QTP,suddenly systam
has crashed. so u again start the system. my que ishow can QTP
directly opened when the system desktop appears?
86.Give me descriptive programming code sample flight application in
QTP
87.Can you put checkpoints for moving images.
88.how to test background color and dynamic images during runtime
89.Where is the bitmap checkpoint be saved?
90.What happen in object repository(shared) if we call an existing
action from an external action? and what happen in object
repository(peraction) if we call an existing action from an external
action?
91.How can we retrive ten rows from the data table using loop
concept?
92.How to convert a string to an integer?
93.How to "turn off" QTP results after running a script?
94.Does QTP is "unicoe" compatible?
95.How to supress warnings from the "test results page"?
96.What is the extension of script and object repository files in QTP?
97.How to open any application during scripting in QTP?
98.How to retrive the property of an object in QTP?
99.How to change the run time values of a property for an object in
QTP?
100.How to handle run-time errors?

QuickTest Professional (QTP) 8.2 Tips and Tricks (2)

Can I change properties of a test object?


Yes. You can use SetTOProperty to change the test object properties. It
is recommended that you switch off the Smart Identification for the
object on which you use SetTOProperty function.

Can I change properties of a run time object?


No (but Yes also). You can use GetROProperty("outerText") to get the
outerText of a object but there is no function like SetROProperty to
change this property. But you can use
WebElement().object.outerText="Something" to change the property.

What is the difference between an Action and a function?


Action is a thing specific to QTP while functions are a generic thing
which is a feature of VB Scripting. Action can have a object repository
associated with it while a function can't. A function is just lines of code
with some/none parameters and a single return value while an action
can have more than one output parameters.

Where to use function or action?


Well answer depends on the scenario. If you want to use the OR
feature then you have to go for Action only. If the functionality is not
about any automation script i.e. a function like getting a string
between to specific characters, now this is something not specific to
QTP and can be done on pure VB Script, so this should be done in a
function and not an action. Code specific to QTP can also be put into an
function using DP. Decision of using function/action depends on what
any one would be comfortable using in a given situation.
What is checkpoint?
Checkpoint is basically a point in the test which validates for
truthfulness of a specific things in the AUT. There are different types of
checkpoints depending on the type of data that needs to be tested in
the AUT. It can be text, image/bitmap, attributes, XML etc....

What's the difference between a checkpoint and output value?


Checkpoint only checks for the specific attribute of an object in AUT
while Output value can output those attributes value to a column in
data table.

How can I check if a checkpoint passes or not?


code:
chk_PassFail = Browser(...).Page(...).WebEdit(...).Check
(Checkpoint("Check1"))
if chk_PassFail then
MsgBox "Check Point passed"
else
MsgBox "Check Point failed"
end if

My test fails due to checkpoint failing, Can I validate a


checkpoint without my test failing due to checpoint failure?
code:
Reporter.Filter = rfDisableAll 'Disables all the reporting stuff
chk_PassFail = Browser(...).Page(...).WebEdit(...).Check
(Checkpoint("Check1"))
Reporter.Filter = rfEnableAll 'Enable all the reporting stuff
if chk_PassFail then
MsgBox "Check Point passed"
else
MsgBox "Check Point failed"
end if

How can I import environment from a file on disk?


Environment.LoadFromFile "C:\Env.xml"

How can I check if a environment variable exist or not?


When we use Environment("Param1").value then QTP expects the
environment variable to be already defined. But when we use
Environment.value("Param1") then QTP will create a new internal
environment variable if it does not exists already. So to be sure that
variable exist in the environment try using
Environment("Param1").value.

How to connect to a database?


code:
Const adOpenStatic = 3
Const adLockOptimistic = 3
Const adUseClient = 3
Set objConnection = CreateObject("ADODB.Connection")
Set objRecordset = CreateObject("ADODB.Recordset")
objConnection.Open "DRIVER={Microsoft ODBC for
Oracle};UID=;PWD=
"
objRecordset.CursorLocation = adUseClient
objRecordset.CursorType = adopenstatic
objRecordset.LockType = adlockoptimistic
ObjRecordset.Source="select field1,field2 from testTable"
ObjRecordset.ActiveConnection=ObjConnection ObjRecordset.Open
'This will execute your Query
If ObjRecordset.recordcount>0 then
Field1 = ObjRecordset("Field1").Value
Field2 = ObjRecordset("Field2").Value
End if

Вам также может понравиться