cancel
Showing results for 
Search instead for 
Did you mean: 

Test complete - JavaScript project - Script editor - Find usages doesn't find all references.

SOLVED
Highlighted
Contributor

Test complete - JavaScript project - Script editor - Find usages doesn't find all references.

We have a JavaScript project.  Where references between files are done by "require" function.

//form_login file

function pressNext() {
//some actions here
}

module.exports.pressNext = pressNext;
//some other file in project
const form_login = require('form_login');

function exampleFunction() {
form_login.pressNext();
}


When I press "Find usages" on any function/variable in "form_login" file
Then this operation does not find this kind of reference.

 

So I have to use the "Find" operation. But this operation does not find references to this function in KeywordTests.
So every time I have to rename function/remove function/change arguments of the function, I have to search for references using both "Find usages" and "Find (Look in Project suite)".

 

It's really annoying. Because often I forget to choose "Look in Project suite", or forget to use "Find usages". That can cause tests to fail.
 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Test complete - JavaScript project - Script editor - Find usages doesn't find all references.

If you're asking for a new feature, that should go here:

https://community.smartbear.com/t5/TestComplete-Feature-Requests/idb-p/TestXCompleteFeatureRequests

 

If you're reporting a bug, then that goes to Support directly here:

https://support.smartbear.com/testcomplete/

View solution in original post

1 REPLY 1
Highlighted
Community Hero

Re: Test complete - JavaScript project - Script editor - Find usages doesn't find all references.

If you're asking for a new feature, that should go here:

https://community.smartbear.com/t5/TestComplete-Feature-Requests/idb-p/TestXCompleteFeatureRequests

 

If you're reporting a bug, then that goes to Support directly here:

https://support.smartbear.com/testcomplete/

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
A new challenge is here!

Create a function to drag one element to another for the TechCorner tag!

Will you dare to take the challenge?


Scripts created in July:
- Passing custom command-line arguments as a test parameter
Top Kudoed Authors