Forum Discussion
Andrey_M
12 years agoContributor
Hi Maurus.
Try to create your custom catalogue in project home directory (where you may store any data you want).
Use Project.Path property as home directory (relative file addressing makes your project portable).
Using this approach I store my customized logs and archives (which are related to specific project). If I move or copy project to new location, all file addressing schemas work without issue (e.g. TC understands relatively addressed Excel data sources for data driven loops).
For example, my project-specific excel full file name looks like this:
var WorkbookName = Project.Path + "Stat\\" + fileNaming() + ".xlsx";
// fileNaming() is my file name generation function.
Try to create your custom catalogue in project home directory (where you may store any data you want).
Use Project.Path property as home directory (relative file addressing makes your project portable).
Using this approach I store my customized logs and archives (which are related to specific project). If I move or copy project to new location, all file addressing schemas work without issue (e.g. TC understands relatively addressed Excel data sources for data driven loops).
For example, my project-specific excel full file name looks like this:
var WorkbookName = Project.Path + "Stat\\" + fileNaming() + ".xlsx";
// fileNaming() is my file name generation function.