ApexTestResult
Stores the results of Apex test executions, including success, failure, and error messages.
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | True |
Unique identifier for the Apex test result record. | |
| TestTimestamp | Datetime | False |
Date and time when the test execution began. | |
| Outcome | String | False |
Result of the test method execution, such as Pass or Fail. | |
| ApexClassId | String | False |
ApexClass.Id |
ID of the Apex class that contains the test method. |
| MethodName | String | False |
Name of the test method that was executed. | |
| Message | String | False |
Error message returned if the test failed. | |
| StackTrace | String | False |
Stack trace details associated with any test failures or exceptions. | |
| AsyncApexJobId | String | False |
AsyncApexJob.Id |
ID of the asynchronous job that ran the test. |
| QueueItemId | String | False |
ID of the queue item used to track the test execution request. | |
| ApexLogId | String | False |
ApexLog.Id |
ID of the Apex debug log associated with this test result. |
| ApexTestRunResultId | String | False |
ID of the ApexTestRunResult associated with this record. | |
| RunTime | Int | False |
Field containing RunTime information. | |
| IsTestSetup | Bool | False |
Indicates whether the record has the TestSetup characteristic. | |
| SOQL | String | False |
Specifies the SOQL query to execute against the Salesforce servers. If this pseudo column is set from the WHERE clause it will take precedence over the original query. | |
| ExternalIdColumn | String | False |
Specifies the external Id column to use if performing an insert. If this value is specified, upsert will be used when the INSERT command is called. | |
| FilterScope | String | False |
Optional scope to limit the records returned from queries. This property can take one of these values: Delegated, Everything, Mine, MineAndMyGroups, My_Territory, My_Team_Territory, or Team. | |
| SystemModstamp | Datetime | True |
System-generated timestamp indicating the most recent modification. |