Skip to Content

TheBlogReaders.com

Salesforce.com, PHP, MySQL, Javascript, Ajax, Htacces

QTP Interview Questions and Answers For Freshers Part-1

Be First!

qtp1.In which all environments QTP comfortably works?
Based on the technologies, add-ins, and platforms, QTP chooses the environment to work on.

QTP can work on the given below environments −

By default supported environments
Web Active X Visual Basic
Other supported environments
.Net (Windows & web form) People Soft Visual Age
Java Oracle Delphi
Power Builder Siebel Web Services
SAP for Web Stingray Terminal Emulator
WPF Standard Windows SAP for Windows

2.In QTP, what are the different types object Repositories?
QTP Supports 2 types of Object Repository −

Shared Object Repository

Per-Action Object Repository

Shared Object Repository: It is also called a Global object repository, the best while using dynamic object and object description change frequently in a test, presented by the extension “”.tsr”. Testers usually prefer Shared object repository more than Local object repository while automating the test.

Per-Action Object Repository: It is a default object repository also called a Local object repository presented by the extension “.mtr”.

3.What is logical name of the object?
In QTP, logical name is a name that uniquely identify object with respect of other objects of the application while creating an object in the repository. QTP uses this object name to map the object presented in script with its corresponding description in the object repository by using this code−

Browser(“Browser”).Page(“Tutorialspoint”). Here, Tutorialspoint is the logical name of the object.

4.What is descriptive programming?
Usually, QTP performs action on object and its properties that have been saved in the object repository.

Descriptive programming doesn’t facilitate users to store the object and its property values in the object repository, but facilitate users to directly mention the property value pair in the script. Descriptive programming is not to avoid the object repository, it facilitates users in recognizing the dynamic objects.

5.In descriptive programming, which properties help in identifying the browser & page?
In descriptive programming, use the name property, for example −

Browser(“name:=”xxx””).page(“name:=”xxxx””)…..

OR

Also use the property “micClass”, for example,

Browser(“micClass:=browser”).page(“micClass:=page”)….

6.In QTP, is it possible to record an application present on remote machine?
Yes! You can record the application placed in a remote mechine via local browser not via remote like; citrix, but if you are still unable to record then it is better to install QTP and application on the same machine to maintain the same session.

7.What is the use of keyword CreateObject, explain it with example?
The keyword “CreateObject” creates and returns a reference to the test object.

CreateObject (servername.typename [, location] )
Where,

servername − A required argument for the code, used to present the name of the application that provides objecst.

typename − A required argument for the code, used to present the type or class of the object to create.

location − An optional argument for the code, used to present the name of the network server where the object is to be created.
For example − Set IE = CreateObject(“Chrome.Application”)

8.Can you call another 3 to 4 test script into the main QTP test script?
Yes, it call be possible by creating the re-usable action to the corresponding test script and from the destination test script make calls to the re-usable actions test scripts.

9.What is the purpose of action split in QTP?
In QTP, action split can be used to divide an important and existing action into two parts. Action can be divided into parts according to its functionality, so that; the code can be improved and reused for different purpose.

10.How to manage Java tree in QTP?
First, open QTP by selecting Java add-in, then perform the recording operation on the Java tree. If, you are not getting proper recording environment, then in the opened QTP tool, go to Tools Object Identification Java. In the tree objects make changes in compulsory and assistive properties to facilitate identification.

(157)

Previous
Next

Leave a Reply