pyats.aereport.tsinitinfo package¶
tsinitinfo
– TSInitInfo¶
This module implements TSInitInfo section used by TestSuite.
- class pyats.aereport.tsinitinfo.TSInitInfo¶
Bases:
pyats.aereport.toplevel.aereportelement.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>
- params¶
internally calculated “final” values of various parameters based on CLI, control and CONFIG files (_easySetKey / _easyGetKey)
- Type
- 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
- topology¶
See Topomap xml schema for details – testbed and device info will be populated from CONFIG file
- Type
- 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