UFT interview questions and answers for functional automation testers

UFT interview questions, often still asked as QTP interview questions, check whether you can write VBScript automation that finds objects reliably and keeps running when the application misbehaves. Expect fundamentals on the object repository, recording modes and checkpoints, intermediate questions on descriptive programming, actions, the Data Table and synchronization, and senior scenarios on brittle object identification, recovery from pop-ups and keeping a large legacy suite alive.

By Published 8 min read

What a UFT interview looks like

UFT is a long-running commercial tool for automating desktop, web and packaged applications such as SAP or Oracle front ends, scripted in VBScript. Many companies hiring for it maintain large existing suites, so interviews lean on maintenance skill: reading someone else's script, fixing object recognition and making runs stable. The product has been renamed and changed owners more than once, so recruiters may write QTP, UFT One or a newer name for the same skill set. Expect a short coding task in plain VBScript as well, since string handling, arrays and dictionaries come up whatever the tool.

Typical rounds and what each one probes
RoundFormatWhat they look for
ScreeningPhone or video, 20 to 30 minutesWhich applications and add-ins you automated, and the size of the suite you maintained.
Tool depthQuestions plus reading a scriptObject identification, repositories, actions, checkpoints and the Data Table.
VBScript taskWrite a small function liveClean string or array logic, Option Explicit, sensible error handling.
ScenarioDiscussion with a leadHow you would stabilize a flaky suite and decide what to keep, fix or retire.
Typical rounds and what each one probes. Scroll sideways on a small screen.

UFT fundamentals questions

Concept questions for the first technical round
QuestionWhat it testsWhat a strong answer shows
How does UFT recognize an object?Core modelIt learns a test object with a class and a description made of properties. At run time it searches the application for a run-time object whose properties match that description.
Mandatory versus assistive properties?IdentificationMandatory properties are always learned. If they are not unique, UFT adds assistive properties one by one until the object is unique, then falls back to an ordinal identifier.
What are the ordinal identifiers?DetailIndex (order of appearance), Location (position in the parent), and CreationTime for browsers. They are fragile because order and layout change, so use them only when nothing else is unique.
What is Smart Identification?FallbackWhen the learned description finds no object or several, UFT can try base filter and optional filter properties to pick a likely match. It hides failures, so many teams switch it off for reliable results.
GetROProperty versus GetTOProperty?API fluencyGetROProperty reads a property from the live application. GetTOProperty reads the stored test object description, and SetTOProperty changes it for the current run only.
Name the recording modes.Tool fluencyNormal (context sensitive), analog for exact mouse movement, low-level for objects UFT cannot recognize, and Insight, which works from images. Normal is the default for good reason.
What types of checkpoints exist?VerificationStandard, text, text area, bitmap, table, database, XML, page and image, among others depending on the add-ins. Mention when a plain If with Reporter.ReportEvent is clearer than a checkpoint.
What is an output value?Data flowA step that captures a value from the application at run time into the Data Table or an environment variable, so later steps can use it.
Why do add-ins matter?SetupUFT loads technology support such as Web, .NET, Java or SAP at startup. If the right add-in is not loaded, objects are seen as generic windows and identification fails.
What are environment variables in UFT?ConfigurationBuilt-in ones such as the test name or OS, and user-defined ones, often loaded from an external file, for values like the base URL that change between environments.
Concept questions for the first technical round. Scroll sideways on a small screen.

Intermediate: repositories, descriptive programming and data

  • Local versus shared object repository? A local repository belongs to one action. A shared repository is a separate file associated with many actions, so one fix to an object helps every test. Teams with more than a few tests usually standardize on shared repositories.
  • What is descriptive programming and when do you use it? Describing an object in code instead of the repository, either inline as property:=value pairs or through a Description object. It suits dynamic objects, generated lists and helpers that work on any page, but too much of it scatters identification across scripts.
  • How do you work with a list of similar objects? Build a Description, call ChildObjects on the parent, loop over the returned collection and act on the ones you need, for example every link in a results table.
  • Reusable, non-reusable and external actions? A reusable action can be called from other actions or tests with RunAction. A non-reusable one runs only where it sits. An external action is a reusable action from another test, called read-only.
  • Actions versus function libraries? Actions carry their own repository and Data Table sheet and suit business steps. Function libraries hold plain VBScript functions and suit shared logic such as parsing, waiting or logging. Most mature suites keep actions thin and put logic in libraries.
  • How does the Data Table work? It has a Global sheet and one local sheet per action. Run settings decide whether the test iterates over Global rows, and action call settings decide iterations for local sheets. DataTable.Value reads or writes a cell by column and sheet.
  • How do you pass data between actions? Action input and output parameters for clear contracts, the Data Table for row-based data, or environment variables for run-wide values. Global VBScript variables across actions are fragile.
  • What is a virtual object? A user-defined object mapped to an area of a screen that UFT cannot recognize, treated as a button or check box. Like low-level recording, it depends on position and is a last resort.
