Forum Discussion

vinodkumar_chau's avatar
vinodkumar_chau
Contributor
10 years ago

Reading files from ProjectFolder Path in testcomplete

Hi All ,   I have a file at this path in Project Itself "C:\Users\vinodkumar.chaudhary\Documents\TestComplete 10 Projects\CommonFiles".  CommonFiles is the folder created to keep all the common fi...
  • Andrey_M's avatar
    10 years ago

    Hi.

     

    The folder you're trying to reach can be addressed as ..\..\CommonFiles\

     

    Following is how your example should look like:

    eval(Include("..\\..\\CommonFiles\\common.js"));

     

    Don't forget that double backslashes instead of single ones are needed only in contsants (direct assignments) and not needed if passed as KDT parameters or project or suite variables.

     

    Regards,

    Andrey