HyperRobotFrameworkPlugin icon indicating copy to clipboard operation
HyperRobotFrameworkPlugin copied to clipboard

Add support for json variables file

Open jasle opened this issue 1 year ago • 1 comments

Robot Framework support using json files as variables file: https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#variable-file-as-json

Currently this plugin shows a 'Import file not found' notice when importing a json variables file and displays 'Variable definition not found' on every variable from it.

It would be great when this plugin could support json variable files.

jasle avatar Jun 11 '24 12:06 jasle

I will just leave here an example for easier reconstruction:

*** Settings ***
Variables    my.json

*** Variables ***
${Bar}    Bar

*** Test Cases ***
Dummy Test
    Log To Console    Foo: ${Foo} and Bar: ${Bar}

and my.json file:

{
  "Foo": "Foo"
}

Redysz avatar Aug 09 '24 12:08 Redysz