---
schema_version: "1"
id: 64e0fe9deaec110ab1b4f3657624f79e86fe831cf71bb4725e996d647b2dda17
title: ApexTestRunResult
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_apextestrunresult.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_apextestrunresult.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 020717a6998559d02a9d70568656cbd1d742e385f24cbbf87279458b3f689f13
description: Contains summary information about all the test methods that were run in a particular Apex job. Available from API version 37.0 or later.
---
# ApexTestRunResult

Contains summary information about all the test methods that were run in a particular Apex job. Available from API version 37.0 or later.

## Supported SOAP API Calls

create(), delete(), describeSObjects(), query(), retrieve(), update()

## Supported REST API HTTP Methods

Query, GET

## Fields

| Field Name | Details |
| --- | --- |
| AsyncApexJobId | 
Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The parent Apex job ID for the result.





 |
| ClassesCompleted | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The total number of classes executed during the test run.





 |
| ClassesEnqueued | 

Type

int

Properties

Create, Filter, Group, Sort, Update

Description

The total number of classes enqueued during the test run.





 |
| EndTime | 

Type

dateTime

Properties

Create, Filter, Nillable, Sort, Update

Description

The time at which the test run ended.





 |
| IsAllTests | 

Type

boolean

Properties

Create, Filter, Group, Sort, Update

Description

Indicates whether all Apex test classes were run.





 |
| JobName | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

**Reserved for future use.**





 |
| MethodsCompleted | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The total number of methods completed during the test run. This value is updated after each class is run.





 |
| MethodsEnqueued | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The total number of methods enqueued for the test run. This value is initialized before the test runs.





 |
| MethodsFailed | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The total number of methods that failed during this test run. This value is updated after each class is run.





 |
| Source | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The source of the test run, such as the Developer Console.





 |
| StartTime | 

Type

dateTime

Properties

Create, Filter, Sort, Update

Description

The time at which the test run started.





 |
| Status | 

Type

picklist

Properties

Create, Filter, Group, Sort, Update

Description

The status of the test run. Can be one of these values:

- Queued
- Preparing
- Processing
- Aborted
- Completed
- Failed







 |
| TestSetupTime | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The time it took the setup methods to run, in milliseconds.





 |
| TestTime | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The time it took the test to run, in milliseconds.





 |
| UserId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The user who ran the test run.





 |