pyats.aereport.tsinitinfo.atstree package

atstree – ATSTree

This module implements ATSTree element.

class pyats.aereport.tsinitinfo.atstree.ATSTree

Bases: AEReportElement

Class based on this schema definition

<xs:element name="ats">
    <xs:annotation>
        <xs:documentation>ATS tree info</xs:documentation>
    </xs:annotation>
    <xs:complexType>
        <xs:sequence>
            <xs:element name="path"></xs:element>
            <xs:element name="version"></xs:element>
            <xs:element name="package" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>List of package names and corresponding version
                        loaded </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="name" />
                        <xs:element name="version" />
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
</xs:element>
tag

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

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

add_packages(kwargs)

Add multiple packages to the ATS tree Accept list of format : [{name:’’, version:’’},….]

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

  • version (str) – Version of the package

set_args(**kwargs)

Set testsuite initinfo attributes

Parameters:
  • path (str) – The location of the ATS tree in which the test script is run.

  • version (str) – The release version string found in the VERSION file of the root of the ATS tree

  • packages (list) – List of package names and corresponding version loaded

Submodules

atspackage – ATSPackage

This module implements ATSPackage element.

class pyats.aereport.tsinitinfo.atstree.atspackage.ATSPackage(**kwargs)

Bases: AEReportElement

Class based on this schema definition

<xs:annotation>
    <xs:documentation>List of package names and corresponding version
        loaded </xs:documentation>
</xs:annotation>
<xs:complexType>
    <xs:sequence>
        <xs:element name="name" />
        <xs:element name="version" />
    </xs:sequence>
</xs:complexType>
name

Name of the package

Type:

str

version

Package version

Type:

str

set_args(**kwargs)

Set testsuite initinfo attributes

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

  • version (str) – The version of the packages

  • packages (list) – List of package names and corresponding version loaded