QTP, called as UFT (Unified Functional Testing), gives functional and relapse test computerization for programming applications and conditions. It has a decent interest in the market in light of its graphical interface and backing for keyboard and scripting interfaces. Furthermore, it is extremely incredible in test information execution, test execution report, and article repository. Having QTP information will unquestionably give you an edge in getting a reasonable occupation in software testing. In this article, you can go through the set of frequently asked UFT interview questions and answers in the interview panel. There will be questions for beginners, at intermediate level and of experienced level. This will help you crack the interview as the topmost industry experts curate these at HKR training. Let us have a quick review of the most frequently asked UFT interview questions and answers. In case you're planning for an UFT interview, the data given will help you get ready.
Let's get started!
Ans: Logical name is a name provided by QTP while making an item in the repository to exceptionally recognize it from different articles in the application. This name would be utilized by the QTP to plan the item name in content with its related portrayal in the article repository. For example, Browser("Browser").Page("Priya") . Here Priya is the logical name of the object.
QTP Supports two sorts of Object Repository
1) Shared Object Repository (Global) : It is utilized naturally. The extension for Per-Action is ".mtr" .
2) Per-Action Object Repository, (Local) : It is best while managing dynamic items which are brought in numerous tests. The expansion is ".tsr"
Ans: Object Spy assists in deciding the run and test time object properties and techniques for the application under test.You can get to object spy straightforwardly from the toolbar or from the Object Repository Dialog Box. It is helpful during Descriptive Programming.
Ans: Test Fusion Report shows all parts of a trial and is coordinated in a Tree design. It provides subtleties of each step operated for all iterations. It additionally provides a Run-time datatable, Screenshots and film of the trial run whenever picked.
Ans: Ordinarily, an item and its properties should be recorded in the Object Repository to empower QTP to perform activities on it. You don't store the object and its property estimations in the Object repository yet notice the property estimation pair straightforwardly in the content while utilizing descriptive programming. The thought behind descriptive programming isn't sidestepping the article repository yet helps recognize dynamic items.
Ans: Text Output value empowers you to catch text showing up on the application under test during run-time. If defined, text output esteems will catch values showing up in every cycle that would be put away in the run-time information table for additional examination.
1) Call to copy of Action. - The Action Object Repository , Script and Database will be copied to the destination Test Script.
2) Call to Existing Action. - Object Repository , Script and Database won't be duplicated yet a call (reference) would be made to the Action in the source content.
This makes and returns a reference to an Automation object
SYNTAX: CreateObject(servername.typename [, location])
servername: Needed. The name of the application providing the object.
typename : Needed. The type or class of the object to create.
location : Optional. The name of the network server where the object is to be made.
For Example : Set IE = CreateObject("InternetExplorer.Application")
Ans: Activity split is to separate a current activity into two sections.The objective is to isolate activities dependent on their usefulness to enhance code re-use.
Ans: Yes, It is possible to switch. Go to Test>Settings>Resources. There you have to select the repositories option.
Ans: QTP supports the following environments like Web, SAP, Visual Basic, Siebel, Terminal Emulator, Java, .Net, Stingray, PowerBuilder, Delphi, and Web Services.
Ans: Bitmap checkpoints are affected by screen resolution and image size.
Ans: You can choose Java Add - In and launch QTP. After that step, record the procedure on the Java Tree. On the off chance that you have an issue while recording, you can choose Tools > Object Identification > Java, tree object and make alterations required and assistive properties to empower ID.
Ans: Step Generator empowers use to Add Test Steps in your content. By utilizing a step generator you can add steps to your content without really recording it.
Ans: QTP recognizes any GUI Object dependent on its related properties. QTP will distinguish and store properties (as characterized in the Object Identification settings) in the article repository of the GUI object while recording. QTP will contrast the put away property estimations and the on-screen properties, to remarkably distinguish the GUI object at run-time.
UFT Interview Questions for Intermediate
Ans: Keyword View is a symbol based view that displays test steps in tabular configuration. It consequently creates documentation for the test steps. Expert View provides the related VB Script articulation for each test step in the Keyword view.
In UFT we utilize a couple of global factors to store the worldwide information like User Id, Password. Such worldwide factors are named as Environment factors. Through the assistance of these environment variables, the boundaries are characterized in the test scripts. These factors are utilized in different tests or activities. We can store the links to sites (URLs), testing environment subtleties, and so on.
The three types of environment variables in UFT are as follows:
The uses of Environment Variables incorporate:
Ans: Cross Platform Testing: Utilizing the Built in Environment Variable you can uncover the OS data.
For example, Platform = Environment("OS"). At that point dependent on the Platform you require to call the activities that you recorded on that specific platform.
Cross Browser Testing: Utilizing this code Eg. Browser("Core Values''). GetROProperty("version") you can extricate the Browser and its corresponding variant.
For example, Internet Explorer 6 or Netscape 5. In light of this worth you call the activities which are applicable to that browser.
Ans: On the off chance that the recorded portrayal doesn't empower QTP to recognize a particular object then QTP utilizes the "smart ID" method. It utilizes the accompanying extra properties to distinguish the object:
Base Filter Properties : The arrangement of properties that can't be changed without changing the article type
Optional Filter Properties : Additional properties which assist distinguish the article remarkably.
Ans: The QTP Automation Object model works with Automation of QTP itself. Practically all arrangements and tasks given by QTP are addressed by QTP's Automation Object Model. All exchange boxes in QTP have a related computerization object that can be set or recovered utilizing the comparing properties or techniques in the Automation Object Model. QTP Automation Objects can be utilized alongside standard VB programming components like iterative circles or contingent explanations to aid you plan a content of decision.
Ans: Information like parameterized output, checkpoint values, output values are stored in the Run-time Table. It is an xls file that is put away in the Test Results Folder. It can be availed in the Test Fusion Report.
Ans: Sub procedure is a progression of VB Script explanations (encased by Sub and End Sub statements) which execute activities yet don't restore a value. A Sub technique can accept arguments (constants, factors, or articulations which are passed by a calling strategy). On the off chance that a Sub methodology has no arguments, its Sub assertion should incorporate an empty arrangement of parentheses( ).
Round function in UFT is used to round the decimal For example
Mydecimal = 6.3433333
Rounded Value= Round(Mydecimal , 3)
Print rounded value, it will print 6.343
Ans: Exitaction is utilized when we need to exit from a specific action, while exit iteration is utilized to exit from a specific action cycle of an action.
Ans: While dealing with contents like executing, saving, opening the contents and so forth, we may confront not many errors. Such mistakes are recorded and shown in a location called ‘Error Pane’.
The different types of errors listed in Error Pane are:
Ans: An Output Value step is utilized to catch the value from any field or estimation of any object property when the content execution is going on. Furthermore, such values are put away in the ideal area in the datatable and can be utilized as an input for different fields or articles at another point in the test content.
The four types of output values are:
Ans: Functions are not related with Object Repository and Data Table though Actions keep up their own Object Repository and Data Table. Functions are components of VB scripting which are not just limited to UFT though Actions are components of UFT. The code gets re-utilized with the assistance of capacities, and with actions, the test gets re-utilized. The normal element among functions and actions is that both are related with yield boundaries, input parameters, and return values back. A Script can be separated into numerous Actions like Sign In, Sign Out, and so on, though Function is made in a script.
Ans: No, we can't utilize two instances of UFT on a similar machine. UFT manages numerous occurrences of the application that will be tested. We can even operate on two distinct applications on a similar machine ceaselessly the recording of UFT. You require to alter a couple of design settings of the UFT for this.
You are required to choose the option “Record and Run on any opened application” from Automation -> Record and Run settings -> select.
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.
A Bitmap designated spot executes a pixel to pixel correlation of a picture or part of a picture. Image Check point does a pixel to pixel correlation however rather think about picture properties like alt text, destination url and so on.
UFT Interview Questions for Advanced
Ans: Your application might include objects which act like standard articles however are not perceived by QTP. You can characterize these objects as virtual objects and guide them to standard classes, for example, a check box. QTP copies the client's activity on the virtual object during the executing time. In the test outcomes, the virtual object is shown like it is a standard class object. Assume you need to record a test on a Web page including a bitmap which the client clicks. The bitmap includes a few diverse hyperlink zones, and every territory opens an alternate destination page. At the point when you record a test, the Web website coordinates the directions of the snap on the bitmap and opens the required page. To empower QTP to click at the necessary coordinates during an execution, you can characterize a virtual object for a zone of the bitmap, that incorporates those directions, and guide it to the button class. QTP taps the bitmap in the territory characterized as a virtual item with the goal that the Web website opens the right destination page when executing a test.
To facilitate the interaction of test automation utilizing UFT, test robotization is planned. There are basically three types of computerization systems in UFT
In QTP Exceptional dealing with is finished by utilizing
In Recovery situation you need to characterize.
At Script Level you can utilize the On Error Resume Next and On Error Go to 0 statement.
Ans: As of QTP version 10
Huge Tests in QTP take lots of memory and increase CPU utilization.
Since QTP stores outputs in an HTML file (and not text) the result folder becomes big.
Ans: There are 4 different ways through which we can add synchronization focuses in QTP
Ans: qrs signifies "Quicktest Recovery Scenario". By utilizing recuperation scenario managers we can deal with special cases in test execution. In QTP when you make a recovery situation, you should save it in the .qrs file. qrs file might have quite a few situations characterized in it.
Ans: When executing a test, it comes up short in opening a dialog box, QTP doesn't really cut short the trial. It passes any progression assigned "optional" and keeps executing the test. Naturally QTP consequently checks as discretionary advances that open certain discourse boxes. To set an optional advance in the keyword, right snap and select "optional Step". The symbol for the optional step would be added in the subsequent stage. In the expert view to add optional advance, add optional step to the start of the VBScript statement.
Ans: Check Point addresses where a specific condition or estimation of an object is checked against some other fixed or ongoing value. Checkpoints can be embedded anytime in the test script. UFT upholds different sorts of checkpoints.
Ans: The features that UFT supports are
Ans: Canvas is a presentation board, which shows the graphical type of activities of the test flow that occurs during the testing cycle. According to our necessities, we can alter the actions from the start to end.
Ans: A client can really run the test contents of UFT in Hidden-mode. Running the test contents in this mode will enhance the execution and its fastness. As User intercession isn't needed during the execution of contents this shrouded mode can be utilized easily. The test outcomes can be seen by the client after the content execution gets finished. To empower this hidden mode, go to "Remote Agent Setting" and choose the "Run UFT in hidden mode" option.
Ans: Distributed Testing means analyzing the application on numerous servers, machines, clients, mobiles, and so on. UFT upholds this distributed testing using a new characteristic called “Run-time engine”.
Ans: World Wide Web Consortium (W3C) thought of certain directions and rules for Web-based innovation and data frameworks to make it simple for the disabled to get to the web. For instance the principles make it compulsory to have an 'alt text' for a picture. So a visually impaired individual who is getting to the site, will utilize text - to - speech converters and at least comprehend what the picture is about. Every one of these principles are analysed by Accessibility Checkpoints.
Ans: The GetRoProperty method gets the property values.
We believe that this set of UFT interview questions and answers for freshers and experienced experts will assist you in preparing for your interviews. We have covered all the questions, by chance you locate any related question that is not here, kindly drop your query in the comment section and we will add it at the earliest.
Batch starts on 18th Apr 2021, Weekend batch
Batch starts on 22nd Apr 2021, Weekday batch
Batch starts on 26th Apr 2021, Weekday batch