0 Shares 6235 Views 14 Comments

UI Automation – Have you Started using the new Add-in?

May 02, 2016
6235 Views 14
UI Automation

I am talking about the add-in – UI Automation, which has been introduced with UFT 12.52. I hope, many of you have already noticed this add-in, If you have not – check it out! In this post, we are going to discuss a bit about this. I really appreciate the effort by HPE to keep UFT with the pace of changes to support the new technologies and versions. UI Automation add-in enables support for the application that has UI Automation interfaces implemented with Microsoft UI Automation Framework.

With UI Automation, UFT now supports test automation for applications technologies which are not supported out-of-the box. Also it enables support for the application or application controls which are not working adequately with the standard existing add-ins. By saying that, I immediately rushed to check the most troublesome automation challenge from the beginning. I hope everyone will agree to this challenging step to have  applications menu identified. And.. guess what, it does!! it does identify the menu object. Checkout below, I tried on Windows-Notepad Menu.

What is UI Automation Framework?

Microsoft .Net framework 3.0 and later includes this new accessibility framework called as Microsoft UI Automation Framework. It provides accessibility to most UI elements and it provides the information about UI element to the end user. You can interact with the UI by using automated test scripts. Read more about UI Automation framework here.

Did you notice the new add-in?

UI Automation Add-in can be used as any other add-ins available. Check the option on  for UI Automation at UFT Add-in Manager window at startup.

UI Automation

Once you have the add-in enabled, the special options are enabled for object spy and recording modes and options.

At object spy window, you will notice a drop down option beside the spy button. Selecting UI Automation option, the spy button icon changes to object spy icon. It represents that UI Automation mode is enabled.

UI Automation

You can enable UI Automation mode while recording. Select UI automation from the recording mode drop down.

UI Automation

Rest is same as you do spy, add objects or record with other add-ins.

Here is the code snippets, that I tried on notepad menu.

Try it out and share your experience and tell us what you could figure out.

 

 

 

You may be interested

UFT Patch Updates – UFT 14.03
Unified Functional Testing
973 views1
Unified Functional Testing
973 views1

UFT Patch Updates – UFT 14.03

Saket - Mar 11, 2018

Post the launch of UFT 14.0, there are three patch updates has been released including a number of features and enhancement. Recently Micro Focus unveiled third patch…

Setting up Web Service Automation Project
Katalon Studio
1128 views
Katalon Studio
1128 views

Setting up Web Service Automation Project

Saket - Oct 24, 2017

Web services are specific services that can be published and called over the Internet by client applications. Katalon Studio supports functional testing of web services. This topic…

Setting up Mobile Automation Project in MacOS
Katalon Studio
1000 views1
Katalon Studio
1000 views1

Setting up Mobile Automation Project in MacOS

Saket - Oct 09, 2017

Using Katalon Studio, mobile tester can design automation test for both Android and iOS to run on physical devices, cloud services and emulators. This tutorial explains how…

14 Comments

  1. This is awesome! HP UFT team really keeps them upto the market needs. Thanks for sharing this Saket. This will solve a lot of day to day automation issues.

    Reply
  2. Pingback: UFT 12.53 Latest Service Packs - Automated-360

  3. Saket, Do you know if the Microsoft UI Automation Framework work with the MS Office products, UFT has never been able to do this before…

    Reply
  4. Hi Saket,

    Will this ‘UI Automation Add-In’ work with Java based desktop application? (.jnlp extension)

    If yes, How can I get this add-in installed ? When I launch UFT, I am not able to see this add-in.

    Awaiting your response..

    Thanks,
    DJ

    Reply
    • Hi DJ,
      Microsoft UI Automation Framework works with any app that uses native windows controls (like Java, Delphi, Silverlight etc) or controls which exposes their interface for accessibility. I believe it will work with your application as well. You should definitely give it a try. I dint get the jnlp extension. As far as I know jnlp files are used to launch java programs.

      Which UFT Version you are using? UI Automation Addin is included from UFT 12.52, make sure you select addin while installing. you can modify the installation and include this addin if you have UFT installed already.

      Reply
  5. tryed with uft 14, but the performance is very slow. it literally forces to restart. not that happy with it.

    is there any setting needed to make it fast?

    Reply
      • I have a case where when i use UIAutomation its properties are stored for that Action, and when i highligt it does highlight and when i drag and drop the Testobject, it shows on screen like this.

        UIAWindow(“Unified Service Desk for”).UIATab(“MainWorkArea”).UIATab(“Right Panel Top”).UIATable(“dGCases”).UIAObject(“LoggedCase”).Click

        but now it never clicks i have selected all the Addin object while starting the UFT.

        Any clue its higlighting but not clicking. ?

        Reply
    • It will be easy if you send me the screenshot of the spy object. alternatively try passing the relative co-ordinates for the click method if that works.

      Reply
  6. Hi Saket,

    Does UFT support GTK+ Applications, if so then which add in to load? Please help.
    Regards,
    Mukesh

    Reply

Leave a Comment

Your email address will not be published.

Most from this category

Join The Growing Group of 15000+ Test Automation Engineers

Signup for our newsletter and get access to free downloads, as well as tips, tricks and techniques and various test automation resources.
Name
Email Address
Secure and Spam free...