Skip to content

[BUG] Keyword in resource file do not recognize library imported in test case #70

@kivipe

Description

@kivipe

Describe the bug
If I import a library at test case level and use it in a keyword without importing it in the resource file, RobotCode does not recognize it.

I am using RESTinstance library. Because it needs API endpoint and headers, I import it in test suite and configure it in the suite setup. I have some common shared operations in resource files. Because REST is not imported into the resource file, RobotCode does not recognize its keywords.

To Reproduce

file1: testcase.robot

*** Settings ***
Library    REST    http://localhost:3000
Resource   keywords.resource

*** Test Cases ***
Hello
    GetInfo

file2: keywords.resource

*** Keywords ***
GetInfo
    GET     /info/5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions