• +91 9723535972
  • info@interviewmaterial.com

QTP Interview Questions and Answers

QTP Interview Questions and Answers

Question - 41 : - What are the properties you would use for identifying a browser & page when using descriptive programming?

Answer - 41 : -

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”)….

Question - 42 : - Can we record an application running on a remote machine using QTP?

Answer - 42 : -

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

Question - 43 : - Explain the keyword CreateObject with an example.

Answer - 43 : -

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”)

Question - 44 : - Can you switch between Per-Action and Shared Object Repository? If yes how?

Answer - 44 : -

Yes .We can switch. Go to Test—>Settings—>Resources. Here you have an option to choose repositories.

Question - 45 : - What is Object Spy ? How to Use it?

Answer - 45 : -

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

Question - 46 : - 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?

Answer - 46 : -

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.

Question - 47 : - What is the file extension of the code file in QTP?

Answer - 47 : -

Code file extension is script.mts

Question - 48 : - Explain in brief about the QTP Automation Object Model.

Answer - 48 : -

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.

Question - 49 : - Explain QTP Testing process?

Answer - 49 : -

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.

Question - 50 : - What is keyword view and Expert view in QTP?

Answer - 50 : -

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.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners