Every few months, critical updates are released by Salesforce. As an architect, I needed to review and make sure that these updates won't have an adverse impact to our system.
If your system has a lot of custom code/development and lot of Installed Packages then you need to make sure that the system works correctly even after the updates are auto activated.
Go to APEX classes and hit the Run All test classes, this executes tests from Managed Packages as well.
The other option is to go to APEX test execution and selectively execute classes by specifying the namespace.
The critical thing after this steps is to be able to dissect the results generated as a result of the run.
Here are some queries to execute from WorkBench in BULK CSV mode.
SELECT AsyncApexJobId,Status,UserId FROM ApexTestRunResult
SELECT ApexClassId,ApexLogId,ApexTestRunResultId,AsyncApexJobId,Id,Message,MethodName,Outcome,QueueItemId,RunTime,StackTrace,SystemModstamp,TestTimestamp FROM ApexTestResult where Outcome='Fail'
SELECT ApexClassId,ApexLogId,ApexTestRunResultId,AsyncApexJobId,Id,Message,MethodName,Outcome,QueueItemId,RunTime,StackTrace,SystemModstamp,TestTimestamp FROM ApexTestResult where Outcome='Fail' and
AsyncApexJobId='707S000000qe6mZIAQ'
SELECT count(Id) FROM ApexTestResult where
AsyncApexJobId='707S000000qQmb7IAC' group by outcome
SELECT count(Id) FROM ApexTestResult where
AsyncApexJobId=' ' group by outcome
When the tests are executed, an entry is created in APEX Test history indicating a TestRunID.
Drill down on the link and on the right you can see the Classes that have failed/passed.
Limitation is you can only view few at a time and can't see the details.
To get details, copy the RunID from the left and use it in the queries above, download the generated file from WorkBench and analyse the report.
I do multiple runs to make sure before/after update activation scenarios.
If your system has a lot of custom code/development and lot of Installed Packages then you need to make sure that the system works correctly even after the updates are auto activated.
Go to APEX classes and hit the Run All test classes, this executes tests from Managed Packages as well.
The other option is to go to APEX test execution and selectively execute classes by specifying the namespace.
The critical thing after this steps is to be able to dissect the results generated as a result of the run.
Here are some queries to execute from WorkBench in BULK CSV mode.
SELECT AsyncApexJobId,Status,UserId FROM ApexTestRunResult
SELECT ApexClassId,ApexLogId,ApexTestRunResultId,AsyncApexJobId,Id,Message,MethodName,Outcome,QueueItemId,RunTime,StackTrace,SystemModstamp,TestTimestamp FROM ApexTestResult where Outcome='Fail'
SELECT ApexClassId,ApexLogId,ApexTestRunResultId,AsyncApexJobId,Id,Message,MethodName,Outcome,QueueItemId,RunTime,StackTrace,SystemModstamp,TestTimestamp FROM ApexTestResult where Outcome='Fail' and
AsyncApexJobId='707S000000qe6mZIAQ'
SELECT count(Id) FROM ApexTestResult where
AsyncApexJobId='707S000000qQmb7IAC' group by outcome
SELECT count(Id) FROM ApexTestResult where
AsyncApexJobId=' ' group by outcome
When the tests are executed, an entry is created in APEX Test history indicating a TestRunID.
Drill down on the link and on the right you can see the Classes that have failed/passed.
Limitation is you can only view few at a time and can't see the details.
To get details, copy the RunID from the left and use it in the queries above, download the generated file from WorkBench and analyse the report.
I do multiple runs to make sure before/after update activation scenarios.