cancel
Showing results for 
Search instead for 
Did you mean: 

How to find where mapped objects are used

SOLVED
Highlighted
Occasional Contributor

How to find where mapped objects are used

Hi all,

 

Just wondering if there was a way to find out which objects in the name mapping have been used in KeyWord tests? 

 

For example, if I want to amend a mapped object or alias object is there a way to see which tests are using it already before I make the changes to ensure I don't break other tests when I make the changes?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Occasional Contributor

Re: How to find where mapped objects are used

Seems the only way to find some reference of objects is to use the find functionality (ctrl + f) and search the alias/mapped object string. It appears that it will find it if mentioned in the value column of a keyword test or as a string in a script, however it won't pick up an object being used in an action.

 

 

View solution in original post

6 REPLIES 6
Highlighted
Community Hero

Re: How to find where mapped objects are used

Hi,

 

If I got your question right, then the Collect usage statistics option is the thing that might help:

https://support.smartbear.com/testcomplete/docs/reference/options/engines/name-mapping.html

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/how-...

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Highlighted
Occasional Contributor

Re: How to find where mapped objects are used

Hi Alex,

 

Not quite what I was looking for, this only gives you an idea of what is being used in the NameMapping, what I was looking for is if there was a way to identify exactly which tests an object is being referred to, so rather than a high level "this object is being used" I would be looking for "this object is being used in test X, Y and Z" specifically.

 

To my knowledge I don't think there is such a feature (but others like Katalon have this) so was wondering if I had missed something.

 

Thanks,

Tris

Highlighted
Contributor

Re: How to find where mapped objects are used

It's a bit tricky because for example we use the javascript eval() function to programmatically access name mapping, and we often assign name mapping to variables to shorten the lines where we use them. I wouldn't expect TestComplete to know about these instances because they're a little bit obfuscated from it.

 

For the most part I just use searching (grep, or VSCode's searching) to find where name mapping is used.


--------------------
QA Systems Architect
Integrated Control Technology
https://www.ict.co/
Highlighted
Occasional Contributor

Re: How to find where mapped objects are used

Seems the only way to find some reference of objects is to use the find functionality (ctrl + f) and search the alias/mapped object string. It appears that it will find it if mentioned in the value column of a keyword test or as a string in a script, however it won't pick up an object being used in an action.

 

 

View solution in original post

Highlighted
Community Hero

Re: How to find where mapped objects are used

@tphillips You can shorten your name mapping references in the Aliases section instead of having to create variables for them.

Highlighted
New Member

Re: How to find where mapped objects are used

I faced similar kind of issue last time, I am still searching for some proper solution walgreenslistens.

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors