Definition Type: Element
Name: subtest
Namespace: http://oval.mitre.org/XMLSchema/oval
Containing Schema: oval-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.
Collapse XSD Schema Diagram:
Drilldown into negate in schema oval-schema_xsd Drilldown into test_ref in schema oval-schema_xsdXSD Diagram of subtest in schema oval-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.</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:testid" use="required" />
        <xsd:attribute name="negate" type="xsd:boolean" use="optional" default="false" />
    </xsd:complexType>
</xsd:element>
Collapse Child Attributes:
Name Type Default Value Use
test_ref oval:test_ref Required
negate oval:negate false Optional