The Gaudi Framework
v25r6p1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
Common.py
Go to the documentation of this file.
1
# -*- coding: utf-8 -*-
2
3
class
TestResult
(object):
4
'''
5
Class used to group details about a test execution.
6
'''
7
def
__init__
(self, name, **kwargs):
8
self.
name
= name
9
self.
status
= kwargs.pop(
'status'
,
'untested'
)
10
self.
data
= kwargs
11
12
def
xmlElement
(self):
13
'''
14
Return an etree element representing the test result.
15
'''
16
import
xml.etree.ElementTree
as
ET
17
elem = ET.Element(
'Test'
, Status=self.
status
)
18
ET.SubElement(elem,
'Name'
).text = self.
name
19
results = ET.SubElement(elem,
'Results'
)
20
return
elem
21
22
class
TestReport
(object):
23
'''
24
Group the information about a collection of tests.
25
'''
26
def
__init__
(self):
27
self.
tests
= []
Common.TestReport.tests
tests
Definition:
Common.py:27
Common.TestResult
Definition:
Common.py:3
Common.TestResult.name
name
Definition:
Common.py:8
Common.TestReport.__init__
def __init__
Definition:
Common.py:26
Common.TestReport
Definition:
Common.py:22
Common.TestResult.xmlElement
def xmlElement
Definition:
Common.py:12
Common.TestResult.data
data
Definition:
Common.py:10
Common.TestResult.__init__
def __init__
Definition:
Common.py:7
Common.TestResult.status
status
Definition:
Common.py:9
patches
QMTProject
Common.py
Generated on Tue Dec 9 2014 16:33:09 for The Gaudi Framework by
1.8.7