lte2000 / intellibot

IntelliJ/PyCharm plugin for Robot Automation Framework
https://github.com/lte2000/intellibot
MIT License
91 stars 26 forks source link

Variable ${EXECDIR} is not recognized #28

Closed diegoquirino closed 3 years ago

diegoquirino commented 3 years ago

Given that I use robotframework "environmental variable" ${EXECDIR} into the values for Variable and Resource into Settings session

When I reference files that exists

Then referenced variables or keywords found (PyCharm IDE no "red" marks)

BUG "red" marks into PyCharm IDE as the variables or keywords were not found but they are there - in referenced variable and resource files (see attached image)

error_robot_plugin

lte2000 commented 3 years ago

First of all, ${EXECDIR} is the absolute path to the directory where test execution was started from It is not the directory where the test data located. The plugin can't know where the test execution will be started from.

But now, you can provide the value for any variable yourself in Robot Option. For example, input: ${EXECDIR}=/path/to/execution ${ANYVAR}=/path/to/VAR Then Library ${EXECDIR}/aa/bb/${ANYVAR}/lib.py will be Library /path/to/execution/aa/bb/path/to/VAR/lib.py

Note: it just do simple string replacement, no any other function.

Please try dev_0.10.143.397 from https://github.com/lte2000/intellibot

diegoquirino commented 3 years ago

Thank you @Ite2000 The instructions solucioned my problem.