Skip to content

Give local keywords in resource files precedence over keywords in test case files #4395

Description

@pekkaklarck

Currently if you have a test case file like

*** Settings ***
Resource        example.resource

*** Test Cases ***
Example
    Keyword 1

*** Keywords ***
Keyword 2
    Log    Keyword in test case file

and the imported resource file contains

*** Keywords ***
Keyword 1
    Keyword 2
 
Keyword 2
    Log    Keyword in resource file

the Keyword 2 keyword that ends up being called by Keyword 1 is from the test case file. This is rather strange and it would be more logical if the keyword from the same resource file as Keyword 1 would be used.

This behavior was deprecated in RF 6.0 when local keywords were given precedence over imported keywords with same name (#4366).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions