pyats.aereport.testscriptinitinfo.script package

script – Script

This module implements Script section used by TestScript.

class pyats.aereport.testscriptinitinfo.script.Script(**kwargs)

Bases: pyats.aereport.toplevel.aereportelement.AEReportElement

Script Information of clean Class based on the following schema definition

<xs:complexType name="scriptType">
        <xs:sequence>
                <xs:element name="name"></xs:element>
                <xs:element name="path"></xs:element>
                <xs:element name="version" type="xs:string" minOccurs="0"></xs:element>
        </xs:sequence>
</xs:complexType>

OR

<xs:element name="script">
        <xs:complexType>
                <xs:sequence>
                        <xs:element name="name"></xs:element>
                        <xs:element name="path"></xs:element>
                        <xs:element name="scm" minOccurs="0"></xs:element>
                        <xs:element name="version" minOccurs="0"></xs:element>
                </xs:sequence>
        </xs:complexType>
</xs:element>
tag

Default value = ‘script’. This is to ensure that all elements contain a tag attribute.

Type

str

name

Script name

Type

str

path

Script path

Type

str

version

Optional - Script version

Type

str

scm

Optional - SCM info where the test script is checked in. Only available for TestScriptInitInfo and not for Clean.

Type

SCM

set_args(**kwargs)

Set name, criteria and type of aehandler.

Parameters
  • name (str) – Script name

  • path (str) – Script Path

  • scm (dict) – SCM info where the testscript is checked in

  • version (str) – Script Version

Submodules

cvs – SCM

This module implements SCM element.

class pyats.aereport.testscriptinitinfo.script.scm.SCM(**kwargs)

Bases: pyats.aereport.toplevel.aereportelement.AEReportElement

SCM info where the test script is checked in.

Class based on the following schema definition

::
<xs:element name=”scm” minOccurs=”0”>
<xs:complexType>
<xs:sequence>

<xs:element name=”root” type=”xs:string”></xs:element> <xs:element name=”repository” type=”xs:string”></xs:element>

</xs:sequence>

</xs:complexType>

</xs:element>

tag

Default value = ‘scm’

Type

str

root

value of CVS/Root

Type

str

repository

value of CVS/Repository

Type

str

set_args(**kwargs)

Set name, criteria and type of aehandler.

Parameters
  • root (str) – Value of CVSROOT

  • repository (str) – Value of CVS/repo