Forum Discussion
tristaanogre
7 years agoEsteemed Contributor
What I usually do if I have a file that I need to use in a test, I store it somewhere within the project path. For example, if my project path is C:\MySource\MyProjects\Project1\ for my Project1.MDS file, any files that I need to use within that project I make sure are somewhere within C:\MySource\MyProjects\Project1. I can then use Project.ConfigPath in all my automation as a starting point for any files. So, if I have a file in the Scripts folder of my project, I can call
Project.ConfigPath + '\\Scripts\\MyFile.txt'
and no matter what the root path is, it will always find my file.