Tricentis Tosca 16.0 Released on Feb-2023 ----- UFT has been upgraded from UFT 15.0.1 to UFT One 15.0.2, Beginning at November 2020.

Saturday, 15 October 2016

UFT Panes


UFT’s user interface has witnessed a lot of change in the past few years. If you are someone who is migrating from QTP 11 or earlier versions you will find that not only has HPE added extra panes, they have replaced the panes found in earlier versions with the new ones.
Here is the list of all panes available in UFT. We will go through each of them one-by-one.

Solution Explorer Pane

Before we talk about Solution Explorer Pane, we need to first understand Solution

What is a Solution in UFT?

Solution is a collection of testing documents. The testing documents can be function libraries, actions, object repositories. Solution in UFT provides you a way to view, edit and manage all your testing assets (GUI based or API based) from a single location. Solutions are stored in your file system in a HP proprietary format .ftsln
In layman terms, Solution can be thought of as a binder where you can ‘bind’ or ‘keep’ all your testing assets together for an easy access. When you create a new Test in UFT, a Solution Untitled is created automatically along with it. You can rename the Solution by right clicking on it > Save As…solution-untitled
Alternatively, you can create a New Solution by going to File > New > New Solution…. New Solution in UFT

What is Solution Explorer Pane in UFT?

Solution Explorer Pane can be used to view and manage the Solution(s). Solution Explorer Pane comes up on the left hand side inside the UFT IDE as soon as you launch UFT.UFT Solutions Explorer

ToolBox Pane

The Toolbox Pane displays the test objects/library functions/local functions available to the action that is currently in focus. It enables you to view and drag and drop these objects/functions into your action or component. Available Keywords pane in QTP 11 was renamed to ToolBoxin UFT 11.5. UFT toolbox

Document Pane

This is the main design area in the center of UFT IDE. All documents opened in the document pane are displayed as separate tabs. The complete area inside the red border in the image below isDocument Pane.document-canvas-pane

Canvas Pane

Canvas Pane provides a pictorial representation of GUI or API test flow. As can be seen in the image above – bordered blue – Canvas Pane opens as a tab inside the Document Pane. You can right click on the individual actions in the flow and access various settings related to that action.
Performance Tip: As far as possible, try to work on UFT with Canvas Paneclosed. It can improve UFT performance.

Keyword View and Editor

An action in UFT can be designed and viewed in two ways; Keyword View and Editor.
Keyword View enables you to view the action steps in a tabular excel-sheet-like format. Editoris much more powerful and allows you to create/edit scripts , write logical statements in a more natural fashion. Almost all UFT engineers create and design their scripts in UFT Editor.
Since time immemorial (in QTP 11 and earlier versions), the toggling between Keyword view and Expert View (editor) was available through a tabbed interface in IDE.Keywordview & Expertview toggling in QTP 11 and earlier versions
With UFT 11.5 and above versions, this toggling is now available through the tool bar at the top. (as shown in animation below)Toggle between Keyword view and editor in UFT

Output Pane

Output Pane displays info that is set to be output from a given test. Output Pane is available below the Document Pane.uft-output-pane
  • Shows you the output sent using Print utility statement.
  • Shows missing resources during a run session. As an example, if you are trying to load a function library during the run-time and for any reason, function library fails to load, Output Pane will show you the relevant details.

Active Screen Pane

When you record a test, UFT takes a screenshot of each-and-every screen it encounters during recording. These screenshots are saved with your tests and are known as Active Screen in UFT.
uft-active-screen
Active Screen Pane can be seen below the Document Pane and it is available as the 2nd tab after the Output Pane tab.

Data Pane

Data Pane consists of data sheets where you can parameterize your tests. Normally this would be the first method you will learn on how to parameterize tests in UFT. Data Pane is available as the 3rd tab, just after the Active Screen tab.
In simple words, parameterization in UFT is a way to make any test value variable. For example: username can assume several values – like mercury, merc, john – which can be fed through the data sheet.
 uft-data-pane

Debug Panes

Debug Pane allows you to debug tests and functions libraries using debugging capabilities within UFT and VBScript. To use UFT debugger you should ensure that Microsoft Debugger is installed in your machine. Since July 2016, Microsoft has removed MS Debugger from their servers. Until it comes back, follow this article on how to download and install MS debugger
Debug pane is not actually a single pane rather it is a collection of sub-panes which can be activated by going to View -> Debug   debug-panes-uft
  • Breakpoints Pane: Shows all the breakpoints in the editor.
  • Call Stack Pane: Shows detail about the methods and functions on the call stack. Test is in paused mode during this time.
  • Local Variables Pane: It displays the values of variables and their types in the current action/function library.
  • Console Pane: You can inject VB Script or C# code in the console to retrieve information from the application or change variable values during current run session.
  • Watch Pane: It displays the values of selected variables and their types in the current action/function library. The difference between Local Pane and Watch Pane is that while in local variables you view the value of ALL variables, in the watch pane you can view value of variables selected by you.

Properties Pane

Properties pane is available as a tag on the right side of IDE. It can also be accessed usingView -> Properties or a keyboard shortcut Ctrl + Alt + P.
uft-properties-pane
Properties pane can be used to:
  • view/modify properties of a test
  • make an action Reusable to Non-Reusable and vice versa
  • add input/output parameter to a test.

Bookmarks Pane

Bookmarks in UFT are like a marker which can be put on any statement in a given script.
Bookmarks Pane can be accessed using View > Bookmarks. All bookmarks are neatly stacked in the Bookmarks Pane. You can jump to any bookmark by clicking on the corresponding line in the Bookmarks Pane.bookmark-pane-uft
A bookmark can be inserted by opening the bookmarks pane and clicking ▢ while your mouse cursor is placed on the corresponding statement in Editor.

Errors Pane

error-pane-uftThe Errors Pane can be used to locate:
  • syntax errors
  • missing resources
  • missing references
  • missing property values
This pane can be accessed from View –> Errors or keyboard shortcut Ctrl+Alt+E.

Run Step Results Pane

The Run Step Results Pane displays the results of a single step performed using the Run Step command.

Tasks Pane

The Tasks Pane enables you to view and access TODO comments in actions and function libraries.uft-tasks-pane
TODO comments can be thought-of as reminders that can be inserted as comments adjacent or before the relevant steps in a testing document. For example, use TODO to remind yourself to complete or have a re-look at a specific piece of code or provide instructions to your team-mate.
You can insert TODO comments inside editor or a function library by beginning a statement with:
  • ‘To Do
  • ‘todo
  • ‘to-do
  • ‘TODO

No comments:

Post a Comment

Note: only a member of this blog may post a comment.