Skip to content

Could this tool check for errors likes "Multiple keywords with name XXX found" #92

@Lucas-C

Description

@Lucas-C
FAIL | Multiple keywords with name 'Read Json File' found. Give the full name of the keyword you want to use:
     module1.Read Json File
     module2.Read Json File

Screenshot from HTML report:
2022-08-25 16_06_44
Python source code of module1.py:

import json

def read_json_file(filepath):
    with open(filepath, encoding='utf8') as file:
        return json.load(file)

...

Python source code of module2.py:

from module1 import read_json_file
...

Usage in feature.resource:

Library    ../libraries/module1.py
Library    ../libraries/module2.py
...
${body}=    Read Json File    ${CURDIR}/postPayload.json

Could robotframework-lint be able to detect the error raised at runtime by Robot Framework?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions