Salesforce Times
  • Home
  • News
  • Articles
No Result
View All Result
Salesforce Times
  • Home
  • News
  • Articles
No Result
View All Result
Salesforce Times
No Result
View All Result
Home Articles

Salesforce Summer’24 Release Notes | Apex

Antonis Melakis by Antonis Melakis
July 10, 2024
in Articles, Release Notes
0 0
0
Salesforce Summer’24 Release Notes | Apex
0
SHARES
16
VIEWS
Share on FacebookShare on Twitter

7. Monitor Setup Methods Using ApexTestResult

Benchmark Test Setup performance along with Test Methods in order to improve the run time of your test classes by using ApexTestResult and ApexTestRunResult objects. ApexTestResult rows are now generated for Apex tests run with the @testSetup annotation. A new IsTestSetup column is set to true for these annotated tests to distinguish them from other test methods and a new TestSetupTime column to track the cumulative time of all setup methods for the given ApexTestRunResult.

Previously: Information about Apex test methods with @testSetup annotation limits and cumulative run time was available only by parsing the appropriate method sections in the debug log

How: After the tests are executed, run the following query to get the results of an Apex test method execution

SELECT ID, AsyncApexJobId, IsTestSetup, MethodName, Outcome, RunTime FROM ApexTestResult
ApexTestResult object

To get a summary information about all the test methods that were run in a particular Apex job, run the following query

SELECT ID, AsyncApexJobId, JobName, Status, TestSetupTime, TestTime FROM ApexTestRunResult
ApexTestRunResult Object
Previous Private Methods of Abstract or Virtual Classes Not Overridden in Newer API Versions
Next Scheduled and Batch Apex Error Messages Improved
Tags: ApexSalesforce Summer '24 Release Notes
Previous Post

Salesforce Summer’24 Release Notes | Permissions and Sharing

Next Post

Salesforce Summer’24 Release Notes | General Setup

Antonis Melakis

Antonis Melakis

Next Post
Salesforce Summer’24 Release Notes | General Setup

Salesforce Summer'24 Release Notes | General Setup

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Salesforce Spring’25 Release Notes | Flow Extensions and Management
  • Salesforce Spring’25 Release Notes | Flow Builder Run-Time Changes
  • Salesforce Winter’25 Release Notes | Screen Flow Updates
  • Salesforce Winter’25 Release Notes | Flow Builder User Experience Updates
  • Salesforce Spring’25 Release Notes | Flow Builder User Experience Updates

Recent Comments

No comments to show.

Tags

Analytics Apex AppExchange Artificial Intelligence Automation Awards and Recognition Configuration Customization Data Development Digital Transformation Fields Flow Actions Flow Builder Flow Builder Updates General Enhancements General Mobile Updates General Setup Globalization Lightning App Builder Lightning Reports and Dashboards List Views Mobile Partnership Permissions and Sharing Sales Salesforce Flow Salesforce Mobile App Salesforce Overall Salesforce Partners Salesforce Spring ’25 Release Notes Salesforce Summer '24 Release Notes Salesforce Winter ’25 Release Notes Security, Identity, and Privacy User Experience
  • Home
  • News
  • Articles

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Home
  • News
  • Articles

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.