17 Shares 2520 Views

LeanFT Tutorial #3: Object Identification Center (OIC)

Aug 28, 2017
17 Shares 2,520 Views
Object Identification Center

Don’t get confused by the name, it is very similar to Object Spy in UFT which you are already aware of. Object Identification Center or OIC lets you spy on object from your application and provides you all different properties of that object for you to explore the best one to use. In this post we will see how Object Identification Center can be used for LeanFT projects.

Features of Object Identification Center

OIC allows you to do the below activities

  • Spy on an object
  • Highlight an Object
  • Generate test object description code
  • Capture object image
  • Add objects in application model

 OIC Window

Spy on an Object

To launch OIC from IntelliJ, follow the menu option “LeanFT > Object Identification Center”. You can also launch it in standalone mode from “ Start Menu > HPE Software>…”

LeanFT IntelliJ Menu

IntelliJ Menu

LeanFT IntelliJ Toolbar

IntelliJ Toolbar

LeanFT standalone Menu

Windows Start Menu

Make sure you have done the settings and extensions setup for browser, before spying on an object. Refer our last post on Setting up LeanFT and Browser Extensions.

OIC Spy

Click on Spy button and point to the object you want to spy and release mouse. all properties and methods will be visible into Object Identification Center window.

 

Simple and Edit mode

Object Identification Center runs in two modes

Simple Mode:  allows you to just view the object properties and values

Edit Mode: allows you to view and edit the object properties and values

Click the Switch to Simple/Edit Mode  http://leanft-help.saas.hpe.com/en/14.00/HelpCenter/Content/Graphics/Spy_SimpleEdit_win.png  toggle button to switch to the desired mode.

OIC Simple Mode

Simple Mode

OIC Edit Mode

Edit Mode

 Highlight an Object

In Simple mode, you can explore and spy objects in your application, and view the properties and values that LeanFT captures. In this mode, the Highlight  button highlights the captured object in the application.

HIghlightTo refine a test object description, you must be in Edit mode. When you click Highlight  in Edit mode, LeanFT tries to validate the selected test object description, looking for a unique match. If multiple matches are found, the OIC returns a message with the number of matches and highlights the matches in the application. For a robust and maintainable test object description, the aim is to experiment with the test object properties to achieve a unique description.

 

 Generate test object description code

Generate CodeAfter spying an object, you can generate code for that object and paste in your script. Before generating the code, make sure you have selected the correct object in the hierarchy, and click on the “Generate Code to Clipboard” button.

 

Capture an Image of an Object

Capture ImageYou can capture an image of the object in your application that corresponds to the currently selected object in OIC hierarchy tree, and save the image for future reference. To capture the image, click on “ Capture the Image” button and save the file.

 

 

Add objects in application model

To add objects in application model, you must launch OIC from Application Model. At the bottom of the OIC, click the Add object  http://leanft-help.saas.hpe.com/en/14.00/HelpCenter/Content/Graphics/Spy-AMToolbar.png  pop-up button and select Add or Locate.

Add : In simple mode , All starred objects that do not yet exist in the listed application model are added. While in Edit mode, The object that is in focus is added, as well as any checked parent objects that do not yet exist in the application model.

Locate : If a test object in the listed application model matches the description the OIC is using, the application model opens and that object is selected in the model. If you checked an object and one or more parents, the OIC first looks for the parent objects, and then tries to locate the selected test object only within the specified parent objects.

 OIC Add to App Model

 Customizing OIC Window

Click on the settings button on the OIC toolbar.

OIC Settings

Theme: Select to display OIC window with a light or dark theme.

In Simple mode, add Page objects to the Application Model: When working with Web applications, select this option to include the Page object in the hierarchy when adding an object to the application model.

Clipboard Code Language: By default, the Generate code to clipboard option generates test object code in the language that matches the IDE you are working in. By selecting an alternative language here, you can share test object code with LeanFT testers who are working in other languages.

Keep on top while spying: Keeps the OIC window in front of other applications during a spy

You may be interested

Setting up Web Service Automation Project
Katalon Studio
240 views
Katalon Studio
240 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
241 views1
Katalon Studio
241 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…

UFT Jenkins Integration
Unified Functional Testing
795 views
Unified Functional Testing
795 views

UFT Jenkins Integration

Saket - Oct 03, 2017

In our earlier post, we got to know the easy integration of UFT with GIT. This post focuses on integration of UFT and Jenkins. I have also…

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...