pyats.aereport.tsinitinfo package

tsinitinfo – TSInitInfo

This module implements TSInitInfo section used by TestSuite.

class pyats.aereport.tsinitinfo.TSInitInfo

Bases: AEReportElement

Class based on this schema definition

<xs:element name="initinfo">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="name" type="xs:string"></xs:element>
            <xs:element name="params"></xs:element>
            <xs:element name="jobid"></xs:element>
            <xs:element name="ats"></xs:element>
            <xs:element name="CONFIG"></xs:element>
            <xs:element name="host" maxOccurs="unbounded"></xs:element>
            <xs:element name="owner"></xs:element>
            <xs:element name="submitter"></xs:element>
            <xs:element name="user"></xs:element>
            <xs:element name="topology"></xs:element>
            <xs:element name="logfile"></xs:element>
            <xs:element name="tbautoselect"></xs:element>
            <xs:element name="release" />
            <xs:element name="image" />
            <xs:element name="testbed" />
        </xs:sequence>
    </xs:complexType>
</xs:element>
tag

Constant value = ‘ats’ to be used as xml tag.

Type:

str

name

Name of testsuite

Type:

str

params

internally calculated “final” values of various parameters based on CLI, control and CONFIG files (_easySetKey / _easyGetKey)

Type:

Params

jobid

JobId is a set of easypy runs only

Type:

str

ats

ATS tree info

Type:

ATSTree

CONFIG

Full path of CONFIG file that has been sourced

Type:

str

hosts

This is the value of TestHost keyword in autoetest context and TRPhosts for easypy context. It is the host on which easypy is executed.

Type:

SimpleList

owner

Owner of easypy (unix) process

Type:

str

submitter

Test submitter on whose behalf the job is run

Type:

str

user

userid of the current process/person launching pyats run job

Type:

str

topology

See Topomap xml schema for details – testbed and device info will be populated from CONFIG file

Type:

str

logfile

File in which the job logs are saved

Type:

LogFile

tbautoselect

List of Testbed names selected

Type:

str

release

Image Release

Type:

str

image

Image

Type:

str

testbed

Name of the tb

Type:

str

path

The location of the ATS tree in which the test script is run.

Type:

str

version

The release version string found in the VERSION file of the root of the ATS tree.

Type:

str

packages

List of package names and corresponding version loaded

Type:

list

set_args(**kwargs)

Set testsuite initinfo attributes

Parameters:
  • name (str) – Name of the testsuite

  • params (dict) – internally calculated “final” values of various parameters based on CLI, control and CONFIG files (_easySetKey / _easyGetKey)

  • report (dict) – Report for easypy/ats_easy/autotest

  • logfile (dict) – File in which the job logs are saved

  • release (str) – What is the release

  • image (str) – path to image

  • submitter (str) – Who submitted the testsuite

  • user (str) – userid of the current process/person launching pyats run job

  • tbautoselect (str) – List of Testbed names selected

  • testbed (str) – Testbed selected

  • jobid (str) – JobId is set for easypy runs only

  • CONFIG (str) – Full path of CONFIG file that has been sourced

  • host (str) – This is the value of TestHost keyword in autoetest context and TRPhosts for easypy context. It is the host on which easypy is executed.

  • owner (str) – Owner of easypy (unix) process

  • topology (str) – See Topomap xml schema for details – testbed and device info will be populated from CONFIG file

  • ats (dict) – ATS tree info

Subpackages