' Helpers of the kind kept in a UFT function library (plain VBScript).
Option Explicit

' Strips currency text and thousands separators: "USD 1,250.50" -> 1250.5.
' CDbl follows the Windows locale, so dot decimals only; check this on test machines.
Function ToAmount(ByVal text)
    Dim re
    Set re = New RegExp
    re.Pattern = "[^0-9.]"
    re.Global = True
    ToAmount = CDbl(re.Replace(Trim(text), ""))
End Function

' Returns the expected menu items missing from the actual list (case-insensitive).
Function MissingItems(ByVal expected, ByVal actual)
    Dim seen, item, missing
    Set seen = CreateObject("Scripting.Dictionary")
    seen.CompareMode = vbTextCompare
    For Each item In Split(actual, ";")
        If Not seen.Exists(Trim(item)) Then seen.Add Trim(item), True
    Next
    missing = ""
    For Each item In Split(expected, ";")
        If Not seen.Exists(Trim(item)) Then missing = missing & Trim(item) & " "
    Next
    MissingItems = Trim(missing)
End Function

WScript.Echo ToAmount("USD 1,250.50")
WScript.Echo "missing: [" & MissingItems("Home;Orders;Reports", "home; orders") & "]"

On Error Resume Next
Dim bad
bad = ToAmount("n/a")
If Err.Number <> 0 Then
    WScript.Echo "error " & Err.Number & ": " & Err.Description
    Err.Clear
End If
On Error GoTo 0

' Output:
' 1250.5
' missing: [Reports]
' error 13: Type mismatch
Plain VBScript of the kind kept in a UFT function library. Run on Windows with cscript; output shown at the end. No UFT objects are used.
' Inline descriptive programming with a wait instead of a fixed sleep
With Browser("title:=Orders.*").Page("title:=Orders.*")
    If .WebEdit("name:=orderId").Exist(10) Then
        .WebEdit("name:=orderId").Set DataTable.Value("OrderId", dtGlobalSheet)
        .WebButton("name:=Search").Click
        .WebTable("class:=results").WaitProperty "visible", True, 10000
        Reporter.ReportEvent micPass, "Search", "Results shown"
    Else
        Reporter.ReportEvent micFail, "Search", "Order field not found"
    End If
End With
UFT object-model lines interviewers ask you to read. Not executed (needs UFT and a browser); object names are made up.

Advanced: synchronization, recovery and reporting

Questions for experienced UFT testers
QuestionWhat it testsWhat a strong answer shows
How do you synchronize with a slow application?StabilityExist with a timeout, WaitProperty on a meaningful property, Sync for browser navigation, and the object synchronization timeout setting. Fixed Wait statements are the last choice.
What is a recovery scenario?ResilienceA rule with a trigger (pop-up window, object state, run error or application crash), recovery operations such as clicking a button or calling a function, and a post-recovery step such as repeating the step or moving to the next iteration.
Recovery scenario versus On Error Resume Next?JudgementRecovery scenarios handle unexpected application events globally. On Error Resume Next handles VBScript errors in a block of code and must be turned off again with On Error GoTo 0, or real errors vanish.
How do you report results clearly?ReportingReporter.ReportEvent with micPass, micFail, micWarning or micDone, a step name and a useful message, plus screenshots on failure. Silent passes that check nothing are worse than no test.
What are the run modes?ExecutionNormal shows execution step by step and suits debugging; Fast suits unattended runs. Maintenance and update run modes help repair object descriptions after an application change.
How does UFT work with ALM or Quality Center?EcosystemTests, resources such as shared repositories and libraries, and results can live in ALM, with test sets scheduled on remote hosts. Mention only the parts you set up.
How can a test be started without opening the UI?AutomationThrough the Automation Object Model, a COM interface you can drive from a VBScript file or a CI agent to open UFT, load a test, run it and read the result.
How do you handle a table whose row positions change?RobustnessFind the row by content with GetRowWithCellText or by looping cells, then act on that row, instead of hard-coding a row number.
Questions for experienced UFT testers. Scroll sideways on a small screen.

