-
Notifications
You must be signed in to change notification settings - Fork 53
Usage
Right click a file in project explorer and select Open with - Robot Framework Textfile Editor
The opened text file now has syntax highlighting and content assistant for variables and keywords.
Content assistant has two working modes: one for keywords and one for variables. That is, it is context sensitive and the correct content assistant is activated depending whether you are writing a keyword or its arguments.
When writing a keyword, press Ctrl+Space
or alt+Space
(YMMV, depending on your key mappings) to activate content assistant for keywords. To get the full listing of keywords available activate the content assistant before typing any characters and choose a keyword from the full listing.
When writing arguments for keywords activating the content assistant allows you to choose from existing variables quickly. Writing few first characters narrows down the options and the whole variables list can be seen by activating the content assistant before you have typed any characters.
Currently the robot editor does not automatically detect available keywords and variables imported from libraries in robot test suites. However by including index files listing per-library keywords and variables it can complete those too. In the future we hope to be able to get rid of this manual step.
The index file format is simply a text file with one keyword or variable per line. They should be put in a directory called "robot-indicies" directly below the root of the eclipse project your robot test suite files reside in. The file name should be LibraryName.index. For supporting keywords and variables built into the Robot Framework itself the filename should be BuiltIn.index.
We have pre-created index files for some libraries and they are included in the git repository. You can browse them here. Please note that the versioned directory names exist in the git repository only to allow for storing multiple versions of the same library. So robot-indices/RobotFramework-2.6.3/BuiltIn.index should go into MyEclipseRobotProject/robot-indices/BuiltIn.index
in your project.