QTP Interview Questions and Answers

bookmark

Categories

QTP


QTP Interview Questions and Answers Online Training

Enroll Today

Top QTP Interview Questions and Answers - 2021 [UPDATED]

Are you looking for QTP Interview Questions and Answers? Than you are at the Right Place. Browse through Popular and Most Asked Interview Questions for QTP.  There is a Huge Demand for QTP Professionals in the Market. These Questions are suitable for both Freshers and Experienced Professionals and are based on Trending Topics and as per Current Industry Requirements.

Master These Topics and Increase your Chances in cracking QTP Interviews like a pro and Secure your Dream Job Today.

QTP Interview Questions and Answers

  • 55 Questions

UFT is Licenesed Automation Testing tool from HP Vendor

It’s a Function and regression test automation tool

We can automate Windows ,Web, Mobile and there a large number of add-in support.

It Supports light weighted Scripting language vbscript, for issues we have vendor support and more secured for some of domains likes BFSI,HLSetc.,

Yes Through StormRunnerFunctional tool.

Yes it supports both Rest API and SOAP API.

Yes the Recent Version Supports Mobile Testing also.

Yes it supports webtesting.

Requirment Gathering, Based on requirement Choosing the Framework,Designing the Framework,Production.

It’s a tool used to identify the object Property name, Property value, methods related to same, it also contains object highlighting,mousehover, copy to Clipboard of all Property names and values. In a single line it’s object identification heart in UFT

Two ways Object Repository Descriptive Programming.

It’s a tool to generate Piece of code for Test Objects,Functions,Utilityobjects.

In General For Preparing Food in our home we need to know ve, g or non veg , then recepie, cleaning them, removing the waste, using Species some times we have buffer gas etc., in fully organized way. In the same way, We have to Driver Script, Test cases, Test data,declare variables, object identification, record and playback i.e., dry run, debugging, descriptive Programming, Checkpoints, Recoveryscenarioes,Schronization Points, Data table, Object Repositories,Reusable Functions , Actions, Test Results are separated in a organized way as per build release dates.

step by step Debugging of Script can be done by this option in debug pane

when Function call encounters in your script directly run every step with in few moments and gives the outcome. This can be done by this option in debug pane.

Immediate Getback to call postion while middle in a long functioncall.

It will stop the execution at that point where breakpoints are assigned in your script.

It Show that how many time a particular function call done in your present script.

This Feature in Debug Pane will give that from which step to which step you want to debug the script. Example From Step From10 line to Step To99 can be a possible feature in UFT.

By this Feature in Debugging pane where we can change the variable values dynamically.

By Using the Adjacent static Objects Identifying the Dynamic natured objects. Most useful mechanism when objects in application are dynamic in nature.

Most useful mechanism when objects in application are dynamic in nature.

When the objects in AUT are Dynamic in nature we will use SmartIdentifiction.

For Example an WebPage having the objects with same name then we can discriminate using ordinal identification. Example an buttons like Cancel, Help, Back, Finish with same name can be varied by their Index , Location values.

For Example the Object may image Base Filter Properties can be falls into href, source etc., which essence cannot be changed at any instance while in the case of optional filters it’s quite inversely proportional there may be adding and removing happens here.

MicClass means UFT inbuilt object Class names General Naming MIC Class as Per UFT Tool WebBrowse Browser WebPage Page Webtab WebTable

Its is a type of Object Identification Technique in UFT which mainly bypasses Object Repository.

When Ever in AUT the Object Names are same and at that time we will use Inline or Static Descriptive Programming. Example: Browser(“CreationTime:=0”, ”Title:=.*,”htmltag:=.*”,”Visible:=True”).Close.

Requirments, TestScripts, TestData,DriverScript,RecoveryScenarioes, ObjectRepositories, Reusable Funtions,Test Results.

we can Enhance a TestScript using Parameterization, Synchronization, CheckPoints.

To give multiple sets of data to single Functionality we use Parameterization.

when ever the Particular Object or mechanisim is loaded a bit late due to Performance issue it can be resolved by using schronization Points. Exmple: Browser(“CreationTime:=0”,’Title:=.*).Sync

CheckPoints Will crosscheck or In techniqual terms validation Point that the AUT Come with UFT Result Pane.

Modular Decompostion Framework(MDC) DataDriven Framework KeyWordDriven Framework Hybrid Combination of DDF and KDF In Built Hybrid BPT Framework

Pros: Highly Reusable by a single Function call. coding Part is easy. Cons: Both Data and Code are integrated not able to isolate the single entity.

WhenEver the Code and Date are in combination using cases its more frutefull.

Basic Coding Knowledge is needed even in recent UFT version Function Defination is available. Needed to be known where to be call the function and how to associate to script either by execution method or loadfunction library be aware of this Dyamic association methods.

Pros: Whenever then functionality needed to test or automate with multiple sets of date. Cons: Be Aware of while handling Database as Source.

Yes Coding Knowledge is Mandatory while working with databases and Excel sheets but not for inbuilt runtime datatable as data source.

When ever the Code needs the data from external end like Text file, Excel file, Datatable, Databases , CSV etc., at that time we willgo for DDF.

Here the Data, Code, Reusable Components, testcases, Functionalities every thing is Partioned in a separate Common Folder accessing over there.

By Partioniong everything and we came to know the tack of completion easily.

Coding Knowledge needed but upto small extent for creating reusable components , their association and calling.

For Special Cases like Run time object not found, menu items are not able to identify, application, un expected popupwindows , application crash etc., in this odd instances we use the Recovery scenarios. If we or use more recovery scenarioes in our script our script will become low in performance.

There are different ways to invoke the application i.e., through SystemUtil.Run InvokeApplication Wscript.shell

when ever the objects are not responding then we will use the keyword operations, mouse operation using Mercury.Devicereply utilty object for hadling in cornered situations.

Fire Event’s one of the useful feature in UFT. When Ever you want to access the Object when all possible ways are exhausted then we use the FireEvent’s.

This . Object class gives the source index, color of the AUT and so on.

While Automating the web based Application in the Worst cases of unique way of identifying the we will use XPath and CSS Selctor.

Through .Object Class we can find Background color , Font Type, Font Size etc.,

There are different ways to invoke the application i.e., through SystemUtil.Run InvokeApplication Wscript.shell

AOM is an internal automation Infrasture in UFT. Through this we can Invoke the application, We can attain the Task scheduling, Conducting the batch testing, associate the reusable Functions etc., By using Set uft= CreateObject(“Quicktest.Application”)

Through this we can Invoke the application, We can attain the Task scheduling, Conducting the batch testing, associate the reusable Functions etc.,