Senior and scenario questions

  • Half the suite fails after a UI framework upgrade. Group failures by object, check whether descriptions changed globally, such as generated IDs or class names, update the shared repository or the description helper, and rerun a sample before the whole suite. Ask developers for stable attributes for the future.
  • Smart Identification is on and tests pass when they should fail. It may be matching the wrong object. Turn it off, rerun, and fix the descriptions that relied on it, so a pass again means the right object was used.
  • Nightly runs leave the machine in a bad state for the next test. Add a cleanup function that closes browsers and dialogs, a recovery scenario for crashes, and a known start state at the beginning of every test instead of trusting the previous one.
  • Leadership asks whether to keep UFT or move to open-source tools. Weigh applications under test (desktop and SAP screens favour commercial tools), skills on the team, the size of the existing suite and the license and infrastructure cost the company carries. Suggest moving new web tests first while legacy tests keep running.
  • A test passes locally and fails on the lab machine. Compare add-ins loaded, screen resolution, browser version, regional settings that change number or date formats, and user permissions.
  • The suite takes all night on one machine. Split by business area, run on several hosts through ALM or a CI agent, move data setup to API or database calls, and replace fixed waits.

Fictional example

Answering "Tell me how you stabilized a flaky UFT suite"
Interviewer
What was the worst suite you inherited, and what did you change?
Candidate
I inherited about 150 tests for an insurance claims application where roughly a fifth failed each night, different ones each time. I logged the failing step for two weeks and found most failures were timing and identification, not defects. Scripts used fixed Wait statements and several objects relied on Index. I replaced the waits with Exist and WaitProperty on the claim status field, moved the worst objects to a shared repository with stable properties agreed with the developers, and turned off Smart Identification so wrong matches surfaced. I added a recovery scenario for the session-timeout dialog and a start-state function at the top of every test. Failures dropped to the point where a red result usually meant a real defect, and I reported which tests still failed for environment reasons so the team could track them.

UFT practice plan

  1. Identification firstExplain mandatory, assistive and ordinal properties and Smart Identification using one real object you automated.
  2. VBScript fluencyWrite string, array and Dictionary functions without help, with Option Explicit and proper error handling.
  3. StructureDraw how your suite split actions, function libraries, shared repositories and Data Table sheets.
  4. StabilityPrepare a story about synchronization and one about a recovery scenario, each with cause and fix.
  5. DirectionHave a short, balanced view on where UFT fits next to code-based tools for your target employer.

If the job mentions model-based tools, compare with Tosca interview questions. For Java teams that run code-based suites beside UFT, TestNG interview questions shows the other side, and automation testing interview questions covers framework design in general.

A spoken walkthrough of a VBScript function is harder than it sounds. Natively, an AI interview assistant for Mac and Windows, can transcribe a practice round on your computer so you can review whether you explained object identification in a sensible order. In practice it can also read a script or an error dialog from a screenshot and help you think through likely follow-ups, and with Pro or the free trial it works from the résumé and job description you provide. The transcript and your notes remain available to look back on.

Questions people ask

What UFT questions are asked in interviews?

How UFT identifies objects, Smart Identification, local versus shared repositories, descriptive programming, actions and function libraries, the Data Table, checkpoints, synchronization, recovery scenarios and plain VBScript coding.

Are UFT and QTP interview questions the same?

Mostly. QTP was the earlier name of the same tool, so questions on object identification, repositories, actions and VBScript apply to both. Newer releases add features, so name the version you used.

What is descriptive programming in UFT?

Describing an object with property and value pairs in code, inline or through a Description object, instead of storing it in the object repository. It helps with dynamic objects and generic helpers.

How should I prepare for the VBScript part of a UFT interview?

Practice small functions on strings, arrays and the Scripting.Dictionary with Option Explicit, and explain how On Error Resume Next and On Error GoTo 0 work together.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP