Robot Framework Integrated Development Environment (RIDE)
executionerrors.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
robotide.lib.robot.model
import
ItemList
17
from
robotide.lib.robot.utils
import
setter
18
19
from
.model
import
Message
20
21
22
26
class
ExecutionErrors
():
27
message_class = Message
28
29
def
__init__
(self, messages=None):
30
#: A :class:`list-like object <robot.model.itemlist.ItemList>` of
31
#: :class:`~robot.model.message.Message` instances.
32
self.
messages
messages
messages = messages
33
34
@setter
35
def
messages
(self, msgs):
36
return
ItemList
(self.
message_class
message_class, items=msgs)
37
38
def
add
(self, other):
39
self.
messages
messages
messages.extend(other.messages)
40
41
def
visit
(self, visitor):
42
visitor.visit_errors(self)
43
44
def
__iter__
(self):
45
return
iter(self.
messages
messages
messages)
46
47
def
__len__
(self):
48
return
len(self.
messages
messages
messages)
49
50
def
__getitem__
(self, index):
51
return
self.
messages
messages
messages[index]
robotide.lib.robot.model.itemlist.ItemList
Definition:
itemlist.py:20
robotide.lib.robot.result.executionerrors.ExecutionErrors
Represents errors occurred during the execution of tests.
Definition:
executionerrors.py:26
robotide.lib.robot.result.executionerrors.ExecutionErrors.__getitem__
def __getitem__(self, index)
Definition:
executionerrors.py:50
robotide.lib.robot.result.executionerrors.ExecutionErrors.__init__
def __init__(self, messages=None)
Definition:
executionerrors.py:29
robotide.lib.robot.result.executionerrors.ExecutionErrors.__iter__
def __iter__(self)
Definition:
executionerrors.py:44
robotide.lib.robot.result.executionerrors.ExecutionErrors.__len__
def __len__(self)
Definition:
executionerrors.py:47
robotide.lib.robot.result.executionerrors.ExecutionErrors.messages
def messages(self, msgs)
Definition:
executionerrors.py:35
robotide.lib.robot.result.executionerrors.ExecutionErrors.messages
messages
Definition:
executionerrors.py:32
robotide.lib.robot.result.executionerrors.ExecutionErrors.message_class
message_class
Definition:
executionerrors.py:27
robotide.lib.robot.result.executionerrors.ExecutionErrors.add
def add(self, other)
Definition:
executionerrors.py:38
robotide.lib.robot.result.executionerrors.ExecutionErrors.visit
def visit(self, visitor)
Definition:
executionerrors.py:41
robotide.lib.robot.model
Definition:
__init__.py:1
robotide.lib.robot.utils
Definition:
__init__.py:1
src
robotide
lib
robot
result
executionerrors.py
Generated by
1.9.1