Forum Discussion

KJ's avatar
KJ
Occasional Contributor
4 years ago

.js file

Can I launch a .js file from within a Test Complete test?  If so, what are the best practices and common mistakes that occur when trying to do this? Thank you.  
  • BenoitB's avatar
    4 years ago

    In addition, if yu want to play a plain .js file to execute something, you can call ms script runner (cscript.exe or wscript.exe) by command line.

     

    Or you can register in TestedApps cscript.exe/wscript.exe and call it directly without the command line.

     

    The command line version allows you to eventually read the console output of your .js execution.