working with insight objects in UFT 12.52
Question ID: 107090
0
0

I have an embedded visio editor in my AUT which can contain multiple similar objects with dynamic text. Even with extensibility, I cannot identify the individual objects so I need to find an alternative to allow me to click on the correct object within the editor. With UFT 12.52, is there any way to use Insight to find the correct object based upon its text? I know I can exclude the text from the image, and that I can get the text within the Insight object, but what I want to do is step through all the similar graphic objects until I find the one with the correct text.

Marked as spam
Posted by (Questions: 3, Answers: 1)
Asked on September 8, 2016 2:06 pm
148 views
Answers (1)
0
Private answer

HPE's [KM00484151][1] shows a possibly way to get text from an insight object. In case you don't have a login for HPE, I'll quote it here:

> ''To workaround this limitation using other UFT features, the following option can be used:
>
> 1. While in record mode, add a ''Text Output Value'' (Design > Output Value >Text Output Value).
>
> 2. Click the text in your application.
>
> 3. In the Text Output Value Properties dialog, make sure that the operation is Output Text and that the summery test says ''Output the whole text into <....>''
> Notes: you can modify the output name and the target DataTable sheet. You can also modify the name of the output value itself to a more meaningful name in the Object Repository Editor.
>
> 4. Create an Insight test object that represents your object (showing the desired text on it).
>
> 5. Add an Output step on the insight object, using the output value object
> recorded in step #1. For example, test code will look like this:
> `.InsightObject().Output Checkpoint(''MyOutputTextName'')`
>
> 6. Comment or remove the initial text output step (recording in step #1).
>
> 7. 7.The output value is expected to fetch the text in the Insight test object and save it to the DataTable as output value. It can be used from the DataTable or set to a variable.''

[1]: https://softwaresupport.hpe.com/group/softwaresupport/search-result/-/facetsearch/document/KM00484151

Marked as spam
Posted by (Questions: 17, Answers: 807)
Answered on September 8, 2016 3:03 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top