maxrussell
4 years agoContributor
Excel data sources - using a relative path name for files
We need to use ReadyAPI across different machines. Our code is checked out from Git and sometimes our local directories differ (for example I use E:\, a colleague uses C:\)
As we need to share our data sources (excel files) that are also checked in, how can they be set in ReadyAPI to use a relative Path, instead of fixed paths?
Hi maxrussell
Can you please use relative paths.
Instead of using "E:/GitRepo/Test/Sample.xlsx" use ${projectDir}/GitRepo/Test/Sample.xlsx. Always keep these excel file folders(Ex:GitRepo/Test..) along with project file(.xml) wherever you store, either in version control or local. And Change like below at project level properties.
https://support.smartbear.com/readyapi/docs/testing/best-practices/root.html
Thanks!