Is there an easy way to find all script routines that are not called anywhere, by other scripts or by keyword tests? Thanks
Solved! Go to Solution.
If you're using TestComplete 12.60, you should be able to right click on the routine and select "Find Usages". That will then return all script references and Keyword test references to that script routine.
That does not appear to work consistently. For instance, I have a function called GetRandomString(). It is called many times across various script functions. When I do find instances for that function, my search results show no results.
Is there something I need to do that I am missing? Thanks
In the unit that the called function is present
module.exports.GetRandomString = GetRandomString;
in the calling unit(s)
var CommonUtilities = require("CommonUtilities");
This is what the Import dialog in TestComplete does. I THINK I saw somewhere that Useunit was being depricated.
As a test, what happens if you use the \\USEUNIT to include your library containing GetRandomString() and then try it. Does it work then?
Is that function a method on an object? Or is it a stand along function within a unit?