Import resource with alias

It seems that it is possible to ‘import’ libraries with an alias, as demonstrated here.

I’d like to be able to do the same with ‘importing’ resource files so I can use the alias instead of the name of the resource file if I’d like to use the ‘full path’.

So, instead of…
*** Settings ***
Resource ${CURDIR}/../resources/database.robot

*** Testcases ***
Test Something
database.Call Keyword

I’d like to be able to…

*** Settings ***
Resource ${CURDIR}/../resources/database.robot WITH NAME DB

*** Testcases ***
Test Something
DB.Call Keyword

It would be very helpful if such a feature would exist.

2 Likes

I can see the sense behind that and that might not even be a breaking change. However, i dont think @pekkaklarck picks up feature requests from here, so i’d suggest a to file an issue to GitHub · Where software is built

2 Likes