Forum Discussion
tristaanogre
10 years agoEsteemed Contributor
It sounds like what you've done is written JavaScript code outside of TestComplete and you want to execute it within TestComplete. Is that a correct assumption?
The help file you reference is for executing JavaScript that is on a Web Page from within TestComplete so it doesn't apply to your scenario, best that I can tell.
What you'll need to do is change the file extension on your script from js to sj. Then, within your TestComplete project, right click on the "Script" item in your project explorer, select Add -> Existing Item and browse to your file. This should bring your code unit into TestComplete and you should be able to execute it from there. (reference http://support.smartbear.com/viewarticle/56677/)
Hope this helps.
The help file you reference is for executing JavaScript that is on a Web Page from within TestComplete so it doesn't apply to your scenario, best that I can tell.
What you'll need to do is change the file extension on your script from js to sj. Then, within your TestComplete project, right click on the "Script" item in your project explorer, select Add -> Existing Item and browse to your file. This should bring your code unit into TestComplete and you should be able to execute it from there. (reference http://support.smartbear.com/viewarticle/56677/)
Hope this helps.
Related Content
- 10 years agonramesh
- 3 years agosathashiv5
- 8 years agoroyd