Forum Discussion
4 Replies
Sort By
- omatzuraSuper ContributorHi,
currently relative paths are resolved relative to the working directory, I guess you want to resolve relative to the project file?
regards,
/Ole
eviware.com - Yep, there is a tutorial for the use of realtive to the the working directory here
http://www.eviware.com/content/view/51/44/, but you are right that relative to the project file might be better.
/niclas
eviware.com - alibaba82Super Contributorlets say our project file and properties file are in C:\temp
can we use something like
testRunner.testCase.testSuite.project.path\temp
or
context.testCase.testSuite.project.path\temp
in a datasource or properties file.
I saw this in one of your posts about absolute paths in groovy in sourceforge forums.
Thanks
Ali - omatzuraSuper ContributorHi Ali,
no, this will unfortunately not work.. as you know we are in the process of improving property-related functionality, one improvement will be the availability of a number of predefined properties, including a "projectDir" property containing the folder of the project file, which you will be able to use as you suggest, for example with "${projectDir}\temp.properties" in a properties step source file.. for now you will need a groovy script..
regards,
/Ole
eviware.com
Related Content
- 5 years agoAAB
- 5 years agoMadhuraKhare
Recent Discussions
- 10 hours agoGuhan-B
- 5 days agoruchisingh