Calling external script form Tetcomplete
i have some test scripts outside of Test Complete and need to call it from within a script created in TestComplete. Is there any metohd to perform this in Test complete?
Even if i am able to add a new unit to the script which is being executed is also fine. Is it possible?
Re: Calling external script form Tetcomplete
[ QUOTE ]
need to call it from within a script created in TestComplete
[/ QUOTE ]
If you are using script files (*.js/*.vbs files, etc.), and you just want to execute them, you can use the Run method of the WshShell object. Here is an example:
<font class="small">Code:</font><hr /><pre>
var file = "c:\\myDir\\myScript.js";
If you want to call individual functions from your files in TC scripts, you need to add these files to your project as regular units and call the needed function (see the "Calling Routines Declared in Another Project" help topic).