Results 1 to 3 of 3
  1. #1

    External Jscript files

    Is it possible to execute external jscript files from QTP scripts and pass values to scripts file functions.
    Hungry Minds

  2. #2

    Re: External Jscript files

    No i dont think so....only *.vbs and *.txt files are allowed.

    If you want to give a shot....try

    ExecuteFile "filename along with full path"


  3. #3

    Re: External Jscript files

    As far as executing is concerened i think you can do that by putting it into text file and saving it as .js extention. Use SystemUtil to run the script.

    As far as giving parameters is concerend i dont know if there is a way in Jscript to get the arguments that were used while executing a script in file. So you may need to find abt that.

    And one more thing is that QTP objects will not be available to you in you jscript. As the jscript will be execited in windows environment instead of QTP Env.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 04:12 PM.

Copyright BetaSoft Inc.