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?
Solved! Go to Solution.
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!
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!
Thanks everyone!
@maxrussell Does the suggestion help? Please let us know.
User | Count |
---|---|
6 | |
6 | |
4 | |
2 | |
1 |
Subject | Author | Latest Post |
---|---|---|