Represents the result of an Apex test method execution. This object is available in API version 23.0 and later.
describeSObjects(), query(), retrieve()
Field Name | Details |
---|---|
ApexClassId |
|
ApexLogId |
|
AsyncApexJobId |
|
Message |
|
MethodName |
|
Outcome |
|
QueueItemId |
|
StackTrace |
|
TestTimestamp |
|
You can query the fields of the ApexTestResult record that corresponds to a test method executed as part of an Apex class execution.
Each test method execution is represented by a single ApexTestResult record. For example, if an Apex test class contains six test methods, six ApexTestResult records are created. These records are in addition to the ApexTestQueueItem record that represents the Apex class.