pyats.aereport.results package¶
Submodules¶
resultsummary
– ResultSummary¶
This module implements ResultSummary class.
- class pyats.aereport.results.resultsummary.ResultSummary¶
Bases:
pyats.aereport.toplevel.aereportelement.AEReportElement
Result summary is contains information about number of passes, fails, aborts, never rans, number of crashes, pauses, cleans, reloads, etc
Class based on the following schema definition
<xs:complexType name="ResultSummaryType"> <xs:sequence> <xs:element name="NumAbort" type="xs:nonNegativeInteger"/> <xs:element name="NumFail" type="xs:nonNegativeInteger"/> <xs:element name="NumPassX" type="xs:nonNegativeInteger"/> <xs:element name="NumBlock" type="xs:nonNegativeInteger"/> <xs:element name="NumPass" type="xs:nonNegativeInteger"/> <xs:element name="NumSkip" type="xs:nonNegativeInteger"/> <xs:element name="NumPauses" type="xs:nonNegativeInteger"/> <xs:element name="NumCleans" type="xs:nonNegativeInteger"/> <xs:element name="NumReloads" type="xs:nonNegativeInteger"/> <xs:element name="NumCrashes" type="xs:nonNegativeInteger"/> </xs:sequence> </xs:complexType>
result
– Result¶
This module implements RollUpResult element.
- class pyats.aereport.results.rollupresult.RollUpResult¶
Bases:
pyats.aereport.toplevel.aereportelement.AEReportElement
Rollup Result is calulated based on individual result values of corresponding sections and its value is limited to pass, passx, fail, abort, skip, block
Class based on the following schema definition
<xs:element name="rollupResult"> <xs:annotation>...</xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="pass"/> <xs:enumeration value="passx"/> <xs:enumeration value="failed"/> <xs:enumeration value="error"/> <xs:enumeration value="skip"/> <xs:enumeration value="abort"/> <xs:enumeration value="block"/> </xs:restriction> </xs:simpleType> </xs:element>
summary
– Summary¶
This module implements Summary class used by TestSuite, TestScript and TestGroup.
- class pyats.aereport.results.summary.Summary¶
Bases:
pyats.aereport.toplevel.aereportelement.AEReportElement
,pyats.results.counter.ResultCounter
Result element for storing test summary used by TestGroup, TestScript and TestSuite
Class based on the following schema definition
<xs:complexType name="summaryType"> <xs:sequence> <xs:element name="pass" type="xs:integer"/> <xs:element name="passx"/> <xs:element name="fail"/> <xs:element name="abort"/> <xs:element name="block"/> <xs:element name="skip"/> <xs:element name="error"/> <xs:element name="unknown"/> <xs:element name="never_ran/> </xs:sequence> </xs:complexType>
- generate_dom(parent)¶
Override the default behavior of AEReportElement.generate_dom
- Parameters
parent (AEReportElement) – The xml element that should be used as a parent for this summary
- generate_resultsonly_dom(parent)¶
Override the default behavior of AEReportElement.generate_dom. This method is used for ResultsSummary.xml report only. TRADe expects ResultsSummary.xml report to contain testresults in past tense (e.g. aborted, passed, etc)
- Parameters
parent (AEReportElement) – The xml element that should be used as a parent for this summary
- set_args(**kwargs)¶
Set testsuite initinfo attributes
- tag = 'summary'¶