mithun_js
12 years agoNew Contributor
Adding scripts from different project to another thru jscript code.
Hi anyone out there, I might want to know if there is any provision for us to add scripts from different project to another thru jscript code. I know that this could easily be done in QTP thru ...
- 12 years ago
Hi Mithun,
You can use the method listed in the "Calling Routines Declared in Another Project" article to add the script file from another project to your current project. This will allow you to call script routines.
I think another approach will be interesting for you as well. TestComplete provides functions to build your own script extension. You can use this extension as a storage for scripts. The only thing you need to do is to add the script extension to TestComplete's list of extensions. After that, you can call routines declared in this extension from other TestComplete projects. Refer to the "Script Extensions" article for details.