pyats.aereport.initinfo package¶
initinfo
– InitInfo¶
This module implements InitInfo section (used by TestResult and TestGroup), and its related elements Id and IdTims.
- class pyats.aereport.initinfo.InitInfo¶
Bases:
pyats.aereport.toplevel.aereportelement.AEReportElement
Class based on this schema definition
<xs:complexType name="initInfoType"> <xs:sequence> <xs:element name="id"> <xs:element name="name" type="xs:string"> <xs:element name="xref" type="xrefType"/> <xs:element name="pargs" minOccurs="0"/> <xs:element name="description" type="xs:string"> <xs:element name="uut" type="xs:string" minOccurs="0" maxOccurs="unbounded"> <xs:element name="swversion" minOccurs="0"/> <xs:element name="hwversion" minOccurs="0"/> <xs:element name="fwversion" minOccurs="0"/> <xs:element name="tstversion" minOccurs="0"/> <xs:element name="logfile" type="LogFileType"> <xs:element name="interface" minOccurs="0" maxOccurs="unbounded"> <xs:element name="platform" minOccurs="0" maxOccurs="unbounded"> </xs:sequence> </xs:complexType>
- id¶
Various ids related to testcase
- Type
Id
- xref¶
- Type
XRef
- logfile¶
File in which the testcase or subtest logs are saved. It could be same as test script log file
- Type
LogFile
- interfaces¶
- Type
list(
Interface
)
- set_args(**kwargs)¶
Set InitInfo attributes
- Parameters
name (str) – initinfo/name
description (str) – initinfo/description
pargs (str) – initinfo/pargs
swversion (str) – initinfo/swversion
hwversion (str) – initinfo/hwversion
fwversion (str) – initinfo/fwversion
tstversion (str) – initinfo/tstversion
platform (str) – initinfo/platform
interface (str) – initinfo/interface
id (dict) –
uut (str) –
xref (dict) –
logfile (dict) –
Returns – None
Submodules¶
interface
– Interface¶
This module implements Interface element.
- class pyats.aereport.initinfo.interface.Interface(itf_name=None)¶
Bases:
pyats.aereport.toplevel.aereportelement.AEReportElement
- Class implementing Interface element.
<interface> anInterface <interface>
uut
– UUT¶
This module implements UUT element.
- class pyats.aereport.initinfo.uut.UUT(value=None)¶
Bases:
pyats.aereport.toplevel.aereportelement.AEReportElement
- Class implementing UUT element.
<uut> anUUT <uut>