Forum Discussion

jkam's avatar
jkam
Occasional Contributor
17 years ago

using relative paths for properties file location

Hi,

Anyone know if I can I use use a relative path for the location of a properties file in a test case / script?  I can only seem to make an absolute path work.

Thanks,
John

2 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi John

    hmm.. relative to what? A snapshot will be released later today that adds a ${projectDir} property that you can use for accessing files relative to your project files folder.. ie you could specify ${projectDir}\data\testdata.txt in a File DataSource..

    Is this what you had in mind?

    regards!

    /Ole
    eviware.com
  • jkam's avatar
    jkam
    Occasional Contributor
    Hi Ole,

    Exactly.  That'll be perfect.  I'll look for the snapshot.  Thanks a lot.  John