You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the user guide, "If a library is imported multiple times with different arguments, a new instance is created every time regardless the scope."
But that does not seem to work for me.
Here is the example test case I use:
*** Settings ***Library testlib.py num=1 AS Test
Library testlib.py num=2 AS Test
Library testlib.py num=3 AS Test
*** Test Cases ***Example Test
Log Params
BuiltIn.Import Library ${CURDIR}/testlib.py num=4 AS Test
Log Params
As I import the library each time with a different argument, I would expect, that a new instance of the library is created that overwrites the current instance. Instead, the very first instance of the library seems to be used as the output of both calls of Log Params is 1.
Did I understand the note in the user guide wrong or is this an unintended behaviour?
The text was updated successfully, but these errors were encountered:
According to the user guide, "If a library is imported multiple times with different arguments, a new instance is created every time regardless the scope."
But that does not seem to work for me.
Here is the example test case I use:
with the following example library:
As I import the library each time with a different argument, I would expect, that a new instance of the library is created that overwrites the current instance. Instead, the very first instance of the library seems to be used as the output of both calls of
Log Params
is 1.Did I understand the note in the user guide wrong or is this an unintended behaviour?
The text was updated successfully, but these errors were encountered: