Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 941 by acampb...@ltufz.com: Get Library Instance instantiating
2nd library instance
http://code.google.com/p/robotframework/issues/detail?id=941
'Get library instance' Keyword Documentation: Returns the currently active
instance of the specified test library.
I've got a testsuite file which does the following (not exact code) -
Import Library ${path}\\DbusLibrary.py 'ip.add.re.ss' 'WITH NAME' dblib
${dblib}= 'Get Library Instance' dblib
Import Library 'SystemControl' # Has an 'Add Hardware Library' keyword
Add Hardware Library ${dblib}
There is a thread created in DbusLibrary that parses output from a command
line subprocess. There are 2 instances of DbusLibrary being created, one at
Import Library and one at Get Library Instance. These are two separate
instances (as echoed by "%s" % self in the thread starting method).
Why is Get Library Instance returning a new instance of the already-created
library? At first I thought it was a library scope issue but it is loaded
from a module, so it should be global.