{ "sections": [ "title", "description", "supported_soap_calls", "supported_rest_api_http_methods", "fields", "wsdl_segment" ], "title": "ApexTestResult - Tooling API", "description": "Represents the result of an Apex test method execution. Available from API version 30.0 or later.", "supported_soap_calls": "`create()`, `delete()`, `describeSObjects()`, `query()`, `retrieve()`, `update()`", "supported_rest_api_http_methods": "`Query`, `GET`", "fields_columns": [ "type", "properties", "description" ], "fields": { "ApexClassId": { "type": "reference", "properties": "Create, Filter, Group, Sort, Update", "description": "The Apex class whose test methods were executed." }, "ApexLogId": { "type": "reference", "properties": "Create, Filter, Group, Nillable, Sort, Update", "description": "Points to the ApexLog for this test method execution if debug logging is enabled; otherwise, null." }, "ApexTestRunResultId": { "type": "reference", "properties": "Create, Filter, Group, Nillable, Sort, Update", "description": "The ID of the ApexTestRunResult that represents the entire test run." }, "AsyncApexJobId": { "type": "reference", "properties": "Create, Filter, Group, Nillable, Sort, Update", "description": "Points to the AsyncApexJob that represents the entire test run. This field points to the same object as ApexTestQueueItem.ParentJobId." }, "IsTestSetup": { "type": "boolean", "properties": "Create, Defaulted on create, Filter, Group, Sort, Update", "description": "Indicates if the results are for a test setup method. The default is false." }, "Message": { "type": "string", "properties": "Create, Filter, Nillable, Sort, Update", "description": "The exception error message if a test failure occurs; otherwise, null." }, "MethodName": { "type": "string", "properties": "Create, Filter, Group, Nillable, Sort, Update", "description": "The name of the test method." }, "Outcome": { "type": "picklist", "properties": "Create, Filter, Group, Restricted picklist, Sort, Update", "description": "The result of the test. Valid values are: Pass Fail CompileFail Skip" }, "QueueItemId": { "type": "reference", "properties": "Create, Filter, Group, Nillable, Sort, Update", "description": "Points to the ApexTestQueueItem which is the class that this test method is part of." }, "RunTime": { "type": "int", "properties": "Create, Filter, Group, Nillable, Sort, Update", "description": "The time it took the test method to run, in seconds." }, "StackTrace": { "type": "string", "properties": "Create, Filter, Nillable, Sort, Update", "description": "The Apex stack trace if the test failed; otherwise, null." }, "TestCategory": { "type": "string", "properties": "Filter, Group, Nillable, Sort", "description": "The category of the test class. This field is available in API version 65.0 and later. Possible values are: Apex–run Apex tests. Flow–run flow tests. IntegrationTest–run integration tests. This field is available as a Developer Preview in API version 67.0 and later. See Apex Integration Tests for Agentforce and Data 360 Services (Developer Preview) in the Apex Developer Guide." }, "TestName": { "type": "string", "properties": "Create, Filter, Group, Nillable, Sort, Update", "description": "The name of the test class. This field is available in API version 65.0 and later." }, "TestNamespace": { "type": "string", "properties": "Create, Filter, Group, Nillable, Sort, Update", "description": "The namespace of the test class. Apex tests are in the default namespace, so theTestNamespace value for Apex tests is null. Flow tests are in the FlowTesting namespace. If a flow test is in a namespaced package or org, the TestNamespace value is FlowTesting.. This field is available in API version 65.0 and later." }, "TestTimestamp": { "type": "dateTime", "properties": "Create, Filter, Sort, Update", "description": "The start time of the test method." } }, "wsdl_segment": "```xml\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n \n\n\n \n\n\n \n \n \n \n \n \n \n \n \n\n```" }