cancel
Showing results for 
Search instead for 
Did you mean: 

find unused script routines

SOLVED
Highlighted
Community Hero

Re: find unused script routines

Yeah, that's where I'd go with this.  It's not operating, intuitively, the way I would expect a "Find Usages" to work... so, that means there's something else going on.

 

If and when you get a response back, I'd like to see it, especially if there's a solution.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Super Contributor

Re: find unused script routines

I will certainly cycle back here with any info!!

Community Manager

Re: find unused script routines

Hi Guys,

 

The Finding Usages article says that:

TestComplete does not support searching for usages in script units associated with other units through adding the module.exports object.!


So, the behavior you see is expected.

As an alternative, you can find occurrence via the Search/Replace dialog.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Community Manager

Re: find unused script routines

Hi @vthomeschoolmom,

 

If any of the given replies answer your question, could you please make them as a solution. This will help other members find the answer faster in the future.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Super Contributor

Re: find unused script routines

I will.  I have not tested it enough as yet to do that. Thanks

Super Contributor

Re: find unused script routines

Replacing with USEUNIT does do the trick.

Community Manager

Re: find unused script routines

Great! Thanks for sharing your solution with the Community.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
Top Kudoed Authors