How can a developer check the test coverage of autolaunched Flows before deploying them in a change set?
As of Winter '20 (API version 47.0), Salesforce introduced the ability to test Autolaunched Flows with test coverage.
However, as of the current knowledge cutoff (2023-09), there is no direct way within the Salesforce UI to check the test coverage of autolaunched flows before deploying them via change sets.
To check the test coverage of flows, developers can use the Tooling API to query for test coverage.
Option A: Use SOQL and the Tooling API.
Correct Answer.
Developers can use the Tooling API to query for Flow test coverage information.
By executing a SOQL query on FlowTestCoverage and FlowVersionView objects via the Tooling API, developers can retrieve coverage data.
This allows checking flow test coverage programmatically before deployment.
The Flow Properties page does not provide test coverage information.
It allows configuring flow settings but not checking test coverage.
Option C: Use the Code Coverage Setup page.
Incorrect.
The Code Coverage page in Setup pertains to Apex code coverage, not Flow coverage.
Option D: Use the ApexTestResult class.
Incorrect.
The ApexTestResult class is used for Apex test results.
It does not provide information on Flow test coverage.
Conclusion:
To check the test coverage of autolaunched Flows before deploying them in a change set, a developer should use SOQL and the Tooling API, which is Option A.
Flow Test Coverage with Tooling API
Use Tooling API to Check Flow Coverage
Incorrect Options:
Option B: Use the Flow Properties page.
Incorrect.
Chau
3 months agoOnita
3 months agoSina
3 months agoJanine
4 months agoWillis
4 months agoMerlyn
4 months agoTrinidad
4 months agoLorita
4 months agoMozelle
5 months agoMaryann
5 months agoMayra
5 months agoAlesia
5 months agoArmando
5 months agoAnnabelle
1 year agoArthur
1 year agoBrittni
1 year agoNicolette
1 year agoShaniqua
1 year agoAvery
1 year agoMargurite
1 year agoGilma
1 year agoJean
1 year agoProvidencia
1 year agoChantay
1 year agoMollie
1 year agoMartha
1 year agoGlen
1 year agoTequila
1 year agoJudy
1 year agoAnnalee
1 year agoMatthew
1 year ago