Forum Discussion
Would you please provide the use case?
How you wanted to place the resource files and and in which steps those needs to be accessed?
The use case is any ReadyAPI composite project that is checked into a repository so that multiple team members can work on it together. Primarily the resource files in question are those used by Data Source steps like spreadsheets, XML files, etc. Entering the File path to a spreadsheet that feeds a Data Source step cannot be made relative to the project directory after making the project a composite since the directory structure is dramatically changed after doing so.
In a regular project, setting the Resource Root setting to ${projectDir} makes the file lookup relative to the directory where the project XML file is stored. If you store a spreadsheet in the same directory as the project XML file, then simply entering the name of the file in the File path field in the Data Source step will locate it. However, in a composite project, the XML file is divided into smaller units so that there is no longer one main location so a lookup relative to the project file's location isn't possible.
Since a composite project seems to be based upon building a folder structure that mirrors the project structure inside of ReadyAPI, can an option be added to make lookups be relative to the parent directory of the project? This would be equivalent to the project level in ReadyAPI. The attached screenshot shows this concept.
Related Content
- 7 years agoJSoul