ApexTestResult
Supported SOAP API Calls
create(), delete(), describeSObjects(), query(), retrieve(), update()
Supported REST API HTTP Methods
Query, GET
Fields
Field Name | Details |
---|---|
ApexClassId |
|
ApexLogId |
|
ApexTestRunResultId |
|
AsyncApexJobId |
|
IsTestSetup |
|
Message |
|
MethodName |
|
Outcome |
|
QueueItemId |
|
RunTime |
|
StackTrace |
|
TestTimestamp |
|
Usage
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.
Each ApexTestResult record has an associated ApexTestResultLimits record, which captures the Apex limits used during execution of the test method.
For example code, see ApexTestQueueItem.