forked from andriyko/sublime-robot-framework-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Robot.sublime-settings
225 lines (180 loc) · 8.03 KB
/
Robot.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
/*
Robot Framework Assistant default settings
*/
{
/*
Sublime settings to make Robot Framework data editing more
clearer and easier. Refer the Sublime default settings for
more details.
*/
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"draw_white_space": "all",
/*
Same as the Sublime default in Build 3103 with one exception,
it does not contain the * character. When the * is not in
word_separators the snippets containing * in tabTrigger
work out of the box.
If * is needed as a word separator, then the snippets
should be accessed by pressing tab key multiple times.
*/
"word_separators": "./\\()\"'-:,.;<>~!@#$%^&|+=[]{}`~?",
/*
Robot Framework Workspace
Defines a root folder where Test Suite located.
Before the Robot Framework Assistant can provide the keyword
and variable completion features, it needs to scan and index
the test suite and resource files. The argument defines the root folder
where scanning of robot data is performed.
In windows the backslash is the folder separator and in json
backslash is the escape character. Therefore, in windows write
double backslash to write literal backslash.
Linux example: "/home/User/myRobotTests"
Windows example: "c:\\Users\\User\\Desktop\\myRobotTests"
*/
"robot_framework_workspace": "/path/to/folder/containing/robot/data",
/*
Defines how keyword argument are formatted when keyword
completion is used. When set to false, each argument is
formatted to individual lines. If set to true keyword
and arguments are returned in single line.
*/
"robot_framework_keyword_argument_format": false,
/*
File extension defines which types of files the Robot Framework
Assistant plugin will search and index from the folder defined
in the robot_framework_workspace option.
This setting does not affect to the which files are uses the
syntax highlight.
*/
"robot_framework_extension": "robot",
/*
Path to Python binary
In order the scanning and indexing of keywords and variables to
work, path to Python binary must be defined. It must be the same
Python binary where the Robot Framework is installed.
In Linux like environments this could be like: /usr/bin/python
and in Windows this could be like: C:\\Python27\\python.exe
*/
"path_to_python": "/usr/bin/python",
/*
Module search path defines a list of paths where the
Robot Framework libraries are searched. Example if you have imported
a library with the library name, then module search path must
contain the folder where the library can be located.
The Robot Framework Assistant uses the Robot Framework API to parse
the test data and libraries. All changes, which are not system
wide, to locate the libraries, must also be added in the
module search path in the Robot Framework Assistant
More details how libraries is searched in Robot Framework can be
found from be the Robot Framework User guide:
http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#module-search-path
*/
"robot_framework_module_search_path":
[
"/path/to/libs",
"/other/path/to/libraries"
],
/*
Automatic database update on saving file
The robot_framework_automatic_database_update setting controls the
internal database updating. If the set to true, the internal
database table and index are created after a Robot Framework test data
file is saved. If set to false, the internal database tables are
only updated when the `Create Database`, `Create Database Tables`
or `Update Internal Database For Active Tab`
commands are run.
The setting only controls the Robot Framework test data. If a
libraries or a variable files are updated, then `Create Database`,
`Create Database Tables` or `Create Database Table From Active Tab`
commands must be run to update the internal database.
*/
"robot_framework_automatic_database_update": true,
/*
Robot Framework libraries in XML
When the library is not available during parsing time,
example if library is imported with Remote library interface.
Then this setting can be used to import libraries in libdoc XML
format.
Libraries found from the this path are globally available, in
same manner as the BuiltIn library
*/
"robot_framework_libraries_in_xml": "/path/to/library/documentation",
/*
Robot Framework variables
Robot Framework comes by default some predefined and built in
variables. These variables names may change between different
Robot Framework versions. Use this setting to define the
Robot Framework default variables.
The variables in the default settings are from Robot Framework
version 2.9.2
*/
"robot_framework_builtin_variables":
[
"${/}",
"${:}",
"${\\n}",
"${CURDIR}",
"${DEBUG_FILE}",
"${EMPTY}",
"@{EMPTY}",
"&{EMPTY}",
"${EXECDIR}",
"${False}",
"${LOG_FILE}",
"${LOG_LEVEL}",
"${None}",
"${null}",
"${OUTPUT_DIR}",
"${OUTPUT_FILE}",
"${PREV_TEST_MESSAGE}",
"${PREV_TEST_NAME}",
"${PREV_TEST_STATUS}",
"${REPORT_FILE}",
"${SPACE}",
"${SUITE_DOCUMENTATION}",
"${SUITE_NAME}",
"${SUITE_SOURCE}",
"${TEMPDIR}",
"${TEST_DOCUMENTATION}",
"${TEST_NAME}",
"${True}",
"&{SUITE_METADATA}",
"@{TEST_TAGS}"
],
/*
Path to internal database
By default internal database is created in plugin installation
directory, in database folder. Sometimes it could be useful to
change the default database location.
Example if the robot_framework_workspace is defined in the
Sublime workspace file and user wants to change between
different projects. Then it is useful to define
robot_framework_database_path setting also be project specific.
When the internal database is project specific, user does not
recreate the database when the project is changed.
The robot_framework_database_path must be a path to a folder.
If the setting is not path to a folder, then the database
is created in the plugin installation directory.
*/
"robot_framework_database_path": false,
/*
Sublime Text log_commands
This setting controls will the 'Robot Framework: Command Logging'
command enable or disable the Sublime Text log_commands API call.
If the robot_framework_log_commands setting evaluates as Python
True, then log_commands API call is enabled. If setting
evaluates as Python False, log_commands API call is disabled.
If log_commands API call is enabled. all commands run from key
bindings and the menu will be logged to the console.
*/
"robot_framework_log_commands": false,
/*
Prefixes that are ignored in 'jump to keyword'
When writing testcases in Gherkin keywords have prefixes like 'given','when' and 'then'.
Such prefixes are testcase specific and must be ignored when looking up a keyword.
Configuration for typical Gherkin stories:
"robot_framework_keyword_prefixes" : ["Given","When","Then","And","But"]
*/
"robot_framework_keyword_prefixes" : []
}