QTP Complete FAQs-1
QTP Complete FAQs-1
www.ramupalanki.com Y
e
a
r]
Test is a collection of steps organized into one or more actions,which are used
to verify that your application performs as expected
As we navigate through our application,QTP records each step we perform and generates a
test or component that graphically displays theses steps in an table-based keyword view.
6.What are all the main tasks which will be accomplished by the QTP after
creating a test?
After we have finished recording,we can instruct QTP to check the properties of
specific objects in our application by means of enhancement features available
in QTP. When we perform a run session,QTP performs each step in our test or
component. After the run session ends,we can view a report detailing which
steps were performed,and which one succeeded or failed.
7.What is Actions?
A test is composed of actions. The steps we add to a test are included with in
the test's actions. By each test begin with a single action. We can divide our
test into multiple actions to organize our test.
8.What are all the main stages will involve in QTP while testing?
? Analyzing results
The documentation column of the key word view used to displays a description
of each step in easy to understand sentences.
14.What is the file extension of the code file and object repository file in QTP?
The extension for code file is .vbs and the extension for object repository is .tsr
15.What are the properties we can use for identifying a browser and
page when using descriptive programming?
The name property is used to identify the browser and the title property is used to
identify the page
16.What are the different scripting languages we can use when working with QTP?
VB script
17.Give the example where we can use a COM interface in our QTP project?
COM interface appears in the scenario of front end and back end.
Dim ExcelSheetSet
ExcelSheet=createobject(“Excel.Sheet”)
Its not mandate that one should mastered in VB script to work with QTP. It is mostly user
friendly and for good results we need to have basic VB or concepts which will suffice
21.If WinRunner and QTP both are functional testing tools from the same
company. Why a separate tool QTP came in to picture?
QTP has some additional functionality which is not present in WinRunner. For
example,you can test(Functionality and Regression testing) an application developed in
The test results tree also includes the table-shaped icon that displays the run-time
data table-a table that shows the values used to run a test containing data table
parameters or the data table output values retrieved from a application under test
Its an object that QTP uses to represent an object in our application. Each test
object has one or more methods and properties that we can use to perform
operations and retrieve values for that object. Each object also has a number of
identification properties that can describe the object.
26.What are all the rules and guidelines want to be followed while working
in expert view?
For more QTP Realtime Sripts, visit [
www.ramupalanki.com Y
e
a
r]
Case-sensitivity
VB script is not case sensitive and does not differentiate between upper case
and lower case spelling of words.
Text strings
When we enter value as a string, that time we must add quotation marks before
and after the string
Variables
Parentheses
Comments
Spaces
We can add extra blank spaces to our script to improve clarity. These spaces
are ignored by the VB script