Robot Framework Integrated Development Environment (RIDE)
robotapi.py
Go to the documentation of this file.
1 # Copyright 2008-2015 Nokia Networks
2 # Copyright 2016- Robot Framework Foundation
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 
16 from .lib.robot.parsing import populators
17 populators.PROCESS_CURDIR = False
18 
19 from .lib.robot.errors import DataError, VariableError, Information
20 from .lib.robot.model import TagPatterns
21 from .lib.robot.output import LOGGER as ROBOT_LOGGER
22 # SEE BELOW
23 # from .lib.robot.output.loggerhelper import LEVELS as LOG_LEVELS
24 from .lib.robot.parsing.datarow import DataRow
25 from .lib.robot.parsing.model import (
26  TestCase, TestDataDirectory, ResourceFile, TestCaseFile, UserKeyword,
27  Variable, Step, ForLoop, VariableTable, KeywordTable, TestCaseTable,
28  TestCaseFileSettingTable)
29 from .lib.robot.parsing.populators import FromFilePopulator
30 from .lib.robot.parsing.settings import (Library, Resource, Variables, Comment, _Import, Template,
31  Fixture, Documentation, Timeout, Tags, Return)
32 from .lib.robot.parsing.tablepopulators import UserKeywordPopulator, TestCasePopulator
33 from .lib.robot.parsing.robotreader import RobotReader
34 from .lib.robot.running import TestLibrary, EXECUTION_CONTEXTS
35 from .lib.robot.libraries import STDLIBS as STDLIB_NAMES
36 from .lib.robot.running.usererrorhandler import UserErrorHandler
37 from .lib.robot.running.arguments.embedded import EmbeddedArgumentParser
38 from .lib.robot.utils import normpath, NormalizedDict
39 from .lib.robot.variables import Variables as RobotVariables
40 from .lib.robot.variables import is_scalar_var, is_list_var, is_var, is_dict_var, VariableSplitter
41 from .lib.robot.variables.filesetter import VariableFileSetter
42 from .lib.robot.variables.tablesetter import VariableTableReader
43 from .lib.robot.version import get_version
44 
45 
46 ROBOT_VERSION = get_version()
47 
48 # Monkey patch LEVELS
49 LOG_LEVELS = {
50  'NONE' : 7,
51  'SKIP' : 6,
52  'FAIL' : 5,
53  'ERROR' : 4,
54  'WARN' : 3,
55  'INFO' : 2,
56  'DEBUG' : 1,
57  'TRACE' : 0,
58 }
def get_version(naked=False)
Definition: version.py:24