Do you import the library in a resource file? If yes, then it is
available for all test suites that import that resource file either
directly or via another resource file. If you import a library in a
certain test suite, the keywords they implement should not leak to
other suites. If that happens it is a bug.
> P.S.: I assume, with the current implementation it is impossible to
> build cyclic dependencies, because every given file gets imported,
> unless it already has been imported before. Am I right?
Yes, cyclic imports should be prevented.
Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org
This is a limitation of Robot's import system. All imports are global
within a suite so all resources and libraries imported by your
resource 2 are visible also for resource 1. This is pretty annoying
and can be considered a bug -- feel free to submit an issue about this
with your image attached.
We are planning to refactor and cleanup importing logic and related
namespaces at some point but not yet in RF 2.7. I would like to fix
also this problem as part of the refactoring, but changes like this
are somewhat problematic as they change the execution logic in
backwards-incompatible manner. Probably this functionality can be
first deprecated somehow, but that makes implementing this a little
more complicated.