Forum Discussion
Marsha_R
Champion Level 3
11 years agoWe had problems moving tests from machine to machine because of the differences in that Users directory. We ended up creating a directory named Resources on the drive with the TestComplete programs and putting our Excel files there. This keeps the file name the same no matter where you run the tests.
In this case, your file name becomes
RefFileName = Project.Path &"Resources\zxcz.xls"
In this case, your file name becomes
RefFileName = Project.Path &"Resources\zxcz.xls"