Forum Discussion
HKosova
13 years agoSmartBear Alumni (Retired)
Hi Steve,
How to shorten Aliases?
Also, please try the following instead:
Call Sys.HighlightObject(Aliases.javaw.dialog0.BasicComboBoxEditor_BorderlessTextField, 10, 255)
I suspect that the issue with the Flat model is caused by non-reliable identification properties of the BasicComboBoxEditor_BorderlessTextField object, so that it matches another object at run time. This can happen in case of complex GUI applications with many objects, especially for Java applications and especially in the Flat model. The above line will highlight the identified object so you can see if it's the correct object or not.
If a wrong object is highlighted when the Flat model is used, you need to modify the object's identification properties in Name Mapping so that they uniquely identify the needed object. For example, add additional unique properties, and so on.
If the object is identified correctly in the Flat model, the issue might be more complex than it originally seems. For example, it might be specific to your tested application or environment. In this case, I recommend contacting our Support Team, because the forums aren't really suited for troubleshooting complex issues. The Support Team would be willing to take a look at your test project and your tested application, so please send them along with your original ticket (under an NDA if needed).
You can actually shorten the recorded object names. You can do this by dragging child objects in the Aliases panel and dropping them up to grandparent, greatgrandparent, etc. objects. This way, you can reorganize Aliases to include only those objects that you are interested in and skip intermediate container objects. The Mapped Objects pane will still reflect the original object hierarchy, but Aliases can be shrunk to, say, 3 levels deep. Please see the following thread for details:
Unfortunately when the Object tree model is set to Tree, this makes the Name Mapping almost unusable to me. On the application that I am trying to test, the Name Mapping tree can be 14 levels deep which makes writing scripts a nightmare.
How to shorten Aliases?
Could you please specify which error?
That statement generates a Microsoft VBScript error.
Also, please try the following instead:
Call Sys.HighlightObject(Aliases.javaw.dialog0.BasicComboBoxEditor_BorderlessTextField, 10, 255)
I suspect that the issue with the Flat model is caused by non-reliable identification properties of the BasicComboBoxEditor_BorderlessTextField object, so that it matches another object at run time. This can happen in case of complex GUI applications with many objects, especially for Java applications and especially in the Flat model. The above line will highlight the identified object so you can see if it's the correct object or not.
If a wrong object is highlighted when the Flat model is used, you need to modify the object's identification properties in Name Mapping so that they uniquely identify the needed object. For example, add additional unique properties, and so on.
If the object is identified correctly in the Flat model, the issue might be more complex than it originally seems. For example, it might be specific to your tested application or environment. In this case, I recommend contacting our Support Team, because the forums aren't really suited for troubleshooting complex issues. The Support Team would be willing to take a look at your test project and your tested application, so please send them along with your original ticket (under an NDA if needed).
Related Content
- 5 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 7 days ago