Definition Type: Element
Name: subtest
Namespace: http://oval.mitre.org/XMLSchema/oval_results
Containing Schema: oval-results-schema.xsd
MinOccurs 1
MaxOccurs unbounded
Abstract
Documentation:
The subtest element specifies a particular test to be referenced. The required test_ref attribute accomplishes this by linking to a valid test id. The optional 'negate' attribute signifies that the result of an individual test should be negated during analysis. For example, consider a test that returns TRUE if a specific patch is installed. By negating this test, it now analyzes to TRUE if the patch is NOT installed. The required result attribute holds the result of the analysis, either true, false, or error.
Collapse XSD Schema Diagram:
Drilldown into result in schema oval-results-schema_xsd Drilldown into negate in schema oval-results-schema_xsd Drilldown into version in schema oval-results-schema_xsd Drilldown into test_ref in schema oval-results-schema_xsdXSD Diagram of subtest in schema oval-results-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:element name="subtest" minOccurs="1" maxOccurs="unbounded">
    <xsd:annotation>
        <xsd:documentation>The subtest element specifies a particular test to be referenced.  The required test_ref attribute accomplishes this by linking to a valid test id.  The optional 'negate' attribute signifies that the result of an individual test should be negated during analysis.  For example, consider a test that returns TRUE if a specific patch is installed.  By negating this test, it now analyzes to TRUE if the patch is NOT installed.  The required result attribute  holds the result of the analysis, either true, false, or error.</xsd:documentation>
        <xsd:appinfo>
            <parent_test>Compound Test</parent_test>
            <cardinality>1-n</cardinality>
            <content>none</content>
        </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
        <xsd:attribute name="test_ref" type="oval_results:testid" use="required" />
        <xsd:attribute name="version" type="oval_results:versionType" default="1" />
        <xsd:attribute name="negate" type="xsd:boolean" use="optional" default="false" />
        <xsd:attribute name="result" type="oval_results:resultType" use="required" />
    </xsd:complexType>
</xsd:element>
Collapse Child Attributes:
Name Type Default Value Use
test_ref oval_results:test_ref Required
version oval_results:version 1 (Optional)
negate oval_results:negate false Optional
result oval_results:result Required