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>
tag

value = ‘initinfo’

Type

str

id

Various ids related to testcase

Type

Id

name

Name of the testcase/subtest which is equivalent of the Title attribute in TIMS

Type

str

xref
Type

XRef

pargs
Type

str

description

Description for the testcase or subtest

Type

str

uuts

The logical name of the Unit Under Test

Type

list(str)

swversion

swversion

Type

str

hwversion

hwversion

Type

str

fwversion

fwversion

Type

str

tstversion

tstversion

Type

str

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)

platform

Platform element as provided by ats_resutls

Type

list(‘platform’)

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>