afv-library/skills/platform-metadata-api-context-get/assets/metadata_api/ApexTestSuite.json

32 lines
2.1 KiB
JSON
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"sections": [
"title",
"description",
"file_information",
"directory_location",
"fields",
"wsdl_segment",
"declarative_metadata_sample_definition"
],
"title": "ApexTestSuite - Metadata API",
"description": "Represents a suite of Apex test classes to include in a test run.",
"file_information": ".testSuite",
"directory_location": "testSuites",
"fields_columns": [
"type",
"description"
],
"fields": {
"testClassName": {
"type": "string[]",
"description": "A list of Apex test classes, specified by name, to include in this test suite."
}
},
"wsdl_segment": "```xml\n<xsd:complexType name=\"ApexTestSuite\">\n <xsd:complexContent>\n <xsd:extension base=\"tns:Metadata\">\n <xsd:sequence>\n <xsd:element name=\"testClassName\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"xsd:string\"/>\n </xsd:sequence>\n </xsd:extension>\n </xsd:complexContent>\n</xsd:complexType>\n<xsd:complexType name=\"Metadata\">\n <xsd:sequence>\n <xsd:element name=\"fullName\" minOccurs=\"0\" type=\"xsd:string\"/>\n </xsd:sequence>\n</xsd:complexType>\n```",
"declarative_metadata_sample_definition": [
{
"description": "To include namespaced tests in an Apex test suite, specify each namespace individually. Local Apex tests consist of all tests in the org that dont originate from managed packages.",
"code": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ApexTestSuite xmlns=\"http://soap.sforce.com/2006/04/metadata\">\n   <testClassName>LocalTestClass</testClassName>\n <!-- LocalTestClass adds the test class named LocalTestClass. -->\n <testClassName>A*Class</testClassName>\n <!-- A*Class adds AClass, AnotherClass, AwesomeClass, and so on. -->\n   <testClassName>Namespace1.NamespacedTestClass</testClassName>\n   <testClassName>*</testClassName> <!-- Adds all local tests. -->\n   <testClassName>Namespace1.*</testClassName> <!-- Adds all tests in Namespace1. -->\n   <testClassName>Namespace2.*</testClassName> <!-- Adds all tests in Namespace2. -->\n</ApexTestSuite>"
}
]
}