Newer Version Available

This content describes an older version of this product. View Latest

ApexTestRunResult

Contains summary information about all the test methods that were run in a particular Apex job. This object is available in API version 37.0 and later.

Supported Calls

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

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.

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. Values include:
  • Queued
  • Processing
  • Aborted
  • Completed
  • Failed
TestTime
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description

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

UserId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description

The user who ran the test run.