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
from robot.api.deco import keyword
class TATA:
@keyword("Test")
def Test(self):
logger.info(f'Tata')
TOTO.robot
*** Settings ***
Documentation Resource for manipulating the VirtualBox VM
Library BuiltIn
*** Keywords ***
Test
[Documentation] Open SSH connection To Distant Host (not applicable for VBOX)
Log Toto console=True
bac_a_sable.robot:
*** Settings ***
Library ${PROJECT}/libs/TATA.py
Resource ${PROJECT}/resources/TOTO.robot
*** Test Cases ***
Mytest
Set Library Search Order TOTO TATA
Test
Set Library Search Order TATA TOTO
Test
Current result : a "Log Toto" in both case
Expected result: a "Log Toto" in first Test keyword call and a "Tata" logged in the second
This issue seems to be located robotframework/src/robot/running/namespace.py line 173-175:
def _get_implicit_runner(self, name):
return (self._get_runner_from_resource_files(name) or
self._get_runner_from_libraries(name))
The text was updated successfully, but these errors were encountered:
This is by design, resource files always have higher precedence than libraries. This design could be changed, but I don't consider it too high priority. If someone is interested to look at this, the behavior could be changed already in RF 7, but otherwise this needs to wait until we make other changes to the related code.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I'm using RF 6.1
Here my test:
TATA.py
TOTO.robot
bac_a_sable.robot:
Current result : a "Log Toto" in both case
Expected result: a "Log Toto" in first Test keyword call and a "Tata" logged in the second
This issue seems to be located robotframework/src/robot/running/namespace.py line 173-175:
The text was updated successfully, but these errors were encountered: