cancel
Showing results for 
Search instead for 
Did you mean: 

Test complete 14 upgrade: 'USEUNIT' not available for new projects??

SOLVED
New Contributor

Test complete 14 upgrade: 'USEUNIT' not available for new projects??

we recently upgraded to TC 14, many of our existing projects using 'USEUNIT' method referenceing Common Library routines/functions.
After TC 14 migration If new project is created under the same project suite where our existing projects reside, and try to use'USEUNIT', this option is not available, instead 'Import functions' method appears.
we would like to maintain consinstancy among all projects using same methods like 'USEUNIT', is there a way to use 'USEUNIT' for new projects as well? 

 

 

We are using Test complete 14.0.317
Language : Javascript
Windows 10, Web module

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Test complete 14 upgrade: 'USEUNIT' not available for new projects??

'USEUNIT' is not available from GUI for "JavaScript" projects (https://support.smartbear.com/testcomplete/docs/scripting/calling-routines/declared-in-another-unit/...), but you can use 'USEUNIT' in your projects
You should type '//USEUNIT + name of unit' manually.
E.g.If you want to use functions from "Unit2" module, in "Unit1" module need to type:
//USEUNIT Unit2

2 REPLIES 2
Highlighted

Re: Test complete 14 upgrade: 'USEUNIT' not available for new projects??

'USEUNIT' is not available from GUI for "JavaScript" projects (https://support.smartbear.com/testcomplete/docs/scripting/calling-routines/declared-in-another-unit/...), but you can use 'USEUNIT' in your projects
You should type '//USEUNIT + name of unit' manually.
E.g.If you want to use functions from "Unit2" module, in "Unit1" module need to type:
//USEUNIT Unit2

New Contributor

Re: Test complete 14 upgrade: 'USEUNIT' not available for new projects??

Thank you for the reply!!

New